summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-17 08:29:39 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-17 08:29:39 +0000
commit3e44ab5f03d41e9652d41aee92ea2b097500f050 (patch)
tree0b789e66f677e78db4d070bbf24d40857ed7f193
parent890f65bea4d970633f1b062bec85e2b6cdc27f3b (diff)
downloadgnome-common-3e44ab5f03d41e9652d41aee92ea2b097500f050.tar.gz
Removed. Using `const' instead of `CONST'.
1998-07-17 Martin Baulig <martin@home-of-linux.org> * strtol.c, strtoul.c (<ansidecl.h>): Removed. Using `const' instead of `CONST'. svn path=/trunk/; revision=283
-rw-r--r--support/ChangeLog5
-rw-r--r--support/strtol.c5
-rw-r--r--support/strtoul.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 8b79435..aa5a099 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,8 @@
+1998-07-17 Martin Baulig <martin@home-of-linux.org>
+
+ * strtol.c, strtoul.c (<ansidecl.h>): Removed. Using
+ `const' instead of `CONST'.
+
1998-07-15 Raja R Harinath <harinath@cs.umn.edu>
* gnomesupport.awk (gethostname): Emit declaration.
diff --git a/support/strtol.c b/support/strtol.c
index db27ee0..75b7493 100644
--- a/support/strtol.c
+++ b/support/strtol.c
@@ -37,7 +37,6 @@
#if 0
#include <stdlib.h>
#endif
-#include "ansidecl.h"
/* FIXME: It'd be nice to configure around these, but the include files are too
painful. These macros should at least be more portable than hardwired hex
@@ -63,11 +62,11 @@
*/
long
strtol(nptr, endptr, base)
- CONST char *nptr;
+ const char *nptr;
char **endptr;
register int base;
{
- register CONST char *s = nptr;
+ register const char *s = nptr;
register unsigned long acc;
register int c;
register unsigned long cutoff;
diff --git a/support/strtoul.c b/support/strtoul.c
index 4090245..54207fa 100644
--- a/support/strtoul.c
+++ b/support/strtoul.c
@@ -37,7 +37,6 @@
#if 0
#include <stdlib.h>
#endif
-#include "ansidecl.h"
#ifndef ULONG_MAX
#define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF */
@@ -51,11 +50,11 @@
*/
unsigned long
strtoul(nptr, endptr, base)
- CONST char *nptr;
+ const char *nptr;
char **endptr;
register int base;
{
- register CONST char *s = nptr;
+ register const char *s = nptr;
register unsigned long acc;
register int c;
register unsigned long cutoff;