summaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:48:38 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:48:38 +0900
commit5eef5e9a1c52f9ec438967247437c0201c4f3db1 (patch)
treec5f77f763db71a5e4f58603e0429af8bddd292b6 /output.c
parent62b3121283f2b8883922c55079a1aef028578500 (diff)
downloadbyacc-5eef5e9a1c52f9ec438967247437c0201c4f3db1.tar.gz
byacc-5eef5e9a1c52f9ec438967247437c0201c4f3db1.tar.bz2
byacc-5eef5e9a1c52f9ec438967247437c0201c4f3db1.zip
Imported Upstream version 20170709upstream/20170709
Diffstat (limited to 'output.c')
-rw-r--r--output.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/output.c b/output.c
index d52d920..9f87911 100644
--- a/output.c
+++ b/output.c
@@ -1,4 +1,4 @@
-/* $Id: output.c,v 1.81 2017/04/30 23:23:32 tom Exp $ */
+/* $Id: output.c,v 1.83 2017/07/09 18:13:42 tom Exp $ */
#include "defs.h"
@@ -1162,21 +1162,21 @@ is_C_identifier(char *name)
if (c == '"')
{
c = *++s;
- if (!isalpha(c) && c != '_' && c != '$')
+ if (!IS_NAME1(c))
return (0);
while ((c = *++s) != '"')
{
- if (!isalnum(c) && c != '_' && c != '$')
+ if (!IS_NAME2(c))
return (0);
}
return (1);
}
- if (!isalpha(c) && c != '_' && c != '$')
+ if (!IS_NAME1(c))
return (0);
while ((c = *++s) != 0)
{
- if (!isalnum(c) && c != '_' && c != '$')
+ if (!IS_NAME2(c))
return (0);
}
return (1);