* fixinc/inclhack.def (broken_cabs): Generalize regex.
* fixinc/fixincl.x: Regenerate.
From-SVN: r36669
+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>
* loop.c (check_final_value): A GIV is not replaceable if used
* content selection pattern - do fix if pattern found
*/
tSCC zBroken_CabsSelect0[] =
- "^extern double cabs";
+ "^extern[ \\t]+double[ \\t]+cabs";
#define BROKEN_CABS_TEST_CT 1
static tTestDesc aBroken_CabsTests[] = {
static const char* apzBroken_CabsPatch[] = {
"format",
"",
- "^extern double cabs\\((struct dbl_hypot|)\\);",
+ "^extern[ \t]+double[ \t]+cabs\\((struct dbl_hypot|)\\);",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
fix = {
hackname = broken_cabs;
files = "math.h";
- select = '^extern double cabs';
+ select = '^extern[ \t]+double[ \t]+cabs';
c_fix = format;
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"
- "extern double cabs(struct dbl_hypot);\n"
+ "extern double cabs(struct dbl_hypot);\n"
"#else\n"
- "extern double cabs();\n"
+ "extern double cabs();\n"
"#endif\n"
"extern double cabs(); /* This is a comment\n"
" and it ends here. */";