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: Hideki IWAMOTO
Subject: Re: question about reserved word file
Date: Wed, 13 Oct 2004 01:51:12 +0900

On Tue, 12 Oct 2004 23:56:24 +0900, Shigio Yamaguchi wrote...
> NOTE: The result string share the string area.
>       So, following call of this function may destroy the area.

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);
}

----
Hideki IWAMOTO  address@hidden




reply via email to

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