#!/bin/sh
-(
+
+exec > prototypes.h
+
cat <<END
/* This file was generated by cproto. */
#if PROTOTYPES /* defined in config.h */
END
cproto -m -d \
- -D HAVE_STRDUP=0 -D HAVE_MEMSET=0 \
+ -D STDC_HEADERS=1 -D HAVE_STRDUP=0 -D HAVE_MEMSET=0 -D HAVE_MEMMOVE=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 \
/* lharc.c */
RETSIGTYPE interrupt(int signo);
/* util.c */
+#if !HAVE_MEMMOVE
+void *memmove P_(void *dst, const void *src, size_t cnt)
+#endif
#if !HAVE_STRDUP
char *strdup P_((char *buf));
#endif
#undef P_
END
-) > prototypes.h
}
void
-#if PROTOTYPES
+#if STDC_HEADERS
message(char *fmt, ...)
#else
message(fmt, va_alist)
/* ------------------------------------------------------------------------ */
void
-#if PROTOTYPES
+#if STDC_HEADERS
warning(char *fmt, ...)
#else
warning(fmt, va_alist)
/* ------------------------------------------------------------------------ */
void
-#if PROTOTYPES
+#if STDC_HEADERS
error(char *fmt, ...)
#else
error(fmt, va_alist)
}
void
-#if PROTOTYPES
+#if STDC_HEADERS
fatal_error(char *fmt, ...)
#else
fatal_error(fmt, va_alist)
-/* This file was generated by cproto */
+/* This file was generated by cproto. */
#if PROTOTYPES /* defined in config.h */
#define P_(s) s
#else
/* lharc.c */
RETSIGTYPE interrupt(int signo);
/* util.c */
+#if !HAVE_MEMMOVE
+void *memmove P_(void *dst, const void *src, size_t cnt)
+#endif
#if !HAVE_STRDUP
char *strdup P_((char *buf));
#endif