]> err.no Git - linux-2.6/blobdiff - scripts/kconfig/lex.zconf.c_shipped
scripts/mod/modpost.c: fix spelling of module and happens
[linux-2.6] / scripts / kconfig / lex.zconf.c_shipped
index 0fdc9049296f5985d9abaf46aeda7e607ef5a80f..6a61cee4a32c39ca6931b191e93b6a6313689331 100644 (file)
@@ -33,7 +33,7 @@
 #if __STDC_VERSION__ >= 199901L
 
 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
- * if you want the limit (max/min) macros for int types.
+ * if you want the limit (max/min) macros for int types. 
  */
 #ifndef __STDC_LIMIT_MACROS
 #define __STDC_LIMIT_MACROS 1
@@ -1256,6 +1256,11 @@ YY_RULE_SETUP
 case 32:
 YY_RULE_SETUP
 {
+               while (zconfleng) {
+                       if ((zconftext[zconfleng-1] != ' ') && (zconftext[zconfleng-1] != '\t'))
+                               break;
+                       zconfleng--;
+               }
                append_string(zconftext, zconfleng);
                if (!first_ts)
                        first_ts = last_ts;
@@ -1511,7 +1516,7 @@ static int yy_get_next_buffer (void)
 
                /* Read in more data. */
                YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
-                       (yy_n_chars), num_to_read );
+                       (yy_n_chars), (size_t) num_to_read );
 
                YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
                }