~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to ext.c

  • Committer: Arnold D. Robbins
  • Date: 2019-01-25 09:47:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1065.
  • Revision ID: git-v1:eceb548b02f0d72ca6a6e9a68bfd615ac9549a64
Rework namespace handling to make simpler and correct. Add two test cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
                if (check_special(name) >= 0)
119
119
                        fatal(_("make_builtin: can't use gawk built-in `%s' as function name"), name);
120
120
 
121
 
                f = lookup(name, false);
 
121
                f = lookup(name);
122
122
                install_name = estrdup(name, strlen(name));
123
123
        } else {
124
124
                if (! is_valid_identifier(name_space))
135
135
                sprintf(buf, "%s::%s", name_space, name);
136
136
                install_name = buf;
137
137
 
138
 
                f = lookup(install_name, false);
 
138
                f = lookup(install_name);
139
139
        }
140
140
 
141
141
        if (f != NULL) {