OSDN Git Service

* src/cproto.sh: added for maintainer.
[lha/lha.git] / src / cproto.sh
1 #!/bin/sh
2 (
3 cat <<END
4 /* This file was generated by cproto. */
5 #if PROTOTYPES /* defined in config.h */
6 #define P_(s) s
7 #else
8 #define P_(s) ()
9 #endif
10
11 END
12
13 cproto -m -d \
14         -D HAVE_STRDUP=0 -D HAVE_MEMSET=0 \
15         append.c crcio.c dhuf.c extract.c header.c \
16         huf.c larc.c lhadd.c lharc.c lhext.c \
17         lhlist.c maketbl.c maketree.c patmatch.c \
18         shuf.c slide.c util.c
19
20 cat <<END
21
22 /* lharc.c */
23 RETSIGTYPE interrupt(int signo);
24 /* util.c */
25 #if !HAVE_STRDUP
26 char *strdup P_((char *buf));
27 #endif
28 #if !HAVE_MEMSET
29 char *memset P_((char *s, int c, int n));
30 #endif
31
32 /* vsnprintf.c */
33 #if !HAVE_VSNPRINTF
34 int vsnprintf P_((char *str, size_t n, const char *fmt, va_list ap));
35 int snprintf P_((char *str, size_t n, char const *fmt, ...));
36 #endif
37
38 #undef P_
39 END
40 ) > prototypes.h