From 289c74541a494f9566cd70328bd7b124dde3d75a Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 1 Feb 2005 10:44:34 -0500 Subject: [PATCH] COMP: Removing #line directives from .h file to avoid bogus Sun warning. --- Source/cmDependsJavaLexer.h | 7 ------- Source/cmDependsJavaLexer.in.l | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/cmDependsJavaLexer.h b/Source/cmDependsJavaLexer.h index 0254eb8dd..9b780a134 100644 --- a/Source/cmDependsJavaLexer.h +++ b/Source/cmDependsJavaLexer.h @@ -2,10 +2,6 @@ #define cmDependsJava_yyHEADER_H 1 #define cmDependsJava_yyIN_HEADER 1 -#line 6 "cmDependsJavaLexer.h" - -#line 8 "cmDependsJavaLexer.h" - #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ @@ -310,9 +306,6 @@ extern int cmDependsJava_yylex (yyscan_t yyscanner); #undef YY_DECL_IS_OURS #undef YY_DECL #endif -#line 214 "cmDependsJavaLexer.in.l" - -#line 327 "cmDependsJavaLexer.h" #undef cmDependsJava_yyIN_HEADER #endif /* cmDependsJava_yyHEADER_H */ diff --git a/Source/cmDependsJavaLexer.in.l b/Source/cmDependsJavaLexer.in.l index 4eab54ebe..7afc3233a 100644 --- a/Source/cmDependsJavaLexer.in.l +++ b/Source/cmDependsJavaLexer.in.l @@ -23,7 +23,7 @@ Run flex like this: flex --prefix=cmDependsJava_yy --header-file=cmDependsJavaLexer.h -ocmDependsJavaLexer.cxx cmDependsJavaLexer.in.l -Modify cmDependsJavaLexer.c: +Modify cmDependsJavaLexer.cxx: - remove TABs - remove "yyscanner" argument from these methods: yy_fatal_error, yyalloc, yyrealloc, yyfree @@ -33,6 +33,7 @@ Modify cmDependsJavaLexer.h: - remove TABs - remove the yy_init_globals function - remove the block that includes unistd.h + - remove #line directives (avoids bogus warning on old Sun) */