diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-16 14:47:03 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-10-16 14:47:03 +0300 |
commit | 901fdb886eff28fd603c6e18e25df39d2f6a4c91 (patch) | |
tree | 638021083d28a83a40400ae8f4046d3dfaa167d9 | |
parent | 96cc62ad9763ee865e12b17bc2ff702ce850dbf2 (diff) | |
parent | dca1a2e3592390afa80fa0de3434cc1ec5a05fb0 (diff) | |
download | egawk-901fdb886eff28fd603c6e18e25df39d2f6a4c91.tar.gz egawk-901fdb886eff28fd603c6e18e25df39d2f6a4c91.tar.bz2 egawk-901fdb886eff28fd603c6e18e25df39d2f6a4c91.zip |
Merge branch 'gawk-5.1-stable' of ssh://git.sv.gnu.org/srv/git/gawk into gawk-5.1-stable
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/gawk.texi | 1 | ||||
-rw-r--r-- | doc/gawktexi.in | 1 | ||||
-rw-r--r-- | support/ChangeLog | 4 | ||||
-rw-r--r-- | support/random.c | 17 |
5 files changed, 17 insertions, 10 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 8ca737b1..92ba1581 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -3,6 +3,10 @@ * gawktexi.in: After review, remove/update some FIXMEs, and and fix a markup error. +2020-10-15 Arnold D. Robbins <arnold@skeeve.com> + + * gawktexi.in: Add an index entry. + 2020-10-12 Arnold D. Robbins <arnold@skeeve.com> * gawktexi.in: Explain `ls -l' earlier in the book, and small wording diff --git a/doc/gawk.texi b/doc/gawk.texi index d22509ca..0dc7a037 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -3686,6 +3686,7 @@ used once, and thrown away. Because @command{awk} programs are interpreted, you can avoid the (usually lengthy) compilation part of the typical edit-compile-test-debug cycle of software development. +@cindex BWK @command{awk} @seeentry{Brian Kernighan's @command{awk}} @cindex Brian Kernighan's @command{awk} Complex programs have been written in @command{awk}, including a complete retargetable assembler for diff --git a/doc/gawktexi.in b/doc/gawktexi.in index 30087d1a..b584181d 100644 --- a/doc/gawktexi.in +++ b/doc/gawktexi.in @@ -3596,6 +3596,7 @@ used once, and thrown away. Because @command{awk} programs are interpreted, you can avoid the (usually lengthy) compilation part of the typical edit-compile-test-debug cycle of software development. +@cindex BWK @command{awk} @seeentry{Brian Kernighan's @command{awk}} @cindex Brian Kernighan's @command{awk} Complex programs have been written in @command{awk}, including a complete retargetable assembler for diff --git a/support/ChangeLog b/support/ChangeLog index e8fbd4b2..b81b0e71 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,7 @@ +2020-10-15 Arnold D. Robbins <arnold@skeeve.com> + + * random.c: Move code to using prototypes. + 2020-09-30 Arnold D. Robbins <arnold@skeeve.com> * dfa.c: Synced from GNULIB. diff --git a/support/random.c b/support/random.c index 1aab2b50..8604b036 100644 --- a/support/random.c +++ b/support/random.c @@ -270,8 +270,7 @@ static uint32_t *end_ptr = &randtbl[DEG_3 + 1]; static inline uint32_t good_rand(int32_t); -static inline uint32_t good_rand (x) - int32_t x; +static inline uint32_t good_rand (int32_t x) { #ifdef USE_WEAK_SEEDING /* @@ -316,8 +315,7 @@ static inline uint32_t good_rand (x) * for default usage relies on values produced by this routine. */ void -srandom(x) - unsigned long x; +srandom(unsigned long x) { int i, lim; @@ -408,10 +406,10 @@ srandomdev() * complain about mis-alignment, but you should disregard these messages. */ char * -initstate(seed, arg_state, n) - unsigned long seed; /* seed for R.N.G. */ - char *arg_state; /* pointer to state array */ - long n; /* # bytes of state info */ +initstate( + unsigned long seed, /* seed for R.N.G. */ + char *arg_state, /* pointer to state array */ + long n) /* # bytes of state info */ { char *ostate = (char *)(&state[-1]); uint32_t *int_arg_state = (uint32_t *)arg_state; @@ -476,8 +474,7 @@ initstate(seed, arg_state, n) * complain about mis-alignment, but you should disregard these messages. */ char * -setstate(arg_state) - char *arg_state; /* pointer to state array */ +setstate(char *arg_state) /* pointer to state array */ { uint32_t *new_state = (uint32_t *)arg_state; uint32_t type = new_state[0] % MAX_TYPES; |