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