A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill our last '#ifdef _MSC_VER'
[simgrid.git]
/
src
/
xbt
/
automaton
/
automaton_lexer.yy.c
diff --git
a/src/xbt/automaton/automaton_lexer.yy.c
b/src/xbt/automaton/automaton_lexer.yy.c
index
8477155
..
5541542
100644
(file)
--- a/
src/xbt/automaton/automaton_lexer.yy.c
+++ b/
src/xbt/automaton/automaton_lexer.yy.c
@@
-27,8
+27,8
@@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION
5
-#define YY_FLEX_SUBMINOR_VERSION
35
+#define YY_FLEX_MINOR_VERSION
6
+#define YY_FLEX_SUBMINOR_VERSION
0
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@
-181,7
+181,12
@@
typedef unsigned int flex_uint32_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
-extern int xbt_automaton_parser_leng;
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+extern yy_size_t xbt_automaton_parser_leng;
extern FILE *xbt_automaton_parser_in, *xbt_automaton_parser_out;
extern FILE *xbt_automaton_parser_in, *xbt_automaton_parser_out;
@@
-190,6
+195,7
@@
extern FILE *xbt_automaton_parser_in, *xbt_automaton_parser_out;
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
#define EOB_ACT_LAST_MATCH 2
#define YY_LESS_LINENO(n)
+ #define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
@@
-207,11
+213,6
@@
extern FILE *xbt_automaton_parser_in, *xbt_automaton_parser_out;
#define unput(c) yyunput( c, (yytext_ptr) )
#define unput(c) yyunput( c, (yytext_ptr) )
-#ifndef YY_TYPEDEF_YY_SIZE_T
-#define YY_TYPEDEF_YY_SIZE_T
-typedef size_t yy_size_t;
-#endif
-
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
@@
-300,7
+301,7
@@
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* yy_hold_char holds the character lost when xbt_automaton_parser_text is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
/* yy_hold_char holds the character lost when xbt_automaton_parser_text is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
-
in
t xbt_automaton_parser_leng;
+
yy_size_
t xbt_automaton_parser_leng;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
@@
-328,7
+329,7
@@
static void xbt_automaton_parser__init_buffer (YY_BUFFER_STATE b,FILE *file );
YY_BUFFER_STATE xbt_automaton_parser__scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE xbt_automaton_parser__scan_string (yyconst char *yy_str );
YY_BUFFER_STATE xbt_automaton_parser__scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE xbt_automaton_parser__scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE xbt_automaton_parser__scan_bytes (yyconst char *bytes,
in
t len );
+YY_BUFFER_STATE xbt_automaton_parser__scan_bytes (yyconst char *bytes,
yy_size_
t len );
void *xbt_automaton_parser_alloc (yy_size_t );
void *xbt_automaton_parser_realloc (void *,yy_size_t );
void *xbt_automaton_parser_alloc (yy_size_t );
void *xbt_automaton_parser_realloc (void *,yy_size_t );
@@
-360,7
+361,7
@@
void xbt_automaton_parser_free (void * );
/* Begin user sect3 */
/* Begin user sect3 */
-#define xbt_automaton_parser_wrap(
n) 1
+#define xbt_automaton_parser_wrap(
) (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
@@
-374,11
+375,17
@@
extern int xbt_automaton_parser_lineno;
int xbt_automaton_parser_lineno = 1;
extern char *xbt_automaton_parser_text;
int xbt_automaton_parser_lineno = 1;
extern char *xbt_automaton_parser_text;
+#ifdef yytext_ptr
+#undef yytext_ptr
+#endif
#define yytext_ptr xbt_automaton_parser_text
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
#define yytext_ptr xbt_automaton_parser_text
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
+#if defined(__GNUC__) && __GNUC__ >= 3
+__attribute__((__noreturn__))
+#endif
static void yy_fatal_error (yyconst char msg[] );
/* Done after the current pattern has been matched and before the
static void yy_fatal_error (yyconst char msg[] );
/* Done after the current pattern has been matched and before the
@@
-410,7
+417,7
@@
static yyconst flex_int16_t yy_accept[54] =
22, 1, 0
} ;
22, 1, 0
} ;
-static yyconst
flex_int32_t
yy_ec[256] =
+static yyconst
YY_CHAR
yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@
-442,7
+449,7
@@
static yyconst flex_int32_t yy_ec[256] =
1, 1, 1, 1, 1
} ;
1, 1, 1, 1, 1
} ;
-static yyconst
flex_int32_t
yy_meta[34] =
+static yyconst
YY_CHAR
yy_meta[34] =
{ 0,
1, 1, 2, 2, 1, 2, 1, 1, 1, 1,
1, 1, 3, 4, 4, 1, 1, 1, 4, 2,
{ 0,
1, 1, 2, 2, 1, 2, 1, 1, 1, 1,
1, 1, 3, 4, 4, 1, 1, 1, 4, 2,
@@
-450,7
+457,7
@@
static yyconst flex_int32_t yy_meta[34] =
1, 1, 1
} ;
1, 1, 1
} ;
-static yyconst flex_int16_t yy_base[57] =
+static yyconst flex_
u
int16_t yy_base[57] =
{ 0,
0, 0, 89, 90, 32, 90, 90, 34, 81, 90,
90, 69, 76, 27, 31, 69, 90, 0, 59, 56,
{ 0,
0, 0, 89, 90, 32, 90, 90, 34, 81, 90,
90, 69, 76, 27, 31, 69, 90, 0, 59, 56,
@@
-470,7
+477,7
@@
static yyconst flex_int16_t yy_def[57] =
55, 55, 0, 53, 53, 53
} ;
55, 55, 0, 53, 53, 53
} ;
-static yyconst flex_int16_t yy_nxt[124] =
+static yyconst flex_
u
int16_t yy_nxt[124] =
{ 0,
4, 5, 6, 5, 7, 8, 9, 10, 11, 4,
12, 4, 13, 14, 15, 16, 17, 4, 18, 4,
{ 0,
4, 5, 6, 5, 7, 8, 9, 10, 11, 4,
12, 4, 13, 14, 15, 16, 17, 4, 18, 4,
@@
-521,15
+528,23
@@
int xbt_automaton_parser__flex_debug = 0;
#define YY_RESTORE_YY_MORE_OFFSET
char *xbt_automaton_parser_text;
#line 1 "parserPromela.lex"
#define YY_RESTORE_YY_MORE_OFFSET
char *xbt_automaton_parser_text;
#line 1 "parserPromela.lex"
-#line 4 "parserPromela.lex"
-
+/* Copyright (c) 2012, 2014. The SimGrid Team.
+ * All rights reserved. */
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
+#line 10 "parserPromela.lex"
+
+#include "simgrid_config.h"
+#if !HAVE_UNISTD_H
+#define YY_NO_UNISTD_H /* hello Windows */
+#endif
#include <stdio.h>
#include "parserPromela.tab.hacc"
extern YYSTYPE yylval;
#include <stdio.h>
#include "parserPromela.tab.hacc"
extern YYSTYPE yylval;
-#line 5
33
"automaton_lexer.yy.c"
+#line 5
48
"automaton_lexer.yy.c"
#define INITIAL 0
#define INITIAL 0
@@
-562,19
+577,19
@@
void xbt_automaton_parser_set_extra (YY_EXTRA_TYPE user_defined );
FILE *xbt_automaton_parser_get_in (void );
FILE *xbt_automaton_parser_get_in (void );
-void xbt_automaton_parser_set_in (FILE * in_str );
+void xbt_automaton_parser_set_in (FILE *
_
in_str );
FILE *xbt_automaton_parser_get_out (void );
FILE *xbt_automaton_parser_get_out (void );
-void xbt_automaton_parser_set_out (FILE * out_str );
+void xbt_automaton_parser_set_out (FILE *
_
out_str );
-
in
t xbt_automaton_parser_get_leng (void );
+
yy_size_
t xbt_automaton_parser_get_leng (void );
char *xbt_automaton_parser_get_text (void );
int xbt_automaton_parser_get_lineno (void );
char *xbt_automaton_parser_get_text (void );
int xbt_automaton_parser_get_lineno (void );
-void xbt_automaton_parser_set_lineno (int line_number );
+void xbt_automaton_parser_set_lineno (int
_
line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@
-588,8
+603,12
@@
extern int xbt_automaton_parser_wrap (void );
#endif
#endif
#endif
#endif
+#ifndef YY_NO_UNPUT
+
static void yyunput (int c,char *buf_ptr );
static void yyunput (int c,char *buf_ptr );
+#endif
+
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@@
-702,7
+721,7
@@
extern int xbt_automaton_parser_lex (void);
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
-#define YY_BREAK break;
+#define YY_BREAK
/*LINTED*/
break;
#endif
#define YY_RULE_SETUP \
#endif
#define YY_RULE_SETUP \
@@
-712,15
+731,10
@@
extern int xbt_automaton_parser_lex (void);
*/
YY_DECL
{
*/
YY_DECL
{
-
register
yy_state_type yy_current_state;
-
register
char *yy_cp, *yy_bp;
-
register
int yy_act;
+ yy_state_type yy_current_state;
+ char *yy_cp, *yy_bp;
+ int yy_act;
-#line 28 "parserPromela.lex"
-
-
-#line 723 "automaton_lexer.yy.c"
-
if ( !(yy_init) )
{
(yy_init) = 1;
if ( !(yy_init) )
{
(yy_init) = 1;
@@
-747,7
+761,13
@@
YY_DECL
xbt_automaton_parser__load_buffer_state( );
}
xbt_automaton_parser__load_buffer_state( );
}
- while ( 1 ) /* loops until end-of-file is reached */
+ {
+#line 38 "parserPromela.lex"
+
+
+#line 769 "automaton_lexer.yy.c"
+
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
{
yy_cp = (yy_c_buf_p);
@@
-763,7
+783,7
@@
YY_DECL
yy_match:
do
{
yy_match:
do
{
-
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]
;
+
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]
;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@
-804,118
+824,118
@@
do_action: /* This label is used only to access EOF actions. */
case 1:
YY_RULE_SETUP
case 1:
YY_RULE_SETUP
-#line
3
0 "parserPromela.lex"
+#line
4
0 "parserPromela.lex"
{ return (NEVER); }
YY_BREAK
case 2:
YY_RULE_SETUP
{ return (NEVER); }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line
3
1 "parserPromela.lex"
+#line
4
1 "parserPromela.lex"
{ return (IF); }
YY_BREAK
case 3:
YY_RULE_SETUP
{ return (IF); }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line
3
2 "parserPromela.lex"
+#line
4
2 "parserPromela.lex"
{ return (FI); }
YY_BREAK
case 4:
YY_RULE_SETUP
{ return (FI); }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line
3
3 "parserPromela.lex"
+#line
4
3 "parserPromela.lex"
{ return (IMPLIES); }
YY_BREAK
case 5:
YY_RULE_SETUP
{ return (IMPLIES); }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line
3
4 "parserPromela.lex"
+#line
4
4 "parserPromela.lex"
{ return (GOTO); }
YY_BREAK
case 6:
YY_RULE_SETUP
{ return (GOTO); }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line
3
5 "parserPromela.lex"
+#line
4
5 "parserPromela.lex"
{ return (AND); }
YY_BREAK
case 7:
YY_RULE_SETUP
{ return (AND); }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line
3
6 "parserPromela.lex"
+#line
4
6 "parserPromela.lex"
{ return (OR); }
YY_BREAK
case 8:
YY_RULE_SETUP
{ return (OR); }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line
3
7 "parserPromela.lex"
+#line
4
7 "parserPromela.lex"
{ return (NOT); }
YY_BREAK
case 9:
YY_RULE_SETUP
{ return (NOT); }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line
3
8 "parserPromela.lex"
+#line
4
8 "parserPromela.lex"
{ return (LEFT_PAR); }
YY_BREAK
case 10:
YY_RULE_SETUP
{ return (LEFT_PAR); }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line
3
9 "parserPromela.lex"
+#line
4
9 "parserPromela.lex"
{ return (RIGHT_PAR); }
YY_BREAK
case 11:
YY_RULE_SETUP
{ return (RIGHT_PAR); }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line
4
0 "parserPromela.lex"
+#line
5
0 "parserPromela.lex"
{ return (CASE); }
YY_BREAK
case 12:
YY_RULE_SETUP
{ return (CASE); }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line
4
1 "parserPromela.lex"
+#line
5
1 "parserPromela.lex"
{ return (COLON); }
YY_BREAK
case 13:
YY_RULE_SETUP
{ return (COLON); }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line
4
2 "parserPromela.lex"
+#line
5
2 "parserPromela.lex"
{ return (SEMI_COLON); }
YY_BREAK
case 14:
YY_RULE_SETUP
{ return (SEMI_COLON); }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line
4
3 "parserPromela.lex"
+#line
5
3 "parserPromela.lex"
{ return (CASE_TRUE); }
YY_BREAK
case 15:
YY_RULE_SETUP
{ return (CASE_TRUE); }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line
4
4 "parserPromela.lex"
+#line
5
4 "parserPromela.lex"
{ return (LEFT_BRACE); }
YY_BREAK
case 16:
YY_RULE_SETUP
{ return (LEFT_BRACE); }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line
4
5 "parserPromela.lex"
+#line
5
5 "parserPromela.lex"
{ return (RIGHT_BRACE); }
YY_BREAK
case 17:
/* rule 17 can match eol */
YY_RULE_SETUP
{ return (RIGHT_BRACE); }
YY_BREAK
case 17:
/* rule 17 can match eol */
YY_RULE_SETUP
-#line
4
8 "parserPromela.lex"
+#line
5
8 "parserPromela.lex"
{ }
YY_BREAK
case 18:
YY_RULE_SETUP
{ }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line
5
0 "parserPromela.lex"
+#line
6
0 "parserPromela.lex"
{ }
YY_BREAK
case 19:
YY_RULE_SETUP
{ }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line
5
3 "parserPromela.lex"
+#line
6
3 "parserPromela.lex"
{ sscanf(xbt_automaton_parser_text,"%lf",&yylval.real);
return (LITT_REEL); }
YY_BREAK
case 20:
YY_RULE_SETUP
{ sscanf(xbt_automaton_parser_text,"%lf",&yylval.real);
return (LITT_REEL); }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line
5
6 "parserPromela.lex"
+#line
6
6 "parserPromela.lex"
{ sscanf(xbt_automaton_parser_text,"%d",&yylval.integer);
return (LITT_ENT); }
YY_BREAK
case 21:
/* rule 21 can match eol */
YY_RULE_SETUP
{ sscanf(xbt_automaton_parser_text,"%d",&yylval.integer);
return (LITT_ENT); }
YY_BREAK
case 21:
/* rule 21 can match eol */
YY_RULE_SETUP
-#line
5
9 "parserPromela.lex"
+#line
6
9 "parserPromela.lex"
{ yylval.string=(char *)malloc(strlen(xbt_automaton_parser_text)+1);
sscanf(xbt_automaton_parser_text,"%s",yylval.string);
return (LITT_CHAINE); }
YY_BREAK
case 22:
YY_RULE_SETUP
{ yylval.string=(char *)malloc(strlen(xbt_automaton_parser_text)+1);
sscanf(xbt_automaton_parser_text,"%s",yylval.string);
return (LITT_CHAINE); }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line
6
3 "parserPromela.lex"
+#line
7
3 "parserPromela.lex"
{ yylval.string=(char *)malloc(strlen(xbt_automaton_parser_text)+1);
sscanf(xbt_automaton_parser_text,"%s",yylval.string);
return (ID); }
{ yylval.string=(char *)malloc(strlen(xbt_automaton_parser_text)+1);
sscanf(xbt_automaton_parser_text,"%s",yylval.string);
return (ID); }
@@
-923,20
+943,20
@@
YY_RULE_SETUP
case 23:
/* rule 23 can match eol */
YY_RULE_SETUP
case 23:
/* rule 23 can match eol */
YY_RULE_SETUP
-#line
6
7 "parserPromela.lex"
+#line
7
7 "parserPromela.lex"
{ }
YY_BREAK
case 24:
YY_RULE_SETUP
{ }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line
6
9 "parserPromela.lex"
+#line
7
9 "parserPromela.lex"
{ }
YY_BREAK
case 25:
YY_RULE_SETUP
{ }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line
7
1 "parserPromela.lex"
+#line
8
1 "parserPromela.lex"
ECHO;
YY_BREAK
ECHO;
YY_BREAK
-#line 9
4
0 "automaton_lexer.yy.c"
+#line 9
6
0 "automaton_lexer.yy.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
case YY_STATE_EOF(INITIAL):
yyterminate();
@@
-1067,6
+1087,7
@@
case YY_STATE_EOF(INITIAL):
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
+ } /* end of user's declarations */
} /* end of xbt_automaton_parser_lex */
/* yy_get_next_buffer - try to read in a new buffer
} /* end of xbt_automaton_parser_lex */
/* yy_get_next_buffer - try to read in a new buffer
@@
-1078,9
+1099,9
@@
case YY_STATE_EOF(INITIAL):
*/
static int yy_get_next_buffer (void)
{
*/
static int yy_get_next_buffer (void)
{
-
register
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
-
register
char *source = (yytext_ptr);
-
register in
t number_to_move, i;
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+ char *source = (yytext_ptr);
+
yy_size_
t number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@
-1109,7
+1130,7
@@
static int yy_get_next_buffer (void)
/* Try to read more data. */
/* First move last chars to start of buffer. */
/* Try to read more data. */
/* First move last chars to start of buffer. */
- number_to_move = (
in
t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+ number_to_move = (
yy_size_
t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
@@
-1122,21
+1143,21
@@
static int yy_get_next_buffer (void)
else
{
else
{
-
in
t num_to_read =
+
yy_size_
t num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER
_LVALUE
;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
-
in
t new_size = b->yy_buf_size * 2;
+
yy_size_
t new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
@@
-1167,7
+1188,7
@@
static int yy_get_next_buffer (void)
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
/* Read in more data. */
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
- (yy_n_chars),
(size_t)
num_to_read );
+ (yy_n_chars), num_to_read );
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
}
@@
-1191,9
+1212,9
@@
static int yy_get_next_buffer (void)
else
ret_val = EOB_ACT_CONTINUE_SCAN;
else
ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((
yy_size_
t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ if ((
in
t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
/* Extend the array by 50%, plus the number we really need. */
-
yy_size_
t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
+
in
t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) xbt_automaton_parser_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) xbt_automaton_parser_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
@@
-1212,14
+1233,14
@@
static int yy_get_next_buffer (void)
static yy_state_type yy_get_previous_state (void)
{
static yy_state_type yy_get_previous_state (void)
{
-
register
yy_state_type yy_current_state;
-
register
char *yy_cp;
+ yy_state_type yy_current_state;
+ char *yy_cp;
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
-
register
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@
-1244,10
+1265,10
@@
static int yy_get_next_buffer (void)
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
-
register
int yy_is_jam;
-
register
char *yy_cp = (yy_c_buf_p);
+ int yy_is_jam;
+ char *yy_cp = (yy_c_buf_p);
-
register
YY_CHAR yy_c = 1;
+ YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@
-1262,12
+1283,14
@@
static int yy_get_next_buffer (void)
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 53);
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 53);
- return yy_is_jam ? 0 : yy_current_state;
+
return yy_is_jam ? 0 : yy_current_state;
}
}
- static void yyunput (int c, register char * yy_bp )
+#ifndef YY_NO_UNPUT
+
+ static void yyunput (int c, char * yy_bp )
{
{
-
register
char *yy_cp;
+ char *yy_cp;
yy_cp = (yy_c_buf_p);
yy_cp = (yy_c_buf_p);
@@
-1277,10
+1300,10
@@
static int yy_get_next_buffer (void)
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
-
register in
t number_to_move = (yy_n_chars) + 2;
-
register
char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
+
yy_size_
t number_to_move = (yy_n_chars) + 2;
+ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
-
register
char *source =
+ char *source =
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
@@
-1302,6
+1325,8
@@
static int yy_get_next_buffer (void)
(yy_c_buf_p) = yy_cp;
}
(yy_c_buf_p) = yy_cp;
}
+#endif
+
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
@@
-1326,7
+1351,7
@@
static int yy_get_next_buffer (void)
else
{ /* need more input */
else
{ /* need more input */
-
in
t offset = (yy_c_buf_p) - (yytext_ptr);
+
yy_size_
t offset = (yy_c_buf_p) - (yytext_ptr);
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
@@
-1451,7
+1476,7
@@
static void xbt_automaton_parser__load_buffer_state (void)
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in xbt_automaton_parser__create_buffer()" );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in xbt_automaton_parser__create_buffer()" );
- b->yy_buf_size = size;
+ b->yy_buf_size =
(yy_size_t)
size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
@@
-1486,10
+1511,6
@@
static void xbt_automaton_parser__load_buffer_state (void)
xbt_automaton_parser_free((void *) b );
}
xbt_automaton_parser_free((void *) b );
}
-#ifndef __cplusplus
-extern int isatty (int );
-#endif /* __cplusplus */
-
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a xbt_automaton_parser_restart() or at EOF.
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a xbt_automaton_parser_restart() or at EOF.
@@
-1602,7
+1623,7
@@
void xbt_automaton_parser_pop_buffer_state (void)
*/
static void xbt_automaton_parser_ensure_buffer_stack (void)
{
*/
static void xbt_automaton_parser_ensure_buffer_stack (void)
{
-
in
t num_to_alloc;
+
yy_size_
t num_to_alloc;
if (!(yy_buffer_stack)) {
if (!(yy_buffer_stack)) {
@@
-1610,7
+1631,7
@@
static void xbt_automaton_parser_ensure_buffer_stack (void)
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
- num_to_alloc = 1;
+ num_to_alloc = 1;
/* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state**)xbt_automaton_parser_alloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
(yy_buffer_stack) = (struct yy_buffer_state**)xbt_automaton_parser_alloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
@@
-1627,7
+1648,7
@@
static void xbt_automaton_parser_ensure_buffer_stack (void)
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
-
in
t grow_size = 8 /* arbitrary grow size */;
+
yy_size_
t grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)xbt_automaton_parser_realloc
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)xbt_automaton_parser_realloc
@@
-1699,12
+1720,12
@@
YY_BUFFER_STATE xbt_automaton_parser__scan_string (yyconst char * yystr )
*
* @return the newly allocated buffer state object.
*/
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE xbt_automaton_parser__scan_bytes (yyconst char * yybytes,
in
t _yybytes_len )
+YY_BUFFER_STATE xbt_automaton_parser__scan_bytes (yyconst char * yybytes,
yy_size_
t _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
-
in
t i;
+
yy_size_
t i;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
/* Get memory for full buffer, including space for trailing EOB's. */
n = _yybytes_len + 2;
@@
-1735,7
+1756,7
@@
YY_BUFFER_STATE xbt_automaton_parser__scan_bytes (yyconst char * yybytes, int
static void yy_fatal_error (yyconst char* msg )
{
static void yy_fatal_error (yyconst char* msg )
{
- (void) fprintf( stderr, "%s\n", msg );
+
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
exit( YY_EXIT_FAILURE );
}
@@
-1786,7
+1807,7
@@
FILE *xbt_automaton_parser_get_out (void)
/** Get the length of the current token.
*
*/
/** Get the length of the current token.
*
*/
-
in
t xbt_automaton_parser_get_leng (void)
+
yy_size_
t xbt_automaton_parser_get_leng (void)
{
return xbt_automaton_parser_leng;
}
{
return xbt_automaton_parser_leng;
}
@@
-1801,29
+1822,29
@@
char *xbt_automaton_parser_get_text (void)
}
/** Set the current line number.
}
/** Set the current line number.
- * @param
line_
number
+ * @param
_line_number line
number
*
*/
*
*/
-void xbt_automaton_parser_set_lineno (int line_number )
+void xbt_automaton_parser_set_lineno (int
_
line_number )
{
{
- xbt_automaton_parser_lineno = line_number;
+ xbt_automaton_parser_lineno =
_
line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
}
/** Set the input stream. This does not discard the current
* input buffer.
- * @param in_str A readable stream.
+ * @param
_
in_str A readable stream.
*
* @see xbt_automaton_parser__switch_to_buffer
*/
*
* @see xbt_automaton_parser__switch_to_buffer
*/
-void xbt_automaton_parser_set_in (FILE * in_str )
+void xbt_automaton_parser_set_in (FILE *
_
in_str )
{
{
- xbt_automaton_parser_in = in_str ;
+ xbt_automaton_parser_in =
_
in_str ;
}
}
-void xbt_automaton_parser_set_out (FILE * out_str )
+void xbt_automaton_parser_set_out (FILE *
_
out_str )
{
{
- xbt_automaton_parser_out = out_str ;
+ xbt_automaton_parser_out =
_
out_str ;
}
int xbt_automaton_parser_get_debug (void)
}
int xbt_automaton_parser_get_debug (void)
@@
-1831,9
+1852,9
@@
int xbt_automaton_parser_get_debug (void)
return xbt_automaton_parser__flex_debug;
}
return xbt_automaton_parser__flex_debug;
}
-void xbt_automaton_parser_set_debug (int bdebug )
+void xbt_automaton_parser_set_debug (int
_
bdebug )
{
{
- xbt_automaton_parser__flex_debug = bdebug ;
+ xbt_automaton_parser__flex_debug =
_
bdebug ;
}
static int yy_init_globals (void)
}
static int yy_init_globals (void)
@@
-1893,7
+1914,8
@@
int xbt_automaton_parser_lex_destroy (void)
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
{
- register int i;
+
+ int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
@@
-1902,7
+1924,7
@@
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * s )
{
-
register
int n;
+ int n;
for ( n = 0; s[n]; ++n )
;
for ( n = 0; s[n]; ++n )
;
@@
-1912,11
+1934,12
@@
static int yy_flex_strlen (yyconst char * s )
void *xbt_automaton_parser_alloc (yy_size_t size )
{
void *xbt_automaton_parser_alloc (yy_size_t size )
{
- return (void *) malloc( size );
+
return (void *) malloc( size );
}
void *xbt_automaton_parser_realloc (void * ptr, yy_size_t size )
{
}
void *xbt_automaton_parser_realloc (void * ptr, yy_size_t size )
{
+
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
@@
-1929,12
+1952,12
@@
void *xbt_automaton_parser_realloc (void * ptr, yy_size_t size )
void xbt_automaton_parser_free (void * ptr )
{
void xbt_automaton_parser_free (void * ptr )
{
- free( (char *) ptr ); /* see xbt_automaton_parser_realloc() for (char *) cast */
+
free( (char *) ptr ); /* see xbt_automaton_parser_realloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
}
#define YYTABLES_NAME "yytables"
-#line
7
1 "parserPromela.lex"
+#line
8
1 "parserPromela.lex"