summaryrefslogtreecommitdiff
path: root/src/skel.c
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2016-02-24 17:42:39 -0800
committerManoj Srivastava <srivasta@debian.org>2016-02-24 17:44:01 -0800
commite68e1da425634fda40095a7b3196d4175f782987 (patch)
tree7a826be3f2868150dc169d2736c5dc6e04f0fa55 /src/skel.c
parent68edd32d194909d5abe648ef7c8c82002b6ce5fb (diff)
[master]: Cleanup generated files based on changes to flex.skl.debian/2.6.0-11
The variable yy_n_chars had been of type yy_size_t which is incorrect given its use in read(). While it might be adviseable to look at defining a yy_ssize_t, there might be some issues doing this and so, for now, at least, we'll punt back to int. Bug fix: "Type of yy_n_chars changed to yy_size_t by authors cause bug in YY_INPUT macro where result argument is tested if &lt; 0; thanks to gcc&#39;s -Werror=type-limits", thanks to Michal Fita (Closes: #770161). Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Diffstat (limited to 'src/skel.c')
-rw-r--r--src/skel.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/skel.c b/src/skel.c
index 26cc889..bf4c289 100644
--- a/src/skel.c
+++ b/src/skel.c
@@ -638,7 +638,7 @@ const char *skel[] = {
" /* Number of characters read into yy_ch_buf, not including EOB",
" * characters.",
" */",
- " yy_size_t yy_n_chars;",
+ " int yy_n_chars;",
"",
" /* Whether we \"own\" the buffer - i.e., we know we created it,",
" * and can realloc() it to grow it, and should free() it to",
@@ -727,7 +727,7 @@ const char *skel[] = {
"%not-for-header",
"/* yy_hold_char holds the character lost when yytext is formed. */",
"static char yy_hold_char;",
- "static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */",
+ "static int yy_n_chars; /* number of characters read into yy_ch_buf */",
"yy_size_t yyleng;",
"",
"/* Points to current character in buffer. */",
@@ -898,7 +898,7 @@ const char *skel[] = {
" size_t yy_buffer_stack_max; /**< capacity of stack. */",
" YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */",
" char yy_hold_char;",
- " yy_size_t yy_n_chars;",
+ " int yy_n_chars;",
" yy_size_t yyleng_r;",
" char *yy_c_buf_p;",
" int yy_init;",
@@ -2004,9 +2004,9 @@ const char *skel[] = {
" else",
" ret_val = EOB_ACT_CONTINUE_SCAN;",
"",
- " if ((yy_size_t) (YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
+ " if ((int) (YY_G(yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {",
" /* Extend the array by 50%, plus the number we really need. */",
- " yy_size_t new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1);",
+ " int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1);",
" YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(",
" (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size M4_YY_CALL_LAST_ARG );",
" if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )",