dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extracted safe buffer mechanism to buffer.c for reuse.
[gedcom-parse.git]
/
gedcom
/
gedcom_hilo.lex
diff --git
a/gedcom/gedcom_hilo.lex
b/gedcom/gedcom_hilo.lex
index c7a715133d8f596fa43f1f56d3c91b8a4d634a86..91735f1e1c7eb6600463cee60d4f727b9cf0db6d 100644
(file)
--- a/
gedcom/gedcom_hilo.lex
+++ b/
gedcom/gedcom_hilo.lex
@@
-25,7
+25,8
@@
/* i.e. this is utf-16-be */
%{
/* i.e. this is utf-16-be */
%{
-#undef IN_LEX /* include only a specific part of the following file */
+#define LEX_SECTION 1 /* include only a specific part of the following file */
+#define yymyinit gedcom_hilo_myinit
#include "gedcom_lex_common.c"
static size_t encoding_width = 2;
#include "gedcom_lex_common.c"
static size_t encoding_width = 2;
@@
-51,12
+52,13
@@
alphanum {alpha}|{digit}
gen_delim {delim}|{tab}
escape \x00@\x00#{any_char}+\x00@
gen_delim {delim}|{tab}
escape \x00@\x00#{any_char}+\x00@
-pointer \x00@{alphanum}{non_at}
+
\x00@
+pointer \x00@{alphanum}{non_at}
*
\x00@
%%
%{
%%
%{
-#define IN_LEX /* include only a specific part of the following file */
+#undef LEX_SECTION
+#define LEX_SECTION 2 /* include only a specific part of the following file */
#include "gedcom_lex_common.c"
ACTION_BEFORE_REGEXPS
#include "gedcom_lex_common.c"
ACTION_BEFORE_REGEXPS
@@
-218,11
+220,9
@@
ACTION_BEFORE_REGEXPS
. ACTION_UNEXPECTED
%%
. ACTION_UNEXPECTED
%%
-
-int yywrap()
-{
- return 1;
-}
+#undef LEX_SECTION
+#define LEX_SECTION 3 /* include only a specific part of the following file */
+#include "gedcom_lex_common.c"
#ifdef LEXER_TEST
int gedcom_lex()
#ifdef LEXER_TEST
int gedcom_lex()