/[global]/global/libutil/token.c
ViewVC logotype

Diff of /global/libutil/token.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by shigio, Thu Apr 7 06:09:20 2005 UTC revision 1.17 by shigio, Fri Apr 8 06:49:20 2005 UTC
# Line 38  Line 38 
38   * File input method.   * File input method.
39   */   */
40  int lineno;  int lineno;
41  unsigned char *sp, *cp, *lp;  const unsigned char *sp, *cp, *lp;
42  int crflag;                     /* 1: return '\n', 0: doesn't return */  int crflag;                     /* 1: return '\n', 0: doesn't return */
43  int cmode;                      /* allow token which start with '#' */  int cmode;                      /* allow token which start with '#' */
44  int cppmode;                    /* allow '::' as a token */  int cppmode;                    /* allow '::' as a token */
# Line 294  peekc(immediate) Line 294  peekc(immediate)
294  int  int
295  atfirst_exceptspace(void)  atfirst_exceptspace(void)
296  {  {
297          char *start = sp;          const char *start = sp;
298          char *end = cp ? cp - 1 : lp;          const char *end = cp ? cp - 1 : lp;
299    
300          while (start < end && *start && isspace(*start))          while (start < end && *start && isspace(*start))
301                  start++;                  start++;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26