~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to main.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:
1170
1170
                fatal(_("cannot use gawk builtin `%s' as variable name"), arg);
1171
1171
 
1172
1172
        if (! initing) {
1173
 
                var = lookup(arg, false);
 
1173
                var = lookup(arg);
1174
1174
                if (var != NULL && var->type == Node_func)
1175
1175
                        fatal(_("cannot use function `%s' as variable name"), arg);
1176
1176
        }