X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_hilo.lex;h=a63b4088d1b5d7c8b34ebc8fab26ad12e2c558ca;hb=7b70ac5f2251178c3b00c806b4528b4b8dfa615b;hp=c7a715133d8f596fa43f1f56d3c91b8a4d634a86;hpb=0a9103e26559e1501b6cf7dd7f8eb00ba50de1cb;p=gedcom-parse.git diff --git a/gedcom/gedcom_hilo.lex b/gedcom/gedcom_hilo.lex index c7a7151..a63b408 100644 --- a/gedcom/gedcom_hilo.lex +++ b/gedcom/gedcom_hilo.lex @@ -25,7 +25,8 @@ /* 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; @@ -56,7 +57,8 @@ 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 @@ -218,11 +220,9 @@ ACTION_BEFORE_REGEXPS . 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()