Commit a1c63101 by David Edelsohn Committed by David Edelsohn

inclhack.def (broken_cabs): Generalize regex.

	* fixinc/inclhack.def (broken_cabs): Generalize regex.
	* fixinc/fixincl.x: Regenerate.

From-SVN: r36669
parent 70dd0f7f
2000-09-29 David Edelsohn <edelsohn@gnu.org>
* fixinc/inclhack.def (broken_cabs): Generalize regex.
* fixinc/fixincl.x: Regenerate.
2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 2000-09-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* loop.c (check_final_value): A GIV is not replaceable if used * loop.c (check_final_value): A GIV is not replaceable if used
......
...@@ -1510,7 +1510,7 @@ tSCC zBroken_CabsList[] = ...@@ -1510,7 +1510,7 @@ tSCC zBroken_CabsList[] =
* content selection pattern - do fix if pattern found * content selection pattern - do fix if pattern found
*/ */
tSCC zBroken_CabsSelect0[] = tSCC zBroken_CabsSelect0[] =
"^extern double cabs"; "^extern[ \\t]+double[ \\t]+cabs";
#define BROKEN_CABS_TEST_CT 1 #define BROKEN_CABS_TEST_CT 1
static tTestDesc aBroken_CabsTests[] = { static tTestDesc aBroken_CabsTests[] = {
...@@ -1522,7 +1522,7 @@ static tTestDesc aBroken_CabsTests[] = { ...@@ -1522,7 +1522,7 @@ static tTestDesc aBroken_CabsTests[] = {
static const char* apzBroken_CabsPatch[] = { static const char* apzBroken_CabsPatch[] = {
"format", "format",
"", "",
"^extern double cabs\\((struct dbl_hypot|)\\);", "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
......
...@@ -883,16 +883,16 @@ fix = { ...@@ -883,16 +883,16 @@ fix = {
fix = { fix = {
hackname = broken_cabs; hackname = broken_cabs;
files = "math.h"; files = "math.h";
select = '^extern double cabs'; select = '^extern[ \t]+double[ \t]+cabs';
c_fix = format; c_fix = format;
c_fix_arg = ""; c_fix_arg = "";
c_fix_arg = "^extern double cabs\\((struct dbl_hypot|)\\);"; c_fix_arg = "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);";
test_text = "#ifdef __STDC__\n" test_text = "#ifdef __STDC__\n"
"extern double cabs(struct dbl_hypot);\n" "extern double cabs(struct dbl_hypot);\n"
"#else\n" "#else\n"
"extern double cabs();\n" "extern double cabs();\n"
"#endif\n" "#endif\n"
"extern double cabs(); /* This is a comment\n" "extern double cabs(); /* This is a comment\n"
" and it ends here. */"; " and it ends here. */";
......
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