summaryrefslogtreecommitdiff
path: root/flex.skl
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-04-20 11:17:08 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-04-20 11:17:08 +0000
commitcb703f50934b4526fe3589d3acb7dc8523fd5c36 (patch)
tree2ac70209b2ba139bfa7d745109b4a78233696056 /flex.skl
parent527f2457a227bf612566356fd2a0d4f607cb6174 (diff)
const -> yyconst
Diffstat (limited to 'flex.skl')
-rw-r--r--flex.skl32
1 files changed, 16 insertions, 16 deletions
diff --git a/flex.skl b/flex.skl
index 66059e9..403e350 100644
--- a/flex.skl
+++ b/flex.skl
@@ -54,10 +54,10 @@ class istream;
#define YY_USE_PROTOS
#endif
-#ifndef YY_USE_CONST
-#ifndef const
-#define const
-#endif
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
#endif
@@ -249,8 +249,8 @@ void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
-YY_BUFFER_STATE yy_scan_string YY_PROTO(( const char *str ));
-YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( const char *bytes, int len ));
+YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str ));
+YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
%*
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
@@ -290,7 +290,7 @@ static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
-static void yy_flex_strncpy YY_PROTO(( char *, const char *, int ));
+static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifndef YY_NO_INPUT
@@ -307,7 +307,7 @@ static int input YY_PROTO(( void ));
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
-static void yy_fatal_error YY_PROTO(( const char msg[] ));
+static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
%*
/* Done after the current pattern has been matched and before the
@@ -1271,10 +1271,10 @@ yy_size_t size;
#ifndef YY_NO_SCAN_STRING
%-
#ifdef YY_USE_PROTOS
-YY_BUFFER_STATE yy_scan_string( const char *str )
+YY_BUFFER_STATE yy_scan_string( yyconst char *str )
#else
YY_BUFFER_STATE yy_scan_string( str )
-const char *str;
+yyconst char *str;
#endif
{
int len;
@@ -1290,10 +1290,10 @@ const char *str;
#ifndef YY_NO_SCAN_BYTES
%-
#ifdef YY_USE_PROTOS
-YY_BUFFER_STATE yy_scan_bytes( const char *bytes, int len )
+YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
-const char *bytes;
+yyconst char *bytes;
int len;
#endif
{
@@ -1398,7 +1398,7 @@ int yyFlexLexer::yy_top_state()
%-
#ifdef YY_USE_PROTOS
-static void yy_fatal_error( const char msg[] )
+static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
@@ -1410,7 +1410,7 @@ char msg[];
%+
-void yyFlexLexer::LexerError( const char msg[] )
+void yyFlexLexer::LexerError( yyconst char msg[] )
{
cerr << msg << '\n';
exit( YY_EXIT_FAILURE );
@@ -1438,11 +1438,11 @@ void yyFlexLexer::LexerError( const char msg[] )
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
-static void yy_flex_strncpy( char *s1, const char *s2, int n )
+static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
-const char *s2;
+yyconst char *s2;
int n;
#endif
{