diff options
author | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-15 19:14:28 +0000 |
---|---|---|
committer | korbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-15 19:14:28 +0000 |
commit | 7239ad1c44e9ccb0979e43ffb4fba0329ecf3a0c (patch) | |
tree | 2c5f8ed785de4ee86682877ea0abd5d2027b5e41 /fixincludes | |
parent | 41341abd86b4bb0312d6c0dafab8e29facbab9c1 (diff) | |
download | gcc-7239ad1c44e9ccb0979e43ffb4fba0329ecf3a0c.tar.gz |
Clarify the second argument usage for "c-fix"-es.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131549 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes')
-rw-r--r-- | fixincludes/README | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fixincludes/README b/fixincludes/README index a26455ba125..439e4ec30dd 100644 --- a/fixincludes/README +++ b/fixincludes/README @@ -229,11 +229,12 @@ MAKING CHANGES TO INCLHACK.DEF c_fix_arg = "#ifndef %1\n%0\n#endif"; c_fix_arg = "#define[ \t]+([A-Z][A-Z0-9a-z_]*).*"; - This would wrap a traditional #define inside of a "#ifndef"/"#endif" - pair. The second "c_fix_arg" may be omitted *IF* there is - a select clause and the first one matches the text you want - replaced. You may delete text by supplying an empty string for - the format (the first "c_fix_arg"). + This would wrap a one line #define inside of a "#ifndef"/"#endif" + pair. The second "c_fix_arg" may be omitted *IF* there is a select + clause and the first one identifies the text you wish to reformat. + It will then be used as the second "c_fix_arg". You may delete the + selected text by supplying an empty string for the format (the first + "c_fix_arg"). Note: In general, a format c_fix may be used in place of one sed expression. However, it will need to be rewritten by |