OSSP CVS Repository

ossp - Check-in [4858]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4858
Date: 2004-Nov-20 12:42:21 (local)
2004-Nov-20 11:42:21 (UTC)
User:rse
Branch:
Comment: Do not let Flex generate the unused yyunput() and yy_top_state() functions in order to shut up compilation warnings.
Tickets:
Inspections:
Files:
ossp-pkg/cfg/ChangeLog      1.15 -> 1.16     4 inserted, 0 deleted
ossp-pkg/cfg/cfg_syn_scan.l      1.18 -> 1.19     2 inserted, 1 deleted

ossp-pkg/cfg/ChangeLog 1.15 -> 1.16

--- ChangeLog    2004/11/20 11:34:52     1.15
+++ ChangeLog    2004/11/20 11:42:21     1.16
@@ -10,6 +10,10 @@
 
  Changes between 0.9.3 and 0.9.4 (23-Apr-2003 to xx-Nov-2004):
 
+   *) Do not let Flex generate the unused yyunput() and yy_top_state()
+      functions in order to shut up compilation warnings.
+      [Ralf S. Engelschall <rse@engelschall.com>]
+
    *) Return an empty string instead of NULL from internal
       cfg_buf_content() function to not make visible to the caller the
       implementation special case of an initial buffer.


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

--- cfg_syn_scan.l       2004/07/17 07:37:55     1.18
+++ cfg_syn_scan.l       2004/11/20 11:42:21     1.19
@@ -44,7 +44,6 @@
 #define CTX ((cfg_syn_ctx_t *)yyget_extra(yyscanner))
 
 /* provide own input handling */
-#define YY_NO_UNPUT 1
 #undef  YY_INPUT
 #define YY_INPUT(buf,result,max_size) (result = yyinput(CTX, buf, max_size))
 static int yyinput(cfg_syn_ctx_t *ctx, char *buf, int max_size);
@@ -72,6 +71,8 @@
 %option bison-locations
 %option never-interactive
 %option noyywrap
+%option nounput
+%option noyy_top_state
 
 /* scanner states */
 %x SS_DQ

CVSTrac 2.0.1