[Top][All Lists]
[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 00:21:47 +0900 |
> With this function, you can write blank processing like follows:
Sorry, I made many mistake.
Please replace the previous example with this:
[gctags/asm_scan.l]
^[ \t]*\#[ \t]*{WORD} {
if (reserved_sharp(yytext, yyleng)) {
...
}
[gctags/asm_res.h]
#include "strmake.h"
...
static int
reserved_sharp(str, len)
const char *str;
int len;
{
char *p = strtrim(str, TRIM_ALL, &len); <= Blank processing
struct keyword *keyword = c_lookup(p, len);
int n = keyword ? keyword->token : 0;
return IS_RESERVED_WORD(n) ? n : 0;
}
[htags/c.l]
if (wflag)
unknown_preprocessing_directive(LEXTEXT, LINENO);
[htags/src2html.c]
void
unknown_preprocessing_directive(word, lineno)
char *word;
int lineno;
{
word = strtrim(word, TRIM_ALL, NULL); <= Blank processing
warning("unknown preprocessing directive '%s'. [+%d %s]", word
if (colorize_warned_line)
warned = 1;
}
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
- question about reserved word file, Hideki IWAMOTO, 2004/10/09
- Re: question about reserved word file, Shigio Yamaguchi, 2004/10/09
- Re: question about reserved word file, Hideki IWAMOTO, 2004/10/09
- Re: question about reserved word file, Shigio Yamaguchi, 2004/10/10
- Re: question about reserved word file, Hideki IWAMOTO, 2004/10/11
- Re: question about reserved word file, Shigio Yamaguchi, 2004/10/11
- Re: question about reserved word file, Hideki IWAMOTO, 2004/10/11
- Re: question about reserved word file, Hideki IWAMOTO, 2004/10/12
- Re: question about reserved word file, Shigio Yamaguchi, 2004/10/12
- Re: question about reserved word file,
Shigio Yamaguchi <=
- Re: question about reserved word file, Hideki IWAMOTO, 2004/10/12
- Re: question about reserved word file, Shigio Yamaguchi, 2004/10/12