Mercurial > vim
comparison src/os_amiga.h @ 18753:6e3dc2d630c2 v8.1.2366
patch 8.1.2366: using old C style comments
Commit: https://github.com/vim/vim/commit/9bf703d46a79fbffeb829246ea5ce385bddc4166
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 19:44:38 2019 +0100
patch 8.1.2366: using old C style comments
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 19:45:03 +0100 |
parents | a3ddd35ee6d4 |
children | 4aa525b44ff2 |
comparison
equal
deleted
inserted
replaced
18752:9ec3c9cb4533 | 18753:6e3dc2d630c2 |
---|---|
8 | 8 |
9 /* | 9 /* |
10 * Amiga Machine-dependent things | 10 * Amiga Machine-dependent things |
11 */ | 11 */ |
12 | 12 |
13 #define CASE_INSENSITIVE_FILENAME /* ignore case when comparing file names */ | 13 #define CASE_INSENSITIVE_FILENAME // ignore case when comparing file names |
14 #define SPACE_IN_FILENAME | 14 #define SPACE_IN_FILENAME |
15 #define USE_FNAME_CASE /* adjust case of file names */ | 15 #define USE_FNAME_CASE // adjust case of file names |
16 #define USE_TERM_CONSOLE | 16 #define USE_TERM_CONSOLE |
17 #define HAVE_AVAIL_MEM | 17 #define HAVE_AVAIL_MEM |
18 | 18 |
19 #ifndef HAVE_CONFIG_H | 19 #ifndef HAVE_CONFIG_H |
20 # if defined(AZTEC_C) || defined(__amigaos4__) | 20 # if defined(AZTEC_C) || defined(__amigaos4__) |
24 # define HAVE_STRING_H | 24 # define HAVE_STRING_H |
25 # define HAVE_FCNTL_H | 25 # define HAVE_FCNTL_H |
26 # define HAVE_STRCSPN | 26 # define HAVE_STRCSPN |
27 # define HAVE_STRICMP | 27 # define HAVE_STRICMP |
28 # define HAVE_STRNICMP | 28 # define HAVE_STRNICMP |
29 # define HAVE_STRFTIME /* guessed */ | 29 # define HAVE_STRFTIME // guessed |
30 # define HAVE_SETENV | 30 # define HAVE_SETENV |
31 # define HAVE_MEMSET | 31 # define HAVE_MEMSET |
32 # define HAVE_QSORT | 32 # define HAVE_QSORT |
33 # if defined(__DATE__) && defined(__TIME__) | 33 # if defined(__DATE__) && defined(__TIME__) |
34 # define HAVE_DATE_TIME | 34 # define HAVE_DATE_TIME |
35 # endif | 35 # endif |
36 | 36 |
37 #endif /* HAVE_CONFIG_H */ | 37 #endif // HAVE_CONFIG_H |
38 | 38 |
39 #ifndef DFLT_ERRORFILE | 39 #ifndef DFLT_ERRORFILE |
40 # define DFLT_ERRORFILE "AztecC.Err" /* Should this change? */ | 40 # define DFLT_ERRORFILE "AztecC.Err" // Should this change? |
41 #endif | 41 #endif |
42 | 42 |
43 #ifndef DFLT_RUNTIMEPATH | 43 #ifndef DFLT_RUNTIMEPATH |
44 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after" | 44 # define DFLT_RUNTIMEPATH "home:vimfiles,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,home:vimfiles/after" |
45 #endif | 45 #endif |
46 #ifndef CLEAN_RUNTIMEPATH | 46 #ifndef CLEAN_RUNTIMEPATH |
47 # define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after" | 47 # define CLEAN_RUNTIMEPATH "$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after" |
48 #endif | 48 #endif |
49 | 49 |
50 #ifndef BASENAMELEN | 50 #ifndef BASENAMELEN |
51 # define BASENAMELEN 26 /* Amiga */ | 51 # define BASENAMELEN 26 // Amiga |
52 #endif | 52 #endif |
53 | 53 |
54 #ifndef TEMPNAME | 54 #ifndef TEMPNAME |
55 # define TEMPNAME "t:v?XXXXXX" | 55 # define TEMPNAME "t:v?XXXXXX" |
56 # define TEMPNAMELEN 12 | 56 # define TEMPNAMELEN 12 |
57 #endif | 57 #endif |
58 | 58 |
59 /* cproto fails on missing include files */ | 59 // cproto fails on missing include files |
60 #ifndef PROTO | 60 #ifndef PROTO |
61 | 61 |
62 #include <exec/types.h> | 62 #include <exec/types.h> |
63 #include <libraries/dos.h> | 63 #include <libraries/dos.h> |
64 #include <libraries/dosextens.h> | 64 #include <libraries/dosextens.h> |
65 | 65 |
66 /* Currently, all Amiga compilers except AZTEC C have these... */ | 66 // Currently, all Amiga compilers except AZTEC C have these... |
67 #ifndef AZTEC_C | 67 #ifndef AZTEC_C |
68 # include <proto/exec.h> | 68 # include <proto/exec.h> |
69 # include <proto/dos.h> | 69 # include <proto/dos.h> |
70 # include <proto/intuition.h> | 70 # include <proto/intuition.h> |
71 #endif | 71 #endif |
72 | 72 |
73 #endif /* PROTO */ | 73 #endif // PROTO |
74 | 74 |
75 #define FNAME_ILLEGAL ";*?`#%" /* illegal characters in a file name */ | 75 #define FNAME_ILLEGAL ";*?`#%" // illegal characters in a file name |
76 | 76 |
77 /* | 77 /* |
78 * Manx doesn't have off_t, define it here. | 78 * Manx doesn't have off_t, define it here. |
79 */ | 79 */ |
80 #ifdef AZTEC_C | 80 #ifdef AZTEC_C |
81 typedef long off_t; | 81 typedef long off_t; |
82 #endif | 82 #endif |
83 | 83 |
84 #ifdef LATTICE | 84 #ifdef LATTICE |
85 # define USE_TMPNAM /* use tmpnam() instead of mktemp() */ | 85 # define USE_TMPNAM // use tmpnam() instead of mktemp() |
86 #endif | 86 #endif |
87 | 87 |
88 #ifdef __GNUC__ | 88 #ifdef __GNUC__ |
89 # include <sys/stat.h> | 89 # include <sys/stat.h> |
90 # include <unistd.h> | 90 # include <unistd.h> |
102 */ | 102 */ |
103 #ifdef FEAT_ARP | 103 #ifdef FEAT_ARP |
104 # include <libraries/arpbase.h> | 104 # include <libraries/arpbase.h> |
105 #endif | 105 #endif |
106 | 106 |
107 #endif /* PROTO */ | 107 #endif // PROTO |
108 | 108 |
109 /* | 109 /* |
110 * This won't be needed if you have a version of Lattice 4.01 without broken | 110 * This won't be needed if you have a version of Lattice 4.01 without broken |
111 * break signal handling. | 111 * break signal handling. |
112 */ | 112 */ |
191 | 191 |
192 #ifdef FEAT_VIMINFO | 192 #ifdef FEAT_VIMINFO |
193 # ifndef VIMINFO_FILE | 193 # ifndef VIMINFO_FILE |
194 # define VIMINFO_FILE "s:.viminfo" | 194 # define VIMINFO_FILE "s:.viminfo" |
195 # endif | 195 # endif |
196 #endif /* FEAT_VIMINFO */ | 196 #endif |
197 | 197 |
198 #ifndef EXRC_FILE | 198 #ifndef EXRC_FILE |
199 # define EXRC_FILE ".exrc" | 199 # define EXRC_FILE ".exrc" |
200 #endif | 200 #endif |
201 | 201 |
206 #ifndef GVIMRC_FILE | 206 #ifndef GVIMRC_FILE |
207 # define GVIMRC_FILE ".gvimrc" | 207 # define GVIMRC_FILE ".gvimrc" |
208 #endif | 208 #endif |
209 | 209 |
210 #ifndef DFLT_BDIR | 210 #ifndef DFLT_BDIR |
211 # define DFLT_BDIR ".,t:" /* default for 'backupdir' */ | 211 # define DFLT_BDIR ".,t:" // default for 'backupdir' |
212 #endif | 212 #endif |
213 | 213 |
214 #ifndef DFLT_DIR | 214 #ifndef DFLT_DIR |
215 # define DFLT_DIR ".,t:" /* default for 'directory' */ | 215 # define DFLT_DIR ".,t:" // default for 'directory' |
216 #endif | 216 #endif |
217 | 217 |
218 #ifndef DFLT_VDIR | 218 #ifndef DFLT_VDIR |
219 # define DFLT_VDIR "$VIM/vimfiles/view" /* default for 'viewdir' */ | 219 # define DFLT_VDIR "$VIM/vimfiles/view" // default for 'viewdir' |
220 #endif | 220 #endif |
221 | 221 |
222 #ifndef DFLT_MAXMEM | 222 #ifndef DFLT_MAXMEM |
223 # define DFLT_MAXMEM 256 /* use up to 256Kbyte for buffer */ | 223 # define DFLT_MAXMEM 256 // use up to 256Kbyte for buffer |
224 #endif | 224 #endif |
225 #ifndef DFLT_MAXMEMTOT | 225 #ifndef DFLT_MAXMEMTOT |
226 # define DFLT_MAXMEMTOT 0 /* decide in set_init */ | 226 # define DFLT_MAXMEMTOT 0 // decide in set_init |
227 #endif | 227 #endif |
228 | 228 |
229 #if defined(SASC) | 229 #if defined(SASC) |
230 int setenv(const char *, const char *); | 230 int setenv(const char *, const char *); |
231 #endif | 231 #endif |