summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-07-15 23:51:59 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-07-15 23:51:59 +0000
commit890f65bea4d970633f1b062bec85e2b6cdc27f3b (patch)
treec9cb7cfca4d10be207863c50edf0c6c830b26523
parent63f605e8b5ace2913b41e9051c6e0b562c8235b1 (diff)
downloadgnome-common-890f65bea4d970633f1b062bec85e2b6cdc27f3b.tar.gz
Emit declaration.
* gnomesupport.awk (gethostname): Emit declaration. svn path=/trunk/; revision=282
-rw-r--r--support/ChangeLog6
-rw-r--r--support/gnomesupport.awk18
2 files changed, 17 insertions, 7 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index e59681a..8b79435 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,6 +1,10 @@
+1998-07-15 Raja R Harinath <harinath@cs.umn.edu>
+
+ * gnomesupport.awk (gethostname): Emit declaration.
+
1998-07-15 Martin Baulig <baulig@Stud.Informatik.uni-trier.de>
- * gnomesupport-h.c (memmove strtod strtol strtoul): Emit
+ * gnomesupport.awk (memmove strtod strtol strtoul): Emit
declarations.
* memmove.c: New file. Imported from GNU libiberty.
diff --git a/support/gnomesupport.awk b/support/gnomesupport.awk
index 094a6f1..3e1ca0e 100644
--- a/support/gnomesupport.awk
+++ b/support/gnomesupport.awk
@@ -44,6 +44,18 @@ END {
}
}
+ if (def["NEED_DECLARATION_GETHOSTNAME"]) {
+ print "";
+ print "/* Get name of current host. */";
+ print "int gethostname(char */*name*/, int /*namelen*/);";
+ }
+
+ if (!def["HAVE_MEMMOVE"]) {
+ print "";
+ print "/* Copies len bytes from src to dest. */";
+ print "void * memmove (void */*dest*/, const void */*src*/, size_t /*len*/);";
+ }
+
if (!def["HAVE_MKSTEMP"]) {
print "";
print "/* Generate a unique temporary file name from TEMPLATE.";
@@ -155,12 +167,6 @@ END {
print " char */*fmt*/, ...);";
}
- if (!def["HAVE_MEMMOVE"]) {
- print "";
- print "/* Copies len bytes from src to dest. */";
- print "void * memmove (void */*dest*/, const void */*src*/, size_t /*len*/);";
- }
-
print "";
print "#ifdef __cplusplus";
print "}";