imagemap: Rebuild scanners

This commit is contained in:
Mukund Sivaraman 2011-04-27 21:12:40 +05:30
parent 56f08d682b
commit 7f635464b0
3 changed files with 77 additions and 191 deletions

View File

@ -610,8 +610,9 @@ char *cern_text;
#define YY_NO_UNPUT
#endif /* FLEX_SCANNER */
#define YY_NO_INPUT 1
#line 615 "<stdout>"
#line 616 "<stdout>"
#define INITIAL 0
#define comment 1
@ -671,8 +672,6 @@ extern int cern_wrap (void );
#endif
#endif
static void yyunput (int c,char *buf_ptr );
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@ -794,10 +793,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
#line 44 "imap_cern.l"
#line 46 "imap_cern.l"
#line 801 "<stdout>"
#line 800 "<stdout>"
if ( !(yy_init) )
{
@ -883,7 +882,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
/* rule 1 can match eol */
YY_RULE_SETUP
#line 46 "imap_cern.l"
#line 48 "imap_cern.l"
{
BEGIN(comment);
return AUTHOR;
@ -892,7 +891,7 @@ YY_RULE_SETUP
case 2:
/* rule 2 can match eol */
YY_RULE_SETUP
#line 51 "imap_cern.l"
#line 53 "imap_cern.l"
{
BEGIN(comment);
return DESCRIPTION;
@ -901,7 +900,7 @@ YY_RULE_SETUP
case 3:
/* rule 3 can match eol */
YY_RULE_SETUP
#line 56 "imap_cern.l"
#line 58 "imap_cern.l"
{
BEGIN(comment);
return BEGIN_COMMENT;
@ -912,7 +911,7 @@ case 4:
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up cern_text again */
YY_RULE_SETUP
#line 61 "imap_cern.l"
#line 63 "imap_cern.l"
{
BEGIN(INITIAL);
cern_lval.id = g_strndup (cern_text, cern_leng);
@ -921,22 +920,22 @@ YY_RULE_SETUP
YY_BREAK
case 5:
YY_RULE_SETUP
#line 67 "imap_cern.l"
#line 69 "imap_cern.l"
return RECTANGLE;
YY_BREAK
case 6:
YY_RULE_SETUP
#line 69 "imap_cern.l"
#line 71 "imap_cern.l"
return CIRCLE;
YY_BREAK
case 7:
YY_RULE_SETUP
#line 71 "imap_cern.l"
#line 73 "imap_cern.l"
return POLYGON;
YY_BREAK
case 8:
YY_RULE_SETUP
#line 73 "imap_cern.l"
#line 75 "imap_cern.l"
return DEFAULT;
YY_BREAK
case 9:
@ -944,7 +943,7 @@ case 9:
(yy_c_buf_p) = yy_cp -= 1;
YY_DO_BEFORE_ACTION; /* set up cern_text again */
YY_RULE_SETUP
#line 75 "imap_cern.l"
#line 77 "imap_cern.l"
{
cern_lval.id = g_strndup (cern_text, cern_leng);
return LINK;
@ -952,7 +951,7 @@ YY_RULE_SETUP
YY_BREAK
case 10:
YY_RULE_SETUP
#line 80 "imap_cern.l"
#line 82 "imap_cern.l"
{
cern_lval.value = g_ascii_strtod (cern_text, NULL);
return FLOAT;
@ -961,20 +960,20 @@ YY_RULE_SETUP
case 11:
/* rule 11 can match eol */
YY_RULE_SETUP
#line 85 "imap_cern.l"
#line 87 "imap_cern.l"
; /* Eat white space */
YY_BREAK
case 12:
YY_RULE_SETUP
#line 87 "imap_cern.l"
#line 89 "imap_cern.l"
return *cern_text;
YY_BREAK
case 13:
YY_RULE_SETUP
#line 89 "imap_cern.l"
#line 91 "imap_cern.l"
ECHO;
YY_BREAK
#line 978 "<stdout>"
#line 977 "<stdout>"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(comment):
yyterminate();
@ -1304,43 +1303,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 cern_text */
*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)
@ -1973,7 +1935,7 @@ void cern_free (void * ptr )
#define YYTABLES_NAME "yytables"
#line 89 "imap_cern.l"
#line 91 "imap_cern.l"

View File

@ -633,9 +633,10 @@ char *csim_text;
#define YY_NO_UNPUT
#endif /* FLEX_SCANNER */
#define YY_NO_INPUT 1
#line 639 "<stdout>"
#line 640 "<stdout>"
#define INITIAL 0
#define quoted_string 1
@ -696,8 +697,6 @@ extern int csim_wrap (void );
#endif
#endif
static void yyunput (int c,char *buf_ptr );
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@ -819,10 +818,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
#line 45 "imap_csim.l"
#line 47 "imap_csim.l"
#line 826 "<stdout>"
#line 825 "<stdout>"
if ( !(yy_init) )
{
@ -907,7 +906,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
#line 47 "imap_csim.l"
#line 49 "imap_csim.l"
{
BEGIN(comment);
return AUTHOR;
@ -915,7 +914,7 @@ YY_RULE_SETUP
YY_BREAK
case 2:
YY_RULE_SETUP
#line 52 "imap_csim.l"
#line 54 "imap_csim.l"
{
BEGIN(comment);
return DESCRIPTION;
@ -923,7 +922,7 @@ YY_RULE_SETUP
YY_BREAK
case 3:
YY_RULE_SETUP
#line 57 "imap_csim.l"
#line 59 "imap_csim.l"
{
BEGIN(comment);
return BEGIN_COMMENT;
@ -931,7 +930,7 @@ YY_RULE_SETUP
YY_BREAK
case 4:
YY_RULE_SETUP
#line 62 "imap_csim.l"
#line 64 "imap_csim.l"
{
BEGIN(INITIAL);
return END_COMMENT;
@ -942,7 +941,7 @@ case 5:
(yy_c_buf_p) = yy_cp -= 3;
YY_DO_BEFORE_ACTION; /* set up csim_text again */
YY_RULE_SETUP
#line 67 "imap_csim.l"
#line 69 "imap_csim.l"
{
csim_lval.id = g_strndup (csim_text, csim_leng);
return STRING;
@ -950,114 +949,114 @@ YY_RULE_SETUP
YY_BREAK
case 6:
YY_RULE_SETUP
#line 72 "imap_csim.l"
#line 74 "imap_csim.l"
return IMG;
YY_BREAK
case 7:
YY_RULE_SETUP
#line 74 "imap_csim.l"
#line 76 "imap_csim.l"
return SRC;
YY_BREAK
case 8:
YY_RULE_SETUP
#line 76 "imap_csim.l"
#line 78 "imap_csim.l"
return WIDTH;
YY_BREAK
case 9:
YY_RULE_SETUP
#line 78 "imap_csim.l"
#line 80 "imap_csim.l"
return HEIGHT;
YY_BREAK
case 10:
YY_RULE_SETUP
#line 80 "imap_csim.l"
#line 82 "imap_csim.l"
return BORDER;
YY_BREAK
case 11:
YY_RULE_SETUP
#line 82 "imap_csim.l"
#line 84 "imap_csim.l"
return USEMAP;
YY_BREAK
case 12:
YY_RULE_SETUP
#line 84 "imap_csim.l"
#line 86 "imap_csim.l"
return START_MAP;
YY_BREAK
case 13:
YY_RULE_SETUP
#line 86 "imap_csim.l"
#line 88 "imap_csim.l"
return END_MAP;
YY_BREAK
case 14:
YY_RULE_SETUP
#line 88 "imap_csim.l"
#line 90 "imap_csim.l"
return NAME;
YY_BREAK
case 15:
YY_RULE_SETUP
#line 90 "imap_csim.l"
#line 92 "imap_csim.l"
return AREA;
YY_BREAK
case 16:
YY_RULE_SETUP
#line 92 "imap_csim.l"
#line 94 "imap_csim.l"
return SHAPE;
YY_BREAK
case 17:
YY_RULE_SETUP
#line 94 "imap_csim.l"
#line 96 "imap_csim.l"
return COORDS;
YY_BREAK
case 18:
YY_RULE_SETUP
#line 96 "imap_csim.l"
#line 98 "imap_csim.l"
return TARGET;
YY_BREAK
case 19:
YY_RULE_SETUP
#line 98 "imap_csim.l"
#line 100 "imap_csim.l"
return ONMOUSEOVER;
YY_BREAK
case 20:
YY_RULE_SETUP
#line 100 "imap_csim.l"
#line 102 "imap_csim.l"
return ONMOUSEOUT;
YY_BREAK
case 21:
YY_RULE_SETUP
#line 102 "imap_csim.l"
#line 104 "imap_csim.l"
return ONFOCUS;
YY_BREAK
case 22:
YY_RULE_SETUP
#line 104 "imap_csim.l"
#line 106 "imap_csim.l"
return ONBLUR;
YY_BREAK
case 23:
YY_RULE_SETUP
#line 106 "imap_csim.l"
#line 108 "imap_csim.l"
return ALT;
YY_BREAK
case 24:
YY_RULE_SETUP
#line 108 "imap_csim.l"
#line 110 "imap_csim.l"
return HREF;
YY_BREAK
case 25:
YY_RULE_SETUP
#line 110 "imap_csim.l"
#line 112 "imap_csim.l"
return NOHREF;
YY_BREAK
case 26:
YY_RULE_SETUP
#line 112 "imap_csim.l"
#line 114 "imap_csim.l"
{
BEGIN(quoted_string);
}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 116 "imap_csim.l"
#line 118 "imap_csim.l"
{
BEGIN(INITIAL);
return STRING;
@ -1066,14 +1065,14 @@ YY_RULE_SETUP
case 28:
/* rule 28 can match eol */
YY_RULE_SETUP
#line 121 "imap_csim.l"
#line 123 "imap_csim.l"
{
csim_lval.id = g_strndup (csim_text, csim_leng);
}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 125 "imap_csim.l"
#line 127 "imap_csim.l"
{
csim_lval.value = g_ascii_strtod (csim_text, NULL);
return FLOAT;
@ -1082,20 +1081,20 @@ YY_RULE_SETUP
case 30:
/* rule 30 can match eol */
YY_RULE_SETUP
#line 130 "imap_csim.l"
#line 132 "imap_csim.l"
; /* Eat white space */
YY_BREAK
case 31:
YY_RULE_SETUP
#line 132 "imap_csim.l"
#line 134 "imap_csim.l"
return *csim_text;
YY_BREAK
case 32:
YY_RULE_SETUP
#line 134 "imap_csim.l"
#line 136 "imap_csim.l"
ECHO;
YY_BREAK
#line 1099 "<stdout>"
#line 1098 "<stdout>"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(quoted_string):
case YY_STATE_EOF(comment):
@ -1426,43 +1425,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 csim_text */
*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)
@ -2095,7 +2057,7 @@ void csim_free (void * ptr )
#define YYTABLES_NAME "yytables"
#line 134 "imap_csim.l"
#line 136 "imap_csim.l"

View File

@ -573,9 +573,10 @@ char *ncsa_text;
#define YY_NO_UNPUT
#endif /* FLEX_SCANNER */
#define YY_NO_INPUT 1
#line 579 "<stdout>"
#line 580 "<stdout>"
#define INITIAL 0
#define imap_link 1
@ -636,8 +637,6 @@ extern int ncsa_wrap (void );
#endif
#endif
static void yyunput (int c,char *buf_ptr );
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@ -759,10 +758,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
#line 45 "imap_ncsa.l"
#line 47 "imap_ncsa.l"
#line 766 "<stdout>"
#line 765 "<stdout>"
if ( !(yy_init) )
{
@ -847,7 +846,7 @@ do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
#line 47 "imap_ncsa.l"
#line 49 "imap_ncsa.l"
{
BEGIN(comment);
return AUTHOR;
@ -855,7 +854,7 @@ YY_RULE_SETUP
YY_BREAK
case 2:
YY_RULE_SETUP
#line 52 "imap_ncsa.l"
#line 54 "imap_ncsa.l"
{
BEGIN(comment);
return TITLE;
@ -863,7 +862,7 @@ YY_RULE_SETUP
YY_BREAK
case 3:
YY_RULE_SETUP
#line 57 "imap_ncsa.l"
#line 59 "imap_ncsa.l"
{
BEGIN(comment);
return DESCRIPTION;
@ -871,7 +870,7 @@ YY_RULE_SETUP
YY_BREAK
case 4:
YY_RULE_SETUP
#line 62 "imap_ncsa.l"
#line 64 "imap_ncsa.l"
{
BEGIN(comment);
return BEGIN_COMMENT;
@ -879,7 +878,7 @@ YY_RULE_SETUP
YY_BREAK
case 5:
YY_RULE_SETUP
#line 67 "imap_ncsa.l"
#line 69 "imap_ncsa.l"
{
BEGIN(INITIAL);
ncsa_lval.id = g_strndup (ncsa_text, ncsa_leng);
@ -888,7 +887,7 @@ YY_RULE_SETUP
YY_BREAK
case 6:
YY_RULE_SETUP
#line 73 "imap_ncsa.l"
#line 75 "imap_ncsa.l"
{
BEGIN(imap_link);
return RECTANGLE;
@ -896,7 +895,7 @@ YY_RULE_SETUP
YY_BREAK
case 7:
YY_RULE_SETUP
#line 78 "imap_ncsa.l"
#line 80 "imap_ncsa.l"
{
BEGIN(imap_link);
return CIRCLE;
@ -904,7 +903,7 @@ YY_RULE_SETUP
YY_BREAK
case 8:
YY_RULE_SETUP
#line 83 "imap_ncsa.l"
#line 85 "imap_ncsa.l"
{
BEGIN(imap_link);
return POLYGON;
@ -912,7 +911,7 @@ YY_RULE_SETUP
YY_BREAK
case 9:
YY_RULE_SETUP
#line 88 "imap_ncsa.l"
#line 90 "imap_ncsa.l"
{
BEGIN(imap_link);
return DEFAULT;
@ -920,7 +919,7 @@ YY_RULE_SETUP
YY_BREAK
case 10:
YY_RULE_SETUP
#line 93 "imap_ncsa.l"
#line 95 "imap_ncsa.l"
{
BEGIN(INITIAL);
ncsa_lval.id = g_strndup (ncsa_text, ncsa_leng);
@ -929,7 +928,7 @@ YY_RULE_SETUP
YY_BREAK
case 11:
YY_RULE_SETUP
#line 99 "imap_ncsa.l"
#line 101 "imap_ncsa.l"
{
ncsa_lval.value = g_ascii_strtod (ncsa_text, NULL);
return FLOAT;
@ -938,20 +937,20 @@ YY_RULE_SETUP
case 12:
/* rule 12 can match eol */
YY_RULE_SETUP
#line 104 "imap_ncsa.l"
#line 106 "imap_ncsa.l"
; /* Eat white space */
YY_BREAK
case 13:
YY_RULE_SETUP
#line 106 "imap_ncsa.l"
#line 108 "imap_ncsa.l"
return *ncsa_text;
YY_BREAK
case 14:
YY_RULE_SETUP
#line 108 "imap_ncsa.l"
#line 110 "imap_ncsa.l"
ECHO;
YY_BREAK
#line 955 "<stdout>"
#line 954 "<stdout>"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(imap_link):
case YY_STATE_EOF(comment):
@ -1282,43 +1281,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 ncsa_text */
*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)
@ -1951,7 +1913,7 @@ void ncsa_free (void * ptr )
#define YYTABLES_NAME "yytables"
#line 108 "imap_ncsa.l"
#line 110 "imap_ncsa.l"