X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fgedcom_lohi.lex;h=21f84eb95129ca29aa7ab670d7218bacac85785e;hb=681b182b6f003e91a47a098b7e8ac632315f61a6;hp=d6092a6d67d158c3bb2e9a8c7baf27b53dc72826;hpb=0a9103e26559e1501b6cf7dd7f8eb00ba50de1cb;p=gedcom-parse.git diff --git a/gedcom/gedcom_lohi.lex b/gedcom/gedcom_lohi.lex index d6092a6..21f84eb 100644 --- a/gedcom/gedcom_lohi.lex +++ b/gedcom/gedcom_lohi.lex @@ -25,7 +25,8 @@ /* i.e. this is utf-16-le */ %{ -#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_lohi_myinit #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 -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 @@ -215,14 +217,14 @@ ACTION_BEFORE_REGEXPS {normal_at} ACTION_NORMAL_AT +{tab} ACTION_TAB + . 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()