summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-05-20 00:51:58 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-05-20 00:51:58 +0000
commite682ce8b8c785a0e9b1bb775b548014ab97157f0 (patch)
tree89cec50836c6dba3da196ef05ae4aaf7b5b7e08f
parent66d23c8452daa5d25d2b0596673c953d9f8d7c76 (diff)
downloadgnome-common-e682ce8b8c785a0e9b1bb775b548014ab97157f0.tar.gz
Emit declaration.
* gnomesupport-h.c (strerror): Emit declaration. svn path=/trunk/; revision=214
-rw-r--r--support/ChangeLog1
-rw-r--r--support/gnomesupport-h.c19
2 files changed, 14 insertions, 6 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 03ffd7b..e433e09 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,5 +1,6 @@
1998-05-19 Raja R Harinath <harinath@cs.umn.edu>
+ * gnomesupport-h.c (strerror): Emit declaration.
* strerror.c: New file. Imported from GNU libiberty.
1998-05-19 Martin Baulig <martin@home-of-linux.org>
diff --git a/support/gnomesupport-h.c b/support/gnomesupport-h.c
index 7920e06..5da55bf 100644
--- a/support/gnomesupport-h.c
+++ b/support/gnomesupport-h.c
@@ -101,15 +101,13 @@ int alphasort PARAMS((const void */*a*/, const void */*b*/));
");
#endif
-#ifndef HAVE_STRTOK_R
+#ifndef HAVE_STRERROR
puts("\
-/* Divide S into tokens separated by characters in DELIM. Information
- passed between calls are stored in SAVE_PTR. */
-char * strtok_r PARAMS((char */*s*/, const char */*delim*/,
- char **/*save_ptr*/));
+/* Return a string describing the meaning of the `errno' code in ERRNUM. */
+extern char *strerror PARAMS((int /*errnum*/));
");
#endif
-
+
#ifndef HAVE_STRCASECMP
puts("\
/* Compare S1 and S2, ignoring case. */
@@ -134,6 +132,15 @@ size_t strnlen PARAMS((const char */*string*/, size_t /*maxlen*/));
");
#endif
+#ifndef HAVE_STRTOK_R
+ puts("\
+/* Divide S into tokens separated by characters in DELIM. Information
+ passed between calls are stored in SAVE_PTR. */
+char * strtok_r PARAMS((char */*s*/, const char */*delim*/,
+ char **/*save_ptr*/));
+");
+#endif
+
#ifndef HAVE_VASPRINTF
puts("\
/* Write formatted output to a string dynamically allocated with `malloc'.