Commit cf6d5133 by Kaveh R. Ghazi Committed by Kaveh Ghazi

inclhack.def (ctrl_quotes_def, [...]): Modify select pattern to also match macro…

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
parent 3fff8475
2000-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fixinc/inclhack.def (ctrl_quotes_def, io_quotes_def): Modify
select pattern to also match macro defs with only one argument.
Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com) Thu Jun 15 18:56:12 2000 Jeffrey A Law (law@cygnus.com)
* i386.md: Create new [right,left] rotate and right shift * i386.md: Create new [right,left] rotate and right shift
......
...@@ -1472,7 +1472,7 @@ tSCC zCtrl_Quotes_DefName[] = ...@@ -1472,7 +1472,7 @@ tSCC zCtrl_Quotes_DefName[] =
* content selection pattern - do fix if pattern found * content selection pattern - do fix if pattern found
*/ */
tSCC zCtrl_Quotes_DefSelect0[] = 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 #define CTRL_QUOTES_DEF_TEST_CT 1
tTestDesc aCtrl_Quotes_DefTests[] = { tTestDesc aCtrl_Quotes_DefTests[] = {
...@@ -1959,7 +1959,7 @@ tSCC zIo_Quotes_DefName[] = ...@@ -1959,7 +1959,7 @@ tSCC zIo_Quotes_DefName[] =
* content selection pattern - do fix if pattern found * content selection pattern - do fix if pattern found
*/ */
tSCC zIo_Quotes_DefSelect0[] = 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 #define IO_QUOTES_DEF_TEST_CT 1
tTestDesc aIo_Quotes_DefTests[] = { tTestDesc aIo_Quotes_DefTests[] = {
......
...@@ -888,7 +888,7 @@ fix = { ...@@ -888,7 +888,7 @@ fix = {
*/ */
fix = { fix = {
hackname = ctrl_quotes_def; 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 = char_macro_def;
c_fix_arg = "CTRL"; c_fix_arg = "CTRL";
test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)\n" test_text = "#define BSD43_CTRL(n, x) (('n'<<8)+x)\n"
...@@ -1142,7 +1142,7 @@ fix = { ...@@ -1142,7 +1142,7 @@ fix = {
*/ */
fix = { fix = {
hackname = io_quotes_def; 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 = char_macro_def;
c_fix_arg = "IO"; c_fix_arg = "IO";
test_text = test_text =
......
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