From: Peter Verthez <Peter.Verthez@advalvas.be>
Date: Sun, 2 Dec 2001 09:23:41 +0000 (+0000)
Subject: Updates for using gedcom_lex_common.c
X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=627021e461901f7bc4b668424e9230678362014e;p=gedcom-parse.git

Updates for using gedcom_lex_common.c
---

diff --git a/gedcom_1byte.lex b/gedcom_1byte.lex
index 4a4b3ec..a4a5659 100644
--- a/gedcom_1byte.lex
+++ b/gedcom_1byte.lex
@@ -13,6 +13,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
+
+static size_t encoding_width = 1;
 %}
 
 %s NORMAL
@@ -46,7 +48,7 @@ ACTION_BEFORE_REGEXPS
   
 %}
 
-<INITIAL>{gen_delim}* /* ignore leading whitespace (also tabs) */
+<INITIAL>{gen_delim}* ACTION_INITIAL_WHITESPACE
 
 <INITIAL>0{digit}+    ACTION_0_DIGITS
 
diff --git a/gedcom_hilo.lex b/gedcom_hilo.lex
index 418802b..5c674a7 100644
--- a/gedcom_hilo.lex
+++ b/gedcom_hilo.lex
@@ -16,6 +16,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
+  
+static size_t encoding_width = 2;
 %}
 
 %s NORMAL
@@ -49,7 +51,7 @@ ACTION_BEFORE_REGEXPS
   
 %}
 
-<INITIAL>{gen_delim}* /* ignore leading whitespace (also tabs) */
+<INITIAL>{gen_delim}*    ACTION_INITIAL_WHITESPACE
 
 <INITIAL>\x00[0]{digit}+ ACTION_0_DIGITS
 
diff --git a/gedcom_lohi.lex b/gedcom_lohi.lex
index 41d97ad..badd835 100644
--- a/gedcom_lohi.lex
+++ b/gedcom_lohi.lex
@@ -16,6 +16,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
+  
+static size_t encoding_width = 2;
 %}
 
 %s NORMAL
@@ -49,7 +51,7 @@ ACTION_BEFORE_REGEXPS
   
 %}
 
-<INITIAL>{gen_delim}* /* ignore leading whitespace (also tabs) */
+<INITIAL>{gen_delim}*     ACTION_INITIAL_WHITESPACE
 
 <INITIAL>\x00[0]{digit}+  ACTION_0_DIGITS