From 4a67f2479892fda348546404216270aaaff523ea Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 10 Jul 2006 13:08:22 +0000 Subject: 22544: Improve use of ztype tests for multibyte characters. Add POSIX_IDENTIFIERS option to control allowability of multibyte alphanumeric characters in parameter and module names. --- Src/module.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Src/module.c') diff --git a/Src/module.c b/Src/module.c index fde78ac1d..398958cce 100644 --- a/Src/module.c +++ b/Src/module.c @@ -734,12 +734,8 @@ static int modname_ok(char const *p) { do { - if(*p != '_' && !ialnum(*p)) - return 0; - do { - p++; - } while(*p == '_' || ialnum(*p)); - if(!*p) + p = itype_end(p, IIDENT, 0); + if (!*p) return 1; } while(*p++ == '/'); return 0; -- cgit 1.4.1