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
Added functions for retrieving, adding, modifying and deleting cross-references.
[gedcom-parse.git]
/
gedcom
/
gedcom_1byte.lex
diff --git
a/gedcom/gedcom_1byte.lex
b/gedcom/gedcom_1byte.lex
index 6431dcfdcbdae061043c5947331fd376c1b7d9f1..938a97c476ed63b396be602ae07d56a03ec298e0 100644
(file)
--- a/
gedcom/gedcom_1byte.lex
+++ b/
gedcom/gedcom_1byte.lex
@@
-22,7
+22,8
@@
/* $Name$ */
%{
/* $Name$ */
%{
-#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_1byte_myinit
#include "gedcom_lex_common.c"
static size_t encoding_width = 1;
#include "gedcom_lex_common.c"
static size_t encoding_width = 1;
@@
-53,7
+54,8
@@
pointer @{alphanum}{non_at}+@
%%
%{
%%
%{
-#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
@@
-215,11
+217,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()