Commit 15e4ea18 by Nathanael Nerode

inclhack.def (limits_ifndefs): Add select test.

	* fixinc/inclhack.def (limits_ifndefs): Add select test.
	* fixinc/fixincl.x: Rebuild.

From-SVN: r69154
parent cd61dacb
2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
* fixinc/inclhack.def (limits_ifndefs): Add select test.
* fixinc/fixincl.x: Rebuild.
* fixinc/inclhack.def (math_exception): Improve bypass and comment.
* fixinc/fixincl.x: Rebuild.
......
......@@ -2,11 +2,11 @@
*
* DO NOT EDIT THIS FILE (fixincl.x)
*
* It has been AutoGen-ed Wednesday July 9, 2003 at 04:58:23 PM EDT
* It has been AutoGen-ed Wednesday July 9, 2003 at 05:06:05 PM EDT
* From the definitions inclhack.def
* and the template file fixincl
*/
/* DO NOT CVS-MERGE THIS FILE, EITHER Wed Jul 9 16:58:23 EDT 2003
/* DO NOT CVS-MERGE THIS FILE, EITHER Wed Jul 9 17:06:05 EDT 2003
*
* You must regenerate it. Use the ./genfixes script.
*
......@@ -2830,14 +2830,21 @@ tSCC zLimits_IfndefsList[] =
#define apzLimits_IfndefsMachs (const char**)NULL
/*
* content selection pattern - do fix if pattern found
*/
tSCC zLimits_IfndefsSelect0[] =
"^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
/*
* content bypass pattern - skip fix if pattern found
*/
tSCC zLimits_IfndefsBypass0[] =
"ifndef[ \t]+FLT_(MIN|MAX)";
#define LIMITS_IFNDEFS_TEST_CT 1
#define LIMITS_IFNDEFS_TEST_CT 2
static tTestDesc aLimits_IfndefsTests[] = {
{ TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL }, };
{ TT_NEGREP, zLimits_IfndefsBypass0, (regex_t*)NULL },
{ TT_EGREP, zLimits_IfndefsSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Limits_Ifndefs
......@@ -2847,7 +2854,6 @@ static const char* apzLimits_IfndefsPatch[] = {
"#ifndef %1\n\
%0\n\
#endif",
"^[ \t]*#[ \t]*define[ \t]+((FLT|DBL)_(MIN|MAX|DIG))[ \t].*",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
......@@ -6100,7 +6106,7 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 171
#define REGEX_COUNT 172
#define MACH_LIST_SIZE_LIMIT 261
#define FIX_COUNT 154
......
......@@ -1609,12 +1609,13 @@ fix = {
hackname = limits_ifndefs;
files = "sys/limits.h";
files = "limits.h";
select = "^[ \t]*#[ \t]*define[ \t]+"
"((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
bypass = "ifndef[ \t]+FLT_(MIN|MAX)";
c_fix = format;
c_fix_arg = "#ifndef %1\n%0\n#endif";
c_fix_arg = "^[ \t]*#[ \t]*define[ \t]+"
"((FLT|DBL)_(MIN|MAX|DIG))[ \t].*";
/* Second arg is select expression */
test_text = " #\tdefine\tDBL_DIG \t 0 /* somthin' */";
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment