Mercurial > vim
comparison src/osdef1.h.in @ 7722:c4f8b1d48f20 v7.4.1159
commit https://github.com/vim/vim/commit/e240c2da796531e807ea9df78bdbcc7b1012870c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 23 22:46:10 2016 +0100
patch 7.4.1159
Problem: Automatically generated function prototypes use __ARGS.
Solution: Remove __ARGS from osdef.sh.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 23 Jan 2016 23:00:05 +0100 |
parents | 3112fcc89238 |
children | 37a441352da2 |
comparison
equal
deleted
inserted
replaced
7721:da1c7c4c6d32 | 7722:c4f8b1d48f20 |
---|---|
10 * - osdef.h is included in vim.h. | 10 * - osdef.h is included in vim.h. |
11 * | 11 * |
12 * sed cannot always handle so many commands, this is file 1 of 2 | 12 * sed cannot always handle so many commands, this is file 1 of 2 |
13 */ | 13 */ |
14 | 14 |
15 extern int printf __ARGS((char *, ...)); | 15 extern int printf(char *, ...); |
16 extern int fprintf __ARGS((FILE *, char *, ...)); | 16 extern int fprintf(FILE *, char *, ...); |
17 extern int sprintf __ARGS((char *, char *, ...)); | 17 extern int sprintf(char *, char *, ...); |
18 extern int sscanf __ARGS((char *, char *, ...)); | 18 extern int sscanf(char *, char *, ...); |
19 #ifndef fopen /* could be redefined to fopen64() */ | 19 #ifndef fopen /* could be redefined to fopen64() */ |
20 extern FILE *fopen __ARGS((const char *, const char *)); | 20 extern FILE *fopen(const char *, const char *); |
21 #endif | 21 #endif |
22 extern int fclose __ARGS((FILE *)); | 22 extern int fclose(FILE *); |
23 extern int fseek __ARGS((FILE *, long, int)); | 23 extern int fseek(FILE *, long, int); |
24 #ifdef HAVE_FSEEKO | 24 #ifdef HAVE_FSEEKO |
25 extern int fseeko __ARGS((FILE *, off_t, int)); | 25 extern int fseeko(FILE *, off_t, int); |
26 #endif | 26 #endif |
27 extern long ftell __ARGS((FILE *)); | 27 extern long ftell(FILE *); |
28 #ifdef HAVE_FSEEKO | 28 #ifdef HAVE_FSEEKO |
29 extern off_t ftello __ARGS((FILE *)); | 29 extern off_t ftello(FILE *); |
30 #endif | 30 #endif |
31 extern void rewind __ARGS((FILE *)); | 31 extern void rewind(FILE *); |
32 extern int fread __ARGS((char *, int, int, FILE *)); | 32 extern int fread(char *, int, int, FILE *); |
33 extern int fwrite __ARGS((char *, int, int, FILE *)); | 33 extern int fwrite(char *, int, int, FILE *); |
34 extern int fputs __ARGS((char *, FILE *)); | 34 extern int fputs(char *, FILE *); |
35 #ifndef ferror /* let me say it again: "macros should never have prototypes" */ | 35 #ifndef ferror /* let me say it again: "macros should never have prototypes" */ |
36 extern int ferror __ARGS((FILE *)); | 36 extern int ferror(FILE *); |
37 #endif | 37 #endif |
38 extern int fflush __ARGS((FILE *)); | 38 extern int fflush(FILE *); |
39 #if defined(sun) || defined(_SEQUENT_) | 39 #if defined(sun) || defined(_SEQUENT_) |
40 /* used inside of stdio macros getc(), puts(), putchar()... */ | 40 /* used inside of stdio macros getc(), puts(), putchar()... */ |
41 extern int _flsbuf __ARGS((int, FILE *)); | 41 extern int _flsbuf(int, FILE *); |
42 extern int _filbuf __ARGS((FILE *)); | 42 extern int _filbuf(FILE *); |
43 #endif | 43 #endif |
44 | 44 |
45 #if !defined(HAVE_SELECT) | 45 #if !defined(HAVE_SELECT) |
46 struct pollfd; /* for poll __ARGS */ | 46 struct pollfd; /* for poll() */ |
47 extern int poll __ARGS((struct pollfd *, long, int)); | 47 extern int poll(struct pollfd *, long, int); |
48 #endif | 48 #endif |
49 | 49 |
50 #ifdef HAVE_MEMSET | 50 #ifdef HAVE_MEMSET |
51 extern void *memset __ARGS((void *, int, size_t)); | 51 extern void *memset(void *, int, size_t); |
52 #endif | 52 #endif |
53 #ifdef HAVE_BCMP | 53 #ifdef HAVE_BCMP |
54 extern int bcmp __ARGS((void *, void *, size_t)); | 54 extern int bcmp(void *, void *, size_t); |
55 #endif | 55 #endif |
56 #ifdef HAVE_MEMCMP | 56 #ifdef HAVE_MEMCMP |
57 extern int memcmp __ARGS((const void *, const void *, size_t)); | 57 extern int memcmp(const void *, const void *, size_t); |
58 #endif | 58 #endif |
59 #ifdef HAVE_STRPBRK | 59 #ifdef HAVE_STRPBRK |
60 extern char *strpbrk __ARGS((const char *, const char *)); | 60 extern char *strpbrk(const char *, const char *); |
61 #endif | 61 #endif |
62 #ifdef USEBCOPY | 62 #ifdef USEBCOPY |
63 extern void bcopy __ARGS((char *, char *, int)); | 63 extern void bcopy(char *, char *, int); |
64 #else | 64 #else |
65 # ifdef USEMEMCPY | 65 # ifdef USEMEMCPY |
66 extern void memcpy __ARGS((char *, char *, int)); | 66 extern void memcpy(char *, char *, int); |
67 # else | 67 # else |
68 # ifdef USEMEMMOVE | 68 # ifdef USEMEMMOVE |
69 extern void memmove __ARGS((char *, char *, int)); | 69 extern void memmove(char *, char *, int); |
70 # endif | 70 # endif |
71 # endif | 71 # endif |
72 #endif | 72 #endif |
73 /* used inside of FD_ZERO macro: */ | 73 /* used inside of FD_ZERO macro: */ |
74 extern void bzero __ARGS((void *, size_t)); | 74 extern void bzero(void *, size_t); |
75 #ifdef HAVE_SETSID | 75 #ifdef HAVE_SETSID |
76 extern pid_t setsid __ARGS((void)); | 76 extern pid_t setsid(void); |
77 #endif | 77 #endif |
78 #ifdef HAVE_SETPGID | 78 #ifdef HAVE_SETPGID |
79 extern int setpgid __ARGS((pid_t, pid_t)); | 79 extern int setpgid(pid_t, pid_t); |
80 #endif | 80 #endif |
81 #ifdef HAVE_STRTOL | 81 #ifdef HAVE_STRTOL |
82 extern int strtol __ARGS((char *, char **, int)); | 82 extern int strtol(char *, char **, int); |
83 #endif | 83 #endif |
84 #ifdef HAVE_STRFTIME | 84 #ifdef HAVE_STRFTIME |
85 extern size_t strftime __ARGS((char *, size_t, char *, struct tm *)); | 85 extern size_t strftime(char *, size_t, char *, struct tm *); |
86 #endif | 86 #endif |
87 #ifdef HAVE_STRCASECMP | 87 #ifdef HAVE_STRCASECMP |
88 extern int strcasecmp __ARGS((char *, char *)); | 88 extern int strcasecmp(char *, char *); |
89 #endif | 89 #endif |
90 #ifdef HAVE_STRNCASECMP | 90 #ifdef HAVE_STRNCASECMP |
91 extern int strncasecmp __ARGS((char *, char *, size_t)); | 91 extern int strncasecmp(char *, char *, size_t); |
92 #endif | 92 #endif |
93 #ifndef strdup | 93 #ifndef strdup |
94 extern char *strdup __ARGS((const char *)); | 94 extern char *strdup(const char *); |
95 #endif | 95 #endif |
96 extern int atoi __ARGS((char *)); | 96 extern int atoi(char *); |
97 extern int atol __ARGS((char *)); | 97 extern int atol(char *); |
98 | 98 |
99 #ifndef USE_SYSTEM | 99 #ifndef USE_SYSTEM |
100 extern int fork __ARGS((void)); | 100 extern int fork(void); |
101 # ifndef __TANDEM | 101 # ifndef __TANDEM |
102 extern int execvp __ARGS((const char *, const char **)); | 102 extern int execvp(const char *, const char **); |
103 # endif | 103 # endif |
104 extern int wait __ARGS((int *)); /* will this break things ...? */ | 104 extern int wait(int *); /* will this break things ...? */ |
105 extern int waitpid __ARGS((pid_t, int *, int)); | 105 extern int waitpid(pid_t, int *, int); |
106 #endif | 106 #endif |
107 | 107 |
108 extern int toupper __ARGS((int)); | 108 extern int toupper(int); |
109 extern int tolower __ARGS((int)); | 109 extern int tolower(int); |
110 | 110 |
111 extern RETSIGTYPE (*signal __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG); | 111 extern RETSIGTYPE (*signal(int, RETSIGTYPE (*func) SIGPROTOARG)) SIGPROTOARG; |
112 #ifdef HAVE_SIGSET | 112 #ifdef HAVE_SIGSET |
113 extern RETSIGTYPE (*sigset __ARGS((int, RETSIGTYPE (*func) SIGPROTOARG))) __ARGS(SIGPROTOARG); | 113 extern RETSIGTYPE (*sigset(int, RETSIGTYPE (*func) SIGPROTOARG)) SIGPROTOARG; |
114 #endif | 114 #endif |
115 | 115 |
116 #if defined(HAVE_SETJMP_H) | 116 #if defined(HAVE_SETJMP_H) |
117 # ifdef HAVE_SIGSETJMP | 117 # ifdef HAVE_SIGSETJMP |
118 extern int sigsetjmp __ARGS((sigjmp_buf, int)); | 118 extern int sigsetjmp(sigjmp_buf, int); |
119 extern void siglongjmp __ARGS((sigjmp_buf, int)); | 119 extern void siglongjmp(sigjmp_buf, int); |
120 # else | 120 # else |
121 extern int setjmp __ARGS((jmp_buf)); | 121 extern int setjmp(jmp_buf); |
122 extern void longjmp __ARGS((jmp_buf, int)); | 122 extern void longjmp(jmp_buf, int); |
123 # endif | 123 # endif |
124 #endif | 124 #endif |
125 | 125 |
126 extern int kill __ARGS((int, int)); | 126 extern int kill(int, int); |
127 | 127 |
128 #ifndef __TANDEM | 128 #ifndef __TANDEM |
129 extern int access __ARGS((char *, int)); | 129 extern int access(char *, int); |
130 #endif | 130 #endif |
131 extern int fsync __ARGS((int)); | 131 extern int fsync(int); |
132 extern int fchown __ARGS((int, int, int)); | 132 extern int fchown(int, int, int); |
133 #if defined(HAVE_GETCWD) && !defined(sun) && !defined(__TANDEM) | 133 #if defined(HAVE_GETCWD) && !defined(sun) && !defined(__TANDEM) |
134 extern char *getcwd __ARGS((char *, int)); | 134 extern char *getcwd(char *, int); |
135 #else | 135 #else |
136 extern char *getwd __ARGS((char *)); | 136 extern char *getwd(char *); |
137 #endif | 137 #endif |
138 #ifndef __alpha /* suggested by Campbell */ | 138 #ifndef __alpha /* suggested by Campbell */ |
139 extern int ioctl __ARGS((int, int, ...)); | 139 extern int ioctl(int, int, ...); |
140 #endif | 140 #endif |
141 extern int chmod __ARGS((const char *, mode_t)); | 141 extern int chmod(const char *, mode_t); |