gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2003-g8ad38b


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2003-g8ad38bf
Date: Tue, 25 Oct 2016 20:14:07 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  8ad38bf4d70682433e3f53fe0637929f28d64e3e (commit)
       via  fdcba89428e5171dac624bfcfa75bd5430ec7c18 (commit)
       via  04e37f2ec691b6ba1f4e4d57e4baaccbcdd305cc (commit)
      from  8231da563c810ce210ce309ee1a022bad22a1e13 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=8ad38bf4d70682433e3f53fe0637929f28d64e3e

commit 8ad38bf4d70682433e3f53fe0637929f28d64e3e
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Oct 25 23:13:52 2016 +0300

    Ignore doc/*.info in .gitignore.

diff --git a/.gitignore b/.gitignore
index 7244519..937a497 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,5 @@ gawk
 stamp-h1
 
 test/fmtspcl.ok
+
+doc/*.info

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=fdcba89428e5171dac624bfcfa75bd5430ec7c18

commit fdcba89428e5171dac624bfcfa75bd5430ec7c18
Merge: 8231da5 04e37f2
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Oct 25 23:12:49 2016 +0300

    Merge branch 'gawk-4.1-stable'

diff --cc ChangeLog
index 8209cdc,84817fe..d451ef6
--- a/ChangeLog
+++ b/ChangeLog
@@@ -1,56 -1,9 +1,60 @@@
  2016-10-25         Arnold D. Robbins     <address@hidden>
  
+       * io.c (init_awkpath): Restore documented behavior whereby
+       null elements represent the current directory. Sheesh.
+       Bug reported by "Jun T." <address@hidden>.
+ 
 +      Disallow negative arguments to the bitwise functions.
 +
 +      * NEWS: Document this.
 +      * builtin.c (do_lshift, do_rshift, do_and, do_or, do_xor, do_compl):
 +      Make negative arguments a fatal error.
 +      * mpfr.c (do_mpfr_compl, get_intval): Ditto.
 +
 +2016-10-23         Arnold D. Robbins     <address@hidden>
 +
 +      * General: Remove trailing whitespace from all relevant files.
 +      * mpfr.c: Replace Unicode sequences with ASCII.
 +      * cint_array.c: Ditto.
 +
 +2016-10-16         Arnold D. Robbins     <address@hidden>
 +
 +      * awkgram.y: Typo fix in call to add_sign_to_num.
 +
 +2016-10-16         Arnold D. Robbins     <address@hidden>
 +
 +      * awk.h (enum opcodeval): Add Op_unary_plus.
 +      * awkgram.y (add_sign_to_num): New routine to put in a sign on
 +      profiling constants.  Call it as necessary.
 +      In unary plus production, use new opcode, or set up a
 +      constant as for unary minus.
 +      (negate_num): Call add_sign_to_num instead of doing it directly.
 +      * eval.c (optypetab): Add entry for Op_unary_plus.
 +      * interpret.h (r_interpret): Add case for Op_unary_plus.
 +      * profile.c (pprint, prec_level, is_scalar): Ditto.
 +
 +2016-10-13         Arnold D. Robbins     <address@hidden>
 +
 +      * dfa.c: Sync with GNULIB.
 +
 +2016-10-12         Arnold D. Robbins     <address@hidden>
 +
 +      * awkgram.y (make_profile_number): Allocate an extra byte for the
 +      string, so there's room for a minus if necessary. Store '\0'
 +      in the right place.
 +      (negate_num): Use memmove to shift the string up and then
 +      insert a minus, instead of doing a fresh alloc + copy + free.
 +
 +2016-10-11         Arnold D. Robbins     <address@hidden>
 +
 +      * awk.h (NUMCONSTSTR): New flag value.
 +      * awkgram.y (make_profile_number): New function. Use it
 +      wherever we make a number.  This calls make_number and then, if
 +      pretty printing, save the original string value and sets NUMCONSTSTR.
 +      (negate_num): If NUNCONSTSTR set, update the saved string value.
 +      * profile.c (pp_number): Assert NUMCONSSTR set, use that value.
 +      Remove previous code.
 +
  2016-09-24  Eli Zaretskii  <address@hidden>
  
        * debug.c (restart) [__MINGW32__]: Cast 2nd argument of execvp to
diff --cc io.c
index 761520e,931dcfe..00a627f
--- a/io.c
+++ b/io.c
@@@ -2743,43 -2610,53 +2745,53 @@@ init_awkpath(path_info *pi
        emalloc(pi->awkpath, char **, (max_path + 1) * sizeof(char *), 
"init_awkpath");
        memset(pi->awkpath, 0, (max_path + 1) * sizeof(char *));
  
-       end = start = path;
+       start = path;
        i = 0;
+ 
+       if (*path == envsep)    /* null entry at front of path */
+               pi->awkpath[i++] = ".";
+ 
        while (*start) {
-               while (*end && *end != envsep)
-                       end++;
-               len = end - start;
-               if (len > 0) {
-                       /* +2 is correct here; leave room for / */
-                       emalloc(p, char *, len + 2, "init_awkpath");
-                       memcpy(p, start, len);
- 
-                       /* add directory punctuation if necessary */
-                       if (! isdirpunct(end[-1]))
-                               p[len++] = '/';
-                       p[len] = '\0';
- 
-                       if (i == max_path) {
-                               max_path += INC_PATH;
-                               erealloc(pi->awkpath, char **, (max_path + 1) * 
sizeof(char *), "init_awkpath");
-                               memset(pi->awkpath + i, 0, (INC_PATH + 1) * 
sizeof(char *));
-                       }
-                       pi->awkpath[i++] = p;
-                       if (len > pi->max_pathlen)
-                               pi->max_pathlen = len;
+               if (*start == envsep) {
+                       if (start[1] == envsep) {
+                               pi->awkpath[i++] = ".";
+                               if (pi->max_pathlen == 0)
+                                       pi->max_pathlen = 1;
+                               start++;
+                       } else if (start[1] == '\0') {
+                               pi->awkpath[i++] = ".";
+                               if (pi->max_pathlen == 0)
+                                       pi->max_pathlen = 1;
+                               break;
+                       } else
+                               start++;
+               } else {
+                       for (end = start; *end && *end != envsep; end++)
+                               continue;
+ 
+                       len = end - start;
+                       if (len > 0) {
+                               emalloc(p, char *, len + 2, "init_awkpath");
+                               memcpy(p, start, len);
+ 
+                               /* add directory punctuation if necessary */
+                               if (! isdirpunct(end[-1]))
+                                       p[len++] = '/';
+                               p[len] = '\0';
+                               pi->awkpath[i++] = p;
+                               if (len > pi->max_pathlen)
+                                       pi->max_pathlen = len;
+ 
+                               start = end;
+                       } else
+                               start++;
                }
- 
-               /* skip one or more envsep char */
-               while (*end && *end == envsep)
-                       end++;
-               start = end;
        }
-       pi->awkpath[i] = NULL;
  
- #undef INC_PATH
+       pi->awkpath[i] = NULL;
  }
  
 -/* do_find_source --- search $AWKPATH for file, return NULL if not found */ 
 +/* do_find_source --- search $AWKPATH for file, return NULL if not found */
  
  static char *
  do_find_source(const char *src, struct stat *stb, int *errcode, path_info *pi)

-----------------------------------------------------------------------

Summary of changes:
 .gitignore |    2 ++
 ChangeLog  |    4 ++++
 io.c       |   76 +++++++++++++++++++++++++++++++++++-------------------------
 3 files changed, 50 insertions(+), 32 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]