Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/lex Redo previous again, so that the check for YY_US...



details:   https://anonhg.NetBSD.org/src/rev/a07b089bef16
branches:  trunk
changeset: 483767:a07b089bef16
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Mar 17 23:21:45 2000 +0000

description:
Redo previous again, so that the check for YY_USES_REJECT is after "%%"
but still included for c++ lexers.

Fixes libc:nslexer.c build failure reported by Matthias Scheler.

diffstat:

 usr.bin/lex/flex.skl |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 6f7d61e1001e -r a07b089bef16 usr.bin/lex/flex.skl
--- a/usr.bin/lex/flex.skl      Fri Mar 17 22:54:04 2000 +0000
+++ b/usr.bin/lex/flex.skl      Fri Mar 17 23:21:45 2000 +0000
@@ -1,7 +1,7 @@
 /* A lexical scanner generated by flex */
 
 /* Scanner skeleton version:
- * $NetBSD: flex.skl,v 1.13 2000/03/15 22:52:14 simonb Exp $
+ * $NetBSD: flex.skl,v 1.14 2000/03/17 23:21:45 simonb Exp $
  */
 
 #define FLEX_SCANNER
@@ -254,12 +254,6 @@
 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, yy_size_t len ));
 %*
 
-static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
-#ifndef YY_USES_REJECT
-static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
-#endif
-static void yy_flex_free YY_PROTO(( void * ));
-
 #define yy_new_buffer yy_create_buffer
 
 #define yy_set_interactive(is_interactive) \
@@ -280,6 +274,12 @@
 
 %% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
 
+static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
+#ifndef YY_USES_REJECT
+static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
+#endif
+static void yy_flex_free YY_PROTO(( void * ));
+
 %- Standard (non-C++) definition
 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 ));



Home | Main Index | Thread Index | Old Index