bug-global
[Top][All Lists]
Advanced

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

Re: question about reserved word file


From: Shigio Yamaguchi
Subject: Re: question about reserved word file
Date: Wed, 13 Oct 2004 08:18:53 +0900

> Does this mean that we have to write htags scanners like this?
> 
> 
> ^[ \t]*\#[ \t]*{WORD} {
>       char *p = strdup(LEXTEXT);
> 
>       if (p==NULL)
>               die();
>       if (reserved_sharp(LEXTEXT, LEXLENG)) {
>               put_macro(p);
>       } else {
>               echos(p);
>               if (wflag)
>                       unknown_preprocessing_directive(LEXTEXT, LINENO);
>       }
>       free(p);
>       yy_push_state(PREPROCESSOR_LINE);
> }

No, I mean the followings:

        char *p = strtrim(" aaa ", TRIM_ALL, NULL);
        char *q = strtrim(" bbb ", TRIM_ALL, NULL);

        p => "bbb"      <= rewritten by the following call.
        q => "bbb"

I have committed libutil/strmake.c. Would you please check it?
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

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