dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d6abf7a
)
Corrected maximum line check length to avoid multiple error messages on
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 2 Dec 2001 09:32:49 +0000
(09:32 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 2 Dec 2001 09:32:49 +0000
(09:32 +0000)
same line.
gedcom_lex_common.c
patch
|
blob
|
history
diff --git
a/gedcom_lex_common.c
b/gedcom_lex_common.c
index d547ea4fa8eb6683e920cd60cef8772dc8250784..58296331b732313651202cf5042a1234097c3889 100644
(file)
--- a/
gedcom_lex_common.c
+++ b/
gedcom_lex_common.c
@@
-76,13
+76,14
@@
int test_loop(ENCODING enc, char* code)
line_len = 0;
#define CHECK_LINE_LEN \
line_len = 0;
#define CHECK_LINE_LEN \
- { if (line_len != (size_t)-1)
\
+ { if (line_len != (size_t)-1)
{
\
line_len += strlen(yytext); \
line_len += strlen(yytext); \
- if (line_len > MAXGEDCLINELEN * encoding_width) { \
- gedcom_error("Line too long, max %d characters", \
- MAXGEDCLINELEN); \
- line_len = (size_t)-1; \
- return BADTOKEN; \
+ if (line_len > MAXGEDCLINELEN * encoding_width) { \
+ gedcom_error("Line too long, max %d characters", \
+ MAXGEDCLINELEN); \
+ line_len = (size_t)-1; \
+ return BADTOKEN; \
+ } \
} \
}
} \
}