/* Copy whatever the last rule matched to the standard output. */
-/* Cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
-/* this used to be an fputs(), but since the string might contain NUL's,
- * we now use fwrite().
- */
#ifndef ECHO
%- Standard (non-C++) definition
-#define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout )
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
%+ C++ definition
-#define ECHO LexerOutput( (const char *) yytext, yyleng )
+#define ECHO LexerOutput( yytext, yyleng )
%*
#endif
indent_puts(
"YY_FATAL_ERROR( \"token too large, exceeds YYLMAX\" ); \\" );
indent_down();
- indent_puts( "strcpy( yytext, (char *) yytext_ptr ); \\" );
+ indent_puts( "strcpy( yytext, yytext_ptr ); \\" );
}
set_indent( 0 );