[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/namespaces, updated. gawk-4.1.0-
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/namespaces, updated. gawk-4.1.0-2626-g8f53288 |
Date: |
Tue, 11 Jul 2017 01:20:14 -0400 (EDT) |
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, feature/namespaces has been updated
via 8f532881651b96d1cbe21cbf1e97e6726bf663d2 (commit)
via 9e419cfbc401e9b9fd45c8e854fdf5ae799261d5 (commit)
from 5be5ab39e61ac40e807ddb37912e897fc86b98fc (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=8f532881651b96d1cbe21cbf1e97e6726bf663d2
commit 8f532881651b96d1cbe21cbf1e97e6726bf663d2
Merge: 5be5ab3 9e419cf
Author: Arnold D. Robbins <address@hidden>
Date: Tue Jul 11 08:20:08 2017 +0300
Merge branch 'master' into feature/namespaces
diff --cc ext.c
index 64757c9,a2225d1..6640f02
--- a/ext.c
+++ b/ext.c
@@@ -99,22 -106,13 +106,14 @@@ make_builtin(const awk_ext_func_t *func
const char *name = funcinfo->name;
int count = funcinfo->max_expected_args;
- sp = name;
- if (sp == NULL || *sp == '\0')
+ if (name == NULL || *name == '\0')
fatal(_("make_builtin: missing function name"));
- if (! is_letter(*sp))
+ if (! is_valid_identifier(name))
return awk_false;
- for (sp++; (c = *sp++) != '\0';) {
- if (! is_identchar(c))
- return awk_false;
- }
-
- f = lookup(name);
+ // FIXME: Handle namespaces here
+ f = lookup(name, false);
if (f != NULL) {
if (f->type == Node_func) {
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
awk.h | 1 +
awkgram.c | 14 +++++++++++++-
awkgram.y | 14 +++++++++++++-
command.c | 2 +-
command.y | 4 ++--
ext.c | 43 +++++++++++++++++++++----------------------
main.c | 2 +-
8 files changed, 63 insertions(+), 28 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/namespaces, updated. gawk-4.1.0-2626-g8f53288,
Arnold Robbins <=