Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/flex/dist Re-apply some lint comments that have...
details: https://anonhg.NetBSD.org/src/rev/3321c5329689
branches: trunk
changeset: 772252:3321c5329689
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Dec 26 17:32:28 2011 +0000
description:
Re-apply some lint comments that have been lost during move to
external tree.
diffstat:
external/bsd/flex/dist/flex.skl | 4 ++--
external/bsd/flex/dist/main.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 9b9b1047e85d -r 3321c5329689 external/bsd/flex/dist/flex.skl
--- a/external/bsd/flex/dist/flex.skl Mon Dec 26 16:03:42 2011 +0000
+++ b/external/bsd/flex/dist/flex.skl Mon Dec 26 17:32:28 2011 +0000
@@ -1232,7 +1232,7 @@
[[
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
-#define YY_BREAK break;
+#define YY_BREAK /*LINTED*/break;
#endif
]])
@@ -1320,7 +1320,7 @@
yy_load_buffer_state( M4_YY_CALL_ONLY_ARG );
}
- while ( 1 ) /* loops until end-of-file is reached */
+ while (/*CONSTCOND*/ 1 ) /* loops until end-of-file is reached */
{
%% [8.0] yymore()-related code goes here
yy_cp = YY_G(yy_c_buf_p);
diff -r 9b9b1047e85d -r 3321c5329689 external/bsd/flex/dist/main.c
--- a/external/bsd/flex/dist/main.c Mon Dec 26 16:03:42 2011 +0000
+++ b/external/bsd/flex/dist/main.c Mon Dec 26 17:32:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.2 2009/10/26 04:27:15 christos Exp $ */
+/* $NetBSD: main.c,v 1.3 2011/12/26 17:32:28 njoly Exp $ */
/* flex - tool to generate fast lexical analyzers */
@@ -1579,7 +1579,7 @@
if (!do_yywrap) {
if (!C_plus_plus) {
- outn ("\n#define yywrap(n) 1");
+ outn ("\n#define yywrap(n) (/*CONSTCOND*/1)");
}
outn ("#define YY_SKIP_YYWRAP");
}
Home |
Main Index |
Thread Index |
Old Index