mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 07:04:44 +00:00
cleanup
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@887 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
8dab1292b8
commit
fddaa53b2f
2 changed files with 14 additions and 14 deletions
|
|
@ -7124,14 +7124,14 @@ static yyconst flex_int32_t yy_rule_linenum[87] =
|
|||
|
||||
/* reset buffer a to empty string */
|
||||
#define CLEAR_BUF(a) \
|
||||
a = PyMem_Resize(a, char, 1); \
|
||||
if (a==NULL) return T_ERROR; \
|
||||
a[0] = '\0'
|
||||
(a) = PyMem_Resize(a, char, 1); \
|
||||
if ((a)==NULL) return T_ERROR; \
|
||||
(a)[0] = '\0'
|
||||
|
||||
/* make python string from tmp_buf and assign it to a */
|
||||
#define PYSTRING_TMP(a) \
|
||||
a = PyString_FromString(yyextra->tmp_buf); \
|
||||
if (a==NULL) return T_ERROR
|
||||
(a) = PyString_FromString(yyextra->tmp_buf); \
|
||||
if ((a)==NULL) return T_ERROR
|
||||
|
||||
/* set return value from tmp_buf */
|
||||
#define SETLVAL {\
|
||||
|
|
@ -7144,8 +7144,8 @@ static yyconst flex_int32_t yy_rule_linenum[87] =
|
|||
/* append yytext to tmp_buf */
|
||||
#define APPEND_TO_TMP(n) {\
|
||||
int len = strlen(yyextra->tmp_buf); \
|
||||
yyextra->tmp_buf = PyMem_Resize(yyextra->tmp_buf, char, len+n+1); \
|
||||
strncat(yyextra->tmp_buf, yytext, n); \
|
||||
yyextra->tmp_buf = PyMem_Resize(yyextra->tmp_buf, char, len+(n)+1); \
|
||||
strncat(yyextra->tmp_buf, yytext, (n)); \
|
||||
}
|
||||
|
||||
/* lowercase the tmp_buf */
|
||||
|
|
|
|||
|
|
@ -12,14 +12,14 @@
|
|||
|
||||
/* reset buffer a to empty string */
|
||||
#define CLEAR_BUF(a) \
|
||||
a = PyMem_Resize(a, char, 1); \
|
||||
if (a==NULL) return T_ERROR; \
|
||||
a[0] = '\0'
|
||||
(a) = PyMem_Resize(a, char, 1); \
|
||||
if ((a)==NULL) return T_ERROR; \
|
||||
(a)[0] = '\0'
|
||||
|
||||
/* make python string from tmp_buf and assign it to a */
|
||||
#define PYSTRING_TMP(a) \
|
||||
a = PyString_FromString(yyextra->tmp_buf); \
|
||||
if (a==NULL) return T_ERROR
|
||||
(a) = PyString_FromString(yyextra->tmp_buf); \
|
||||
if ((a)==NULL) return T_ERROR
|
||||
|
||||
/* set return value from tmp_buf */
|
||||
#define SETLVAL {\
|
||||
|
|
@ -32,8 +32,8 @@
|
|||
/* append yytext to tmp_buf */
|
||||
#define APPEND_TO_TMP(n) {\
|
||||
int len = strlen(yyextra->tmp_buf); \
|
||||
yyextra->tmp_buf = PyMem_Resize(yyextra->tmp_buf, char, len+n+1); \
|
||||
strncat(yyextra->tmp_buf, yytext, n); \
|
||||
yyextra->tmp_buf = PyMem_Resize(yyextra->tmp_buf, char, len+(n)+1); \
|
||||
strncat(yyextra->tmp_buf, yytext, (n)); \
|
||||
}
|
||||
|
||||
/* lowercase the tmp_buf */
|
||||
|
|
|
|||
Loading…
Reference in a new issue