aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-04-16 11:49:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2013-04-16 11:49:35 +0300
commita7da113d7a5918bee47504ed6564988a9212eb9b (patch)
treed2b7eb1641187e5d13fe992486a0d8bf6e6a025c
parenteb6c4b9c94f0c537e1eeb96356bb59361f578c5c (diff)
downloadegawk-a7da113d7a5918bee47504ed6564988a9212eb9b.tar.gz
egawk-a7da113d7a5918bee47504ed6564988a9212eb9b.tar.bz2
egawk-a7da113d7a5918bee47504ed6564988a9212eb9b.zip
Modernize random.h some.
-rw-r--r--ChangeLog3
-rw-r--r--random.h11
2 files changed, 4 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index fb31b056..fd949052 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* awkgram.c: Regenerated from bison 2.7.1.
* dfa.h, dfa.c: Minor edits to sync with GNU grep.
* gettext.h: Sync with gettext 0.18.2.1.
+ * random.h: Remove obsolete __P macro and use. Update copyright.
2013-04-14 Arnold D. Robbins <arnold@skeeve.com>
@@ -66,7 +67,7 @@
2013-02-26 Arnold D. Robbins <arnold@skeeve.com>
- * parse.y (expression_list): In case of error return the list
+ * awkgram.y (expression_list): In case of error return the list
instead of NULL so that snode gets something it can count.
2013-02-12 Arnold D. Robbins <arnold@skeeve.com>
diff --git a/random.h b/random.h
index 626cbcdb..d4c6ef16 100644
--- a/random.h
+++ b/random.h
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1996, 2001, 2004, 2005 the Free Software Foundation, Inc.
+ * Copyright (C) 1996, 2001, 2004, 2005, 2013 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -40,11 +40,4 @@ typedef long gawk_int32_t;
#define uint32_t gawk_uint32_t
#define int32_t gawk_int32_t
-#ifdef __STDC__
-#undef __P
-#define __P(s) s
-#else
-#define __P(s) ()
-#endif
-
-extern long random __P((void));
+extern long random (void);