From 4970a67b06ca1a2a196741801fb81ac760e0daa3 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Sun, 8 Oct 2000 04:14:26 +0000 Subject: [PATCH] Fixed minor preprocessor bug introduced by last revision. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@917 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Preprocessor/cpp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index 90a48f295..7a4041b47 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -705,7 +705,10 @@ check_id(DOH *s) switch(state) { case 0: - if (isdigit(c)) state = 1; + if (isdigit(c)) { + hasvalue =1; + state = 1; + } else if (isidentifier(c)) return 1; else if (c == '\"') { skip_tochar(s,'\"',0);