OSDN Git Service

* src/cproto.sh: added for maintainer.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 6 Jul 2002 19:17:11 +0000 (19:17 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 6 Jul 2002 19:17:11 +0000 (19:17 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@305 6a8cc165-1e22-0410-a132-eb4e3f353aba

src/cproto.sh [new file with mode: 0644]

diff --git a/src/cproto.sh b/src/cproto.sh
new file mode 100644 (file)
index 0000000..7468715
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+(
+cat <<END
+/* This file was generated by cproto. */
+#if PROTOTYPES /* defined in config.h */
+#define P_(s) s
+#else
+#define P_(s) ()
+#endif
+
+END
+
+cproto -m -d \
+       -D HAVE_STRDUP=0 -D HAVE_MEMSET=0 \
+       append.c crcio.c dhuf.c extract.c header.c \
+       huf.c larc.c lhadd.c lharc.c lhext.c \
+       lhlist.c maketbl.c maketree.c patmatch.c \
+       shuf.c slide.c util.c
+
+cat <<END
+
+/* lharc.c */
+RETSIGTYPE interrupt(int signo);
+/* util.c */
+#if !HAVE_STRDUP
+char *strdup P_((char *buf));
+#endif
+#if !HAVE_MEMSET
+char *memset P_((char *s, int c, int n));
+#endif
+
+/* vsnprintf.c */
+#if !HAVE_VSNPRINTF
+int vsnprintf P_((char *str, size_t n, const char *fmt, va_list ap));
+int snprintf P_((char *str, size_t n, char const *fmt, ...));
+#endif
+
+#undef P_
+END
+) > prototypes.h