From: Bruce Korb Date: Tue, 15 Jan 2008 19:14:28 +0000 (+0000) Subject: Clarify the second argument usage for "c-fix"-es. X-Git-Tag: releases/gcc-4.3.0~608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af3679c8c1b0fb79e1cbd1ded03fbf25e18bcfe;p=thirdparty%2Fgcc.git Clarify the second argument usage for "c-fix"-es. From-SVN: r131549 --- diff --git a/fixincludes/README b/fixincludes/README index a26455ba1259..439e4ec30ddb 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