aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-06-16 20:38:42 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-06-16 20:38:42 +0000
commitcf6d5133a14cca405a9d527dc966b8d15415e8e7 (patch)
tree906ee175c1a269d30fa52924e048c69422188911 /gcc/fixinc
parent3fff847575d71de33fe0e55e5708e432273d3cee (diff)
downloadgcc-cf6d5133a14cca405a9d527dc966b8d15415e8e7.zip
gcc-cf6d5133a14cca405a9d527dc966b8d15415e8e7.tar.gz
gcc-cf6d5133a14cca405a9d527dc966b8d15415e8e7.tar.bz2
inclhack.def (ctrl_quotes_def, [...]): Modify select pattern to also match macro defs with only one argument.
* fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify select pattern to also match macro defs with only one argument. From-SVN: r34576
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixincl.x4
-rw-r--r--gcc/fixinc/inclhack.def4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index 5b89fbc..30d5744 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -1472,7 +1472,7 @@ tSCC zCtrl_Quotes_DefName[] =
* content selection pattern - do fix if pattern found
*/
tSCC zCtrl_Quotes_DefSelect0[] =
- "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z],";
+ "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
#define CTRL_QUOTES_DEF_TEST_CT 1
tTestDesc aCtrl_Quotes_DefTests[] = {
@@ -1959,7 +1959,7 @@ tSCC zIo_Quotes_DefName[] =
* content selection pattern - do fix if pattern found
*/
tSCC zIo_Quotes_DefSelect0[] =
- "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z],";
+ "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
#define IO_QUOTES_DEF_TEST_CT 1
tTestDesc aIo_Quotes_DefTests[] = {
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index 95cde75..66f59e8 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -888,7 +888,7 @@ fix = {
*/
fix = {
hackname = ctrl_quotes_def;
- select = "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z],";
+ select = "define[ \t]+[A-Z0-9_]+CTRL\\([a-zA-Z][,)]";
c_fix = char_macro_def;
c_fix_arg = "CTRL";
test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)\n"
@@ -1142,7 +1142,7 @@ fix = {
*/
fix = {
hackname = io_quotes_def;
- select = "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z],";
+ select = "define[ \t]+[A-Z0-9_]+IO[A-Z]*\\([a-zA-Z][,)]";
c_fix = char_macro_def;
c_fix_arg = "IO";
test_text =