Commit 7021bb50 by Kaveh R. Ghazi Committed by Kaveh Ghazi

inclhack.def (broken_cabs): Update fix to handle comments following the cabs…

inclhack.def (broken_cabs): Update fix to handle comments following the cabs decl which terminate on the...

	* fixinc/inclhack.def (broken_cabs): Update fix to handle comments
	following the cabs decl which terminate on the following line.
	Add the corresponding test_text case.

From-SVN: r33983
parent 6ab3e7dd
2000-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/inclhack.def (broken_cabs): Update fix to handle comments
following the cabs decl which terminate on the following line.
Add the corresponding test_text case.
2000-05-18 Neil Booth <NeilB@earthling.net>
* cppinit.c (cpp_reader_init): Initialise col_adjust and
......
......@@ -1300,8 +1300,8 @@ tTestDesc aBroken_CabsTests[] = {
* Fix Command Arguments for Broken_Cabs
*/
const char* apzBroken_CabsPatch[] = { "sed",
"-e", "/^extern double cabs();/d",
"-e", "/^extern double cabs(struct dbl_hypot);/d",
"-e", "s/^extern double cabs();//",
"-e", "s/^extern double cabs(struct dbl_hypot);//",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
......
......@@ -781,18 +781,22 @@ fix = {
/*
* Remove `extern double cabs' declarations from math.h.
* This conflicts with C9x. Discovered on AIX.
* SunOS4 has its cabs() declaration followed by a comment which
* terminates on the following line.
*/
fix = {
hackname = broken_cabs;
files = "math.h";
select = '^extern double cabs';
sed = '/^extern double cabs();/d';
sed = '/^extern double cabs(struct dbl_hypot);/d';
sed = 's/^extern double cabs();//';
sed = 's/^extern double cabs(struct dbl_hypot);//';
test_text = "#ifdef __STDC__\n"
"extern double cabs(struct dbl_hypot);\n"
"#else\n"
"extern double cabs();\n"
"#endif";
"#endif\n"
"extern double cabs(); /* This is a comment\n"
" 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