Updates for using gedcom_lex_common.c
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 2 Dec 2001 09:23:41 +0000 (09:23 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 2 Dec 2001 09:23:41 +0000 (09:23 +0000)
gedcom_1byte.lex
gedcom_hilo.lex
gedcom_lohi.lex

index 4a4b3ecfd26758d86ae9da8d9eaf1814bfdc3b8c..a4a5659df39a24977b2a067da5bffea39a304a50 100644 (file)
@@ -13,6 +13,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
 %{
 #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
 %}
 
 %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
 
 
 <INITIAL>0{digit}+    ACTION_0_DIGITS
 
index 418802ba75457757a1d66c1384bc9cf6a34e995f..5c674a7a17287cbabb4537f9450797a8293fabe3 100644 (file)
@@ -16,6 +16,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
 %{
 #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
 %}
 
 %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
 
 
 <INITIAL>\x00[0]{digit}+ ACTION_0_DIGITS
 
index 41d97ad79cdc56e5c032b9e47a470da9cc0c94fe..badd835d4015f7a74c80e12a6c4b0e67a8557916 100644 (file)
@@ -16,6 +16,8 @@
 %{
 #undef IN_LEX    /* include only a specific part of the following file */
 #include "gedcom_lex_common.c"
 %{
 #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
 %}
 
 %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
 
 
 <INITIAL>\x00[0]{digit}+  ACTION_0_DIGITS