Mercurial > vim
annotate src/os_vms_conf.h @ 21032:f80e822a310d v8.2.1067
patch 8.2.1067: expression "!expr->func()" does not work
Commit: https://github.com/vim/vim/commit/0b1cd52ff6bf690388f892be686a91721a082e55
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 27 13:11:50 2020 +0200
patch 8.2.1067: expression "!expr->func()" does not work
Problem: Expression "!expr->func()" does not work.
Solution: Apply plus and minus earlier. (closes https://github.com/vim/vim/issues/6348)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 27 Jun 2020 13:15:03 +0200 |
parents | 6e3dc2d630c2 |
children | bdda90ed5f6c |
rev | line source |
---|---|
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
1 /* |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
2 * os_vms_conf.h. Replaces auto/config.h for VMS |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
3 */ |
7 | 4 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
5 #define CASE_INSENSITIVE_FILENAME // Open VMS is case insensitive |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
6 #define SPACE_IN_FILENAME // There could be space between user and passwd |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
7 #define FNAME_ILLEGAL "|*#?%" // Illegal characters in a file name |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
8 #define BINARY_FILE_IO // Use binary fileio |
7 | 9 #define USE_GETCWD |
10 #define USE_SYSTEM | |
15517
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
11 #define XPMATTRIBUTES_TYPE XpmAttributes |
7 | 12 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
13 // Define when terminfo support found |
7 | 14 #undef TERMINFO |
15 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
16 // Define when termcap.h contains ospeed |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
17 // #define HAVE_OSPEED |
7 | 18 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
19 // Define when termcap.h contains UP, BC and PC |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
20 // #define HAVE_UP_BC_PC |
7 | 21 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
22 // Define when termcap.h defines outfuntype |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
23 //#define HAVE_OUTFUNTYPE |
7 | 24 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
25 // Define when __DATE__ " " __TIME__ can be used |
7 | 26 #define HAVE_DATE_TIME |
27 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
28 // Defined to the size of an int |
17262
041156ce1d22
patch 8.1.1630: various small problems
Bram Moolenaar <Bram@vim.org>
parents:
15517
diff
changeset
|
29 #define VIM_SIZEOF_INT 4 |
7 | 30 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
31 // #undef USEBCOPY |
7 | 32 #define USEMEMMOVE |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
33 // #undef USEMEMCPY |
7 | 34 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
35 // Define when "man -s 2" is to be used |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
36 // #undef USEMAN_S |
7 | 37 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
38 // Define to empty if the keyword does not work. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
39 // #undef const |
7 | 40 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
41 // Define to `int' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
42 // #undef mode_t |
7 | 43 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
44 // Define to `long' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
45 // #undef off_t |
7 | 46 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
47 // Define to `long' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
48 // #undef pid_t |
7 | 49 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
50 // Define to `unsigned' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
51 // #undef size_t |
7 | 52 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
53 // Define to `int' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
54 // #undef uid_t |
7 | 55 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
56 // Define to `unsigned int' or other type that is 32 bit. |
2428
33148c37f3c9
Changes for VMS. Mostly by Zoltan Arpadffy.
Bram Moolenaar <bram@vim.org>
parents:
1709
diff
changeset
|
57 #define UINT32_T unsigned int |
33148c37f3c9
Changes for VMS. Mostly by Zoltan Arpadffy.
Bram Moolenaar <bram@vim.org>
parents:
1709
diff
changeset
|
58 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
59 // Define to `int' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
60 // #undef gid_t |
7 | 61 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
62 // Define to `long' if <sys/types.h> doesn't define. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
63 // #undef ino_t |
7 | 64 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
65 // Define if you have the nanosleep() function. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
66 // #undef HAVE_NANOSLEEP |
7 | 67 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
68 // Define if you can safely include both <sys/time.h> and <time.h>. |
7 | 69 #define TIME_WITH_SYS_TIME |
70 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
71 // Define if you can safely include both <sys/time.h> and <sys/select.h>. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
72 // #undef SYS_SELECT_WITH_SYS_TIME |
7 | 73 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
74 // Define as the return type of signal handlers (int or void). |
7 | 75 #define RETSIGTYPE void |
76 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
77 // Define as the command at the end of signal handlers ("" or "return 0;"). |
7 | 78 #define SIGRETURN return |
79 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
80 // Define if struct sigcontext is present |
7 | 81 #define HAVE_SIGCONTEXT |
82 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
83 // Define if toupper/tolower only work on lower/uppercase characters |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
84 // #define BROKEN_TOUPPER |
7 | 85 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
86 // Define if tgetstr() has a second argument that is (char *) |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
87 // #undef TGETSTR_CHAR_P |
7 | 88 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
89 // Define if you have the sigset() function. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
90 // #undef HAVE_SIGSET |
7 | 91 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
92 // Define if you have the setpgid() function. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
93 // #undef HAVE_SETPGID |
7 | 94 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
95 // Define if you have the setsid() function. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
96 // #undef HAVE_SETSID |
7 | 97 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
98 // Define if you have the sigset() function. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
99 // #undef HAVE_SIGSET |
7 | 100 |
101 #define TGETENT_ZERO_ERR | |
102 #define HAVE_GETCWD | |
103 #define HAVE_STRCSPN | |
104 #define HAVE_STRTOL | |
105 #define HAVE_TGETENT | |
106 #define HAVE_MEMSET | |
107 #define HAVE_STRERROR | |
108 #define HAVE_FCHOWN | |
109 #define HAVE_RENAME | |
110 #define HAVE_QSORT | |
111 #define HAVE_FSYNC | |
112 #define HAVE_GETPWUID | |
113 #define HAVE_GETPWNAM | |
114 #define HAVE_STDLIB_H | |
115 #define HAVE_STRING_H | |
116 #define HAVE_ERRNO_H | |
117 #define HAVE_OPENDIR | |
118 #define HAVE_PUTENV | |
119 #define HAVE_SETENV | |
120 #define HAVE_SETJMP_H | |
1709 | 121 #define HAVE_MATH_H |
122 #define HAVE_FLOAT_FUNCS | |
15517
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
123 #define HAVE_GETTIMEOFDAY |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
124 #define HAVE_PWD_H |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
125 #define HAVE_NETDB_H |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
126 #define HAVE_DIRENT_H |
7 | 127 |
128 #undef HAVE_SYS_NDIR_H | |
129 #undef HAVE_SYS_DIR_H | |
130 #undef HAVE_NDIR_H | |
131 #undef HAVE_SYS_WAIT_H | |
132 #undef HAVE_UNION_WAIT | |
133 #undef HAVE_SYS_SELECT_H | |
134 #undef HAVE_SYS_UTSNAME_H | |
135 #undef HAVE_SYS_SYSTEMINFO_H | |
136 #undef HAVE_TERMCAP_H | |
137 #undef HAVE_SGTTY_H | |
138 #undef HAVE_SYS_IOCTL_H | |
139 #undef HAVE_TERMIO_H | |
140 #undef HAVE_STROPTS_H | |
141 #undef HAVE_SYS_STREAM_H | |
142 #undef HAVE_SYS_PTEM_H | |
143 #undef HAVE_TERMIOS_H | |
144 #undef HAVE_LIBC_H | |
145 #undef HAVE_SYS_STATFS_H | |
146 #undef HAVE_SYS_POLL_H | |
147 #undef HAVE_FCHDIR | |
10328
299f1669c20e
commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents:
7838
diff
changeset
|
148 #undef HAVE_LSTAT |
7 | 149 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
150 // Hardware specific |
7 | 151 #ifdef VAX |
152 #undef HAVE_GETTIMEOFDAY | |
153 #undef HAVE_USLEEP | |
154 #undef HAVE_STRCASECMP | |
155 #undef HAVE_STRINGS_H | |
10328
299f1669c20e
commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents:
7838
diff
changeset
|
156 #undef HAVE_SIGSETJMP |
299f1669c20e
commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents:
7838
diff
changeset
|
157 #undef HAVE_ISNAN |
15517
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
158 #define HAVE_NO_LONG_LONG |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
159 #define VIM_SIZEOF_LONG 4 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
160 #else // AXP and IA64 |
7 | 161 #define HAVE_GETTIMEOFDAY |
162 #define HAVE_USLEEP | |
163 #define HAVE_STRCASECMP | |
164 #define HAVE_STRINGS_H | |
10328
299f1669c20e
commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents:
7838
diff
changeset
|
165 #define HAVE_SIGSETJMP |
299f1669c20e
commit https://github.com/vim/vim/commit/de5e2c219b99895445fb75ae3541ee69282a5846
Christian Brabandt <cb@256bit.org>
parents:
7838
diff
changeset
|
166 #define HAVE_ISNAN |
15517
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
167 #define VIM_SIZEOF_LONG 8 |
7 | 168 #endif |
169 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
170 // Compiler specific |
7 | 171 #ifdef VAXC |
172 #undef HAVE_SELECT | |
173 #undef HAVE_FCNTL_H | |
174 #undef HAVE_UNISTD_H | |
175 #undef HAVE_SYS_TIME_H | |
176 #undef HAVE_LOCALE_H | |
177 #define BROKEN_LOCALE | |
178 #undef DYNAMIC_ICONV | |
179 #undef HAVE_STRFTIME | |
180 #else | |
181 #define HAVE_SELECT | |
182 #define HAVE_FCNTL_H | |
183 #define HAVE_UNISTD_H 1 | |
184 #define HAVE_SYS_TIME_H | |
185 #define HAVE_LOCALE_H | |
186 #define BROKEN_LOCALE | |
187 #undef DYNAMIC_ICONV | |
188 #define HAVE_STRFTIME | |
189 #endif | |
190 | |
5704 | 191 #if defined(USE_ICONV) |
192 #define HAVE_ICONV_H | |
193 #define HAVE_ICONV | |
194 #else | |
195 #undef HAVE_ICONV_H | |
196 #undef HAVE_ICONV | |
197 #endif | |
198 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
17262
diff
changeset
|
199 // GUI support defines |
819 | 200 #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) |
7 | 201 #define HAVE_X11 |
15517
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
202 #ifdef HAVE_XPM |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
203 #define HAVE_X11_XPM_H |
2ad5f0ffaa2e
patch 8.1.0766: various problems when using Vim on VMS
Bram Moolenaar <Bram@vim.org>
parents:
10430
diff
changeset
|
204 #endif |
7 | 205 #define USE_FONTSET |
206 #undef X_LOCALE | |
207 #endif |