~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Arnold D. Robbins
  • Date: 2014-09-15 20:14:23 UTC
  • mfrom: (408.2.359)
  • mto: (408.27.1) (615.1.1)
  • mto: This revision was merged to the branch mainline in revision 528.
  • Revision ID: git-v1:7ac81efe10795318427ad71f9c05b9c93442acfb
Merge branch 'master' into comment, update ChangeLogs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1329
1329
 
1330
1330
        /* first check that the variable name has valid syntax */
1331
1331
        badvar = false;
1332
 
        if (! isalpha((unsigned char) arg[0]) && arg[0] != '_')
 
1332
        if (! is_alpha((unsigned char) arg[0]) && arg[0] != '_')
1333
1333
                badvar = true;
1334
1334
        else
1335
1335
                for (cp2 = arg+1; *cp2; cp2++)
1336
 
                        if (! isalnum((unsigned char) *cp2) && *cp2 != '_') {
 
1336
                        if (! is_identchar((unsigned char) *cp2)) {
1337
1337
                                badvar = true;
1338
1338
                                break;
1339
1339
                        }