m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/m4/macro.c,v


From: Eric Blake
Subject: Changes to m4/m4/macro.c,v
Date: Sat, 11 Nov 2006 16:21:27 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      06/11/11 16:21:25

Index: m4/macro.c
===================================================================
RCS file: /sources/m4/m4/m4/macro.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- m4/macro.c  11 Nov 2006 14:00:28 -0000      1.63
+++ m4/macro.c  11 Nov 2006 16:21:25 -0000      1.64
@@ -115,9 +115,9 @@
 
     case M4_TOKEN_WORD:
       {
-       const unsigned char *textp = text;
+       const char *textp = text;
 
-       if (m4_has_syntax (M4SYNTAX, *textp, M4_SYNTAX_ESCAPE))
+       if (m4_has_syntax (M4SYNTAX, to_uchar (*textp), M4_SYNTAX_ESCAPE))
          ++textp;
 
        symbol = m4_symbol_lookup (M4SYMTAB, textp);
@@ -153,7 +153,7 @@
 {
   m4__token_type type;
   m4_symbol_value token;
-  const unsigned char *text;
+  const char *text;
   int paren_level = 0;
   const char *file = m4_get_current_file (context);
   int line = m4_get_current_line (context);
@@ -190,10 +190,9 @@
          /* fallthru */
        case M4_TOKEN_OPEN:
        case M4_TOKEN_SIMPLE:
-         text = m4_get_symbol_value_text (&token);
-         if (m4_has_syntax (M4SYNTAX, *text, M4_SYNTAX_OPEN))
+         if (type == M4_TOKEN_OPEN)
            paren_level++;
-         else if (m4_has_syntax (M4SYNTAX, *text, M4_SYNTAX_CLOSE))
+         else if (type == M4_TOKEN_CLOSE)
            paren_level--;
          expand_token (context, obs, type, &token);
          break;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]