Include stdarg.h.
authorJim Meyering <jim@meyering.net>
Sat, 18 Oct 2003 08:10:31 +0000 (08:10 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 18 Oct 2003 08:10:31 +0000 (08:10 +0000)
(version_etc_copyright): Declare as readonly.
(version_etc): Make this function variadic with a NULL-terminated list
of author name strings.
(version_etc_va): New declaration.

lib/version-etc.h

index 35b292dc1da5d82cb807b9c65333dd36150a90fb..d505e75eae7df03a06ec6097371f93d27d1cff68 100644 (file)
 #ifndef VERSION_ETC_H
 # define VERSION_ETC_H 1
 
+# include <stdarg.h>
 # include <stdio.h>
 
-extern char *version_etc_copyright;
+extern const char *version_etc_copyright;
 
-void version_etc (FILE *stream,
-                 const char *command_name, const char *package,
-                 const char *version, const char *writen_by);
+extern void version_etc_va (FILE *stream,
+                           const char *command_name, const char *package,
+                           const char *version, va_list authors);
+
+extern void version_etc (FILE *stream,
+                        const char *command_name, const char *package,
+                        const char *version,
+                        /* const char *author1, ...*/ ...);
 
 #endif /* VERSION_ETC_H */