[asterisk-commits] russell: branch group/http_mods r60528 - /team/group/http_mods/main/minimime/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 6 12:15:45 MST 2007


Author: russell
Date: Fri Apr  6 14:15:45 2007
New Revision: 60528

URL: http://svn.digium.com/view/asterisk?view=rev&rev=60528
Log:
Increase the buffer size even more ...

Modified:
    team/group/http_mods/main/minimime/mimeparser.l
    team/group/http_mods/main/minimime/mimeparser.yy.c

Modified: team/group/http_mods/main/minimime/mimeparser.l
URL: http://svn.digium.com/view/asterisk/team/group/http_mods/main/minimime/mimeparser.l?view=diff&rev=60528&r1=60527&r2=60528
==============================================================================
--- team/group/http_mods/main/minimime/mimeparser.l (original)
+++ team/group/http_mods/main/minimime/mimeparser.l Fri Apr  6 14:15:45 2007
@@ -56,7 +56,7 @@
 
 #define PREALLOC_BUFFER	100000
 #undef YY_BUF_SIZE
-#define YY_BUF_SIZE 32768
+#define YY_BUF_SIZE 65536
 
 enum header_states
 {
@@ -456,6 +456,11 @@
 	/* looks like a bug in bison 2.2a -- the wrong code is generated for yyset_in !! */
 	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 	yyg->yyin_r = fp;
+	
+	if (0) {
+		/* This is just to make a compiler warning go away */
+		yyunput(0, NULL, yyscanner);
+	}
 }
 
 /**
@@ -476,4 +481,3 @@
 
 	return line;
 }
-

Modified: team/group/http_mods/main/minimime/mimeparser.yy.c
URL: http://svn.digium.com/view/asterisk/team/group/http_mods/main/minimime/mimeparser.yy.c?view=diff&rev=60528&r1=60527&r2=60528
==============================================================================
--- team/group/http_mods/main/minimime/mimeparser.yy.c (original)
+++ team/group/http_mods/main/minimime/mimeparser.yy.c Fri Apr  6 14:15:45 2007
@@ -630,7 +630,7 @@
 
 #define PREALLOC_BUFFER	100000
 #undef YY_BUF_SIZE
-#define YY_BUF_SIZE 32768
+#define YY_BUF_SIZE 65536
 
 enum header_states
 {
@@ -773,7 +773,7 @@
 #endif
 #endif
 
-/* static void yyunput (int c,char *buf_ptr  ,yyscan_t yyscanner); */
+    static void yyunput (int c,char *buf_ptr  ,yyscan_t yyscanner);
     
 #ifndef yytext_ptr
 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
@@ -1734,7 +1734,6 @@
 	return yy_is_jam ? 0 : yy_current_state;
 }
 
-#if 0
     static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
 {
 	register char *yy_cp;
@@ -1776,7 +1775,7 @@
 	yyg->yy_hold_char = *yy_cp;
 	yyg->yy_c_buf_p = yy_cp;
 }
-#endif
+
 #ifndef YY_NO_INPUT
 #ifdef __cplusplus
     static int yyinput (yyscan_t yyscanner)
@@ -2595,6 +2594,11 @@
 	/* looks like a bug in bison 2.2a -- the wrong code is generated for mimeparser_yyset_in !! */
 	struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
 	yyg->yyin_r = fp;
+	
+	if (0) {
+		/* This is just to make a compiler warning go away */
+		yyunput(0, NULL, yyscanner);
+	}
 }
 
 /**
@@ -2616,4 +2620,3 @@
 	return line;
 }
 
-



More information about the asterisk-commits mailing list