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
Add init function for the lexer.
[gedcom-parse.git]
/
gedcom
/
gedcom_lohi.lex
diff --git
a/gedcom/gedcom_lohi.lex
b/gedcom/gedcom_lohi.lex
index d6092a6d67d158c3bb2e9a8c7baf27b53dc72826..a2f82a96cd361f8ba4d89330fe13180f2eb57b5c 100644
(file)
--- a/
gedcom/gedcom_lohi.lex
+++ b/
gedcom/gedcom_lohi.lex
@@
-219,8
+219,12
@@
ACTION_BEFORE_REGEXPS
%%
+static int exitfuncregistered = 0;
+
int yywrap()
{
+ if (! exitfuncregistered && atexit(yylex_cleanup) == 0)
+ atexit(yylex_cleanup);
return 1;
}