diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1998-07-15 23:51:59 +0000 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1998-07-15 23:51:59 +0000 |
commit | 890f65bea4d970633f1b062bec85e2b6cdc27f3b (patch) | |
tree | c9cb7cfca4d10be207863c50edf0c6c830b26523 /support | |
parent | 63f605e8b5ace2913b41e9051c6e0b562c8235b1 (diff) | |
download | shared-mime-info-890f65bea4d970633f1b062bec85e2b6cdc27f3b.tar.gz |
Emit declaration.
* gnomesupport.awk (gethostname): Emit declaration.
svn path=/trunk/; revision=282
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 6 | ||||
-rw-r--r-- | support/gnomesupport.awk | 18 |
2 files changed, 17 insertions, 7 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index e59681a5..8b794355 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 094a6f18..3e1ca0e8 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 "}"; |