#include "flexdef.h"
#include "parse.h"
-#define ACTION_ECHO add_action( (char *) yytext )
+#define ACTION_ECHO add_action( yytext )
#define MARK_END_OF_PROLOG mark_prolog();
#undef YY_DECL
return CHAR;
#define RETURNNAME \
- (void) strcpy( nmstr, (char *) yytext ); \
+ (void) strcpy( nmstr, yytext ); \
return NAME;
#define PUT_BACK_STRING(str, start) \
- for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
+ for ( i = strlen( str ) - 1; i >= start; --i ) \
unput((str)[i])
#define CHECK_REJECT(str) \
^"%"[^sxanpekotcru{}].* synerr( "unrecognized '%' directive" );
^{NAME} {
- (void) strcpy( nmstr, (char *) yytext );
+ (void) strcpy( nmstr, yytext );
didadef = false;
BEGIN(PICKUPDEF);
}
<PICKUPDEF>{WS} /* separates name and definition */
<PICKUPDEF>{NOT_WS}.* {
- (void) strcpy( (char *) nmdef, (char *) yytext );
+ (void) strcpy( (char *) nmdef, yytext );
/* Skip trailing whitespace. */
for ( i = strlen( (char *) nmdef ) - 1;
<SECT2>"["{FIRST_CCL_CHAR}{CCL_CHAR}* {
int cclval;
- (void) strcpy( nmstr, (char *) yytext );
+ (void) strcpy( nmstr, yytext );
/* Check to see if we've already encountered this
* ccl.
<SECT2>"{"{NAME}"}" {
register Char *nmdefptr;
- Char *ndlookup();
+ char *ndlookup();
- (void) strcpy( nmstr, (char *) yytext + 1 );
+ (void) strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
if ( ! (nmdefptr = ndlookup( nmstr )) )
else
{ /* push back name surrounded by ()'s */
- int len = strlen( nmdefptr );
+ int len = strlen( (char *) nmdefptr );
if ( lex_compat || nmdefptr[0] == '^' ||
(len > 0 && nmdefptr[len - 1] == '$') )
{ /* don't use ()'s after all */
- PUT_BACK_STRING(nmdefptr, 0);
+ PUT_BACK_STRING((char *) nmdefptr, 0);
if ( nmdefptr[0] == '^' )
BEGIN(CARETISBOL);
else
{
unput(')');
- PUT_BACK_STRING(nmdefptr, 0);
+ PUT_BACK_STRING((char *) nmdefptr, 0);
unput('(');
}
}
<SC>">"/^ BEGIN(CARETISBOL); return '>';
<SC>{SCNAME} RETURNNAME;
<SC>. {
- format_synerr( "bad <start condition>: %s",
- (char *) yytext );
+ format_synerr( "bad <start condition>: %s", yytext );
}
<CARETISBOL>"^" BEGIN(SECT2); return '^';
<SECT2,QUOTE,CCL>{ESCSEQ} {
- yylval = myesc( yytext );
+ yylval = myesc( (Char *) yytext );
return CHAR;
}
<FIRSTCCL>{ESCSEQ} {
- yylval = myesc( yytext );
+ yylval = myesc( (Char *) yytext );
BEGIN(CCL);
return CHAR;
}
<SECT3>.*(\n?) ECHO;
<SECT3><<EOF>> sectnum = 0; yyterminate();
-<*>.|\n format_synerr( "bad character: %s", (char *) yytext );
+<*>.|\n format_synerr( "bad character: %s", yytext );
%%