Suppress a few warnings; other details
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 5 Mar 2008 20:25:16 +0000 (15:25 -0500)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 5 Mar 2008 23:58:45 +0000 (18:58 -0500)
README
src/ChangeLog
src/merged.c
src/mergelex.py
src/recode.1
src/recodext.h

diff --git a/README b/README
index 46214c4f6448517e0f31a1e33d78d98f4a55601c..815aa6b172c7aa389dbd4d2c9c3773c4b76c7092 100644 (file)
--- a/README
+++ b/README
@@ -127,7 +127,7 @@ So this is in no way a candidate for a Recode 3.7 release.
 The test suite is worth more comments:
 
 + The suite is very partial, and may not be thought as a validation
-  suite.  Before it could be used to ascertain confidence, it would need,
+  suite.  Before it could be used to ascertain confidence, it would need
   much more tests than it has already.
 
 + Testing is notably more speedy than it used to be.  For example, the
index 675186d345101d52c03b7b71aa7a33ddc3025391..40cf1caf233753552518c86edd629dc27bc5ffd8 100644 (file)
@@ -4,6 +4,10 @@
        various hasher functions according to the prototype in hash.h.
        Reported by Bruno Haible.
 
+       * mergelex.py: Suppress yyunput.
+       * recodext.h (get_byte_helper): Declare also when !INLINE_HARDER.
+       Reported by Bruno Haible.
+
 2008-02-27  François Pinard  <pinard@iro.umontreal.ca>
 
        * hash.c: Revert last change (2008-02-21).  The renaming of symbols
index 8555757702d299c2948089e79ad66c0ef671b2c8..3886ee36c2458095f0a5c32ba32dc69b9508728c 100644 (file)
@@ -912,8 +912,6 @@ extern int librecode_yywrap (void );
 #endif
 #endif
 
-    static void yyunput (int c,char *buf_ptr  );
-    
 #ifndef yytext_ptr
 static void yy_flex_strncpy (char *,yyconst char *,int );
 #endif
@@ -2379,43 +2377,6 @@ static int yy_get_next_buffer (void)
        return yy_is_jam ? 0 : yy_current_state;
 }
 
-    static void yyunput (int c, register char * yy_bp )
-{
-       register char *yy_cp;
-    
-    yy_cp = (yy_c_buf_p);
-
-       /* undo effects of setting up librecode_yytext */
-       *yy_cp = (yy_hold_char);
-
-       if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
-               { /* need to shift things up to make room */
-               /* +2 for EOB chars. */
-               register int number_to_move = (yy_n_chars) + 2;
-               register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
-                                       YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
-               register char *source =
-                               &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
-
-               while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
-                       *--dest = *--source;
-
-               yy_cp += (int) (dest - source);
-               yy_bp += (int) (dest - source);
-               YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
-                       (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
-
-               if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
-                       YY_FATAL_ERROR( "flex scanner push-back overflow" );
-               }
-
-       *--yy_cp = (char) c;
-
-       (yytext_ptr) = yy_bp;
-       (yy_hold_char) = *yy_cp;
-       (yy_c_buf_p) = yy_cp;
-}
-
 #ifndef YY_NO_INPUT
 #ifdef __cplusplus
     static int yyinput (void)
index b35ef9558009eed725c2d5e84b2b2c65a228ce7c..b2725798a269115556184255f4f77dbc3d17b535 100644 (file)
@@ -29,6 +29,7 @@ section0 = [
 # Flex and C declarations.
 section1 = '''\
 
+%option nounput
 %option noyywrap
 %{
 #include "common.h"
index bbcebbffcb7ad37f1439d2f29c5616d200e7731e..d4bb15acafc183bc800be600793af453d42f2580 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
-.TH RECODE "1" "February 2008" "recode 3.7-beta1" "User Commands"
+.TH RECODE "1" "March 2008" "recode 3.7-beta1" "User Commands"
 .SH NAME
 recode \- converts files between character sets
 .SH SYNOPSIS
index e24afc6f4b8e409f6044cc9b4778cef7129cb10a..1a0a776218e2e19caa18fbe491fd35fe5aeba63e 100644 (file)
@@ -671,7 +671,7 @@ const char *ucs2_to_rfc1345 PARAMS ((recode_ucs2));
 
 /* task.c.  */
 
-#if USE_HELPERS
+#if USE_HELPERS || !INLINE_HARDER
 int get_byte_helper PARAMS ((RECODE_SUBTASK));
 #endif
 void put_byte_helper PARAMS ((int, RECODE_SUBTASK));