mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 20:05:33 +08:00
inclhack.def (sun_catmacro): Escape parens in the select pattern.
1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * fixinc/inclhack.def (sun_catmacro): Escape parens in the select pattern. * fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt. From-SVN: r27434
This commit is contained in:
parent
3cc0b5517a
commit
b75b4e92c8
@ -1,3 +1,9 @@
|
||||
1999-06-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* fixinc/inclhack.def (sun_catmacro): Escape parens in the select
|
||||
pattern.
|
||||
* fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
|
||||
|
||||
Wed Jun 9 03:10:34 1999 Mumit Khan <khan@xraylith.wisc.edu>
|
||||
|
||||
* c-pragma.c (handle_pragma_token): Handle `#pragma pack()'
|
||||
|
@ -2422,7 +2422,7 @@ tSCC zSun_CatmacroList[] =
|
||||
* content selection pattern - do fix if pattern found
|
||||
*/
|
||||
tSCC zSun_CatmacroSelect0[] =
|
||||
"^#define[ \t]+CAT(a,b)";
|
||||
"^#define[ \t]+CAT\\(a,b\\)";
|
||||
|
||||
#define SUN_CATMACRO_TEST_CT 1
|
||||
#define SUN_CATMACRO_RE_CT 1
|
||||
|
@ -1403,7 +1403,7 @@ fix = {
|
||||
fix = {
|
||||
hackname = sun_catmacro;
|
||||
files = pixrect/memvar.h;
|
||||
select = "^#define[ \t]+CAT(a,b)";
|
||||
select = "^#define[ \t]+CAT\\(a,b\\)";
|
||||
sed = "/^#define[ \t]CAT(a,b)/ i\\\n"
|
||||
"#ifdef __STDC__ \\\n"
|
||||
"#define CAT(a,b) a##b\\\n"
|
||||
|
@ -2022,7 +2022,7 @@ typedef __regmatch_t regmatch_t;
|
||||
# Fix 67: Sun_Catmacro
|
||||
#
|
||||
case "${file}" in ./pixrect/memvar.h )
|
||||
if ( test -n "`egrep '^#define[ ]+CAT(a,b)' ${file}`"
|
||||
if ( test -n "`egrep '^#define[ ]+CAT\\(a,b\\)' ${file}`"
|
||||
) > /dev/null 2>&1 ; then
|
||||
fixlist="${fixlist}
|
||||
sun_catmacro"
|
||||
|
Loading…
Reference in New Issue
Block a user