OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_syn_scan.l versions 1.19 and 1.20
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_syn_scan.l 1.19 -> 1.20

--- cfg_syn_scan.l       2004/11/20 11:42:21     1.19
+++ cfg_syn_scan.l       2004/11/20 12:54:07     1.20
@@ -56,11 +56,12 @@
     yylloc->first = yylloc->last; \
     yylloc->last += yyleng;
 #define YY_USER_ACTION_ROLLBACK \
-    yylloc->last = yylloc->first
+    yylloc->last  = yylloc->first
 
 static char closing_brace(char open);
 static int hex_nibble(const char hex);
 static int hex_sequence(char *out_ptr, size_t out_len, const char *in_ptr, size_t in_len);
+
 %}
 
 /* scanner options */
@@ -294,6 +295,17 @@
     BEGIN(INITIAL);
     return T_STRING;
 }
+<SS_PT><<EOF>> {
+    *cpStr = '\0';
+    yylval->cpString = strdup(caStr);
+    BEGIN(INITIAL);
+    return T_STRING;
+}
+
+<INITIAL><<EOF>> {
+    /* end of scanning */
+    yyterminate();
+}
 
 %%
 

CVSTrac 2.0.1