* opts.sh: Quote '+' in regex.

From-SVN: r67978
This commit is contained in:
Neil Booth 2003-06-15 15:28:24 +00:00 committed by Neil Booth
parent 705de64c0b
commit 3ec764754d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-06-15 Neil Booth <neil@daikokuya.co.uk>
* opts.sh: Quote '+' in regex.
2003-06-15 Neil Booth <neil@daikokuya.co.uk>
* c-opts.c (lang_flags): Update for new spelling of flags.

View File

@ -48,7 +48,9 @@ ${AWK} '
flags = " " flags " "
result = "0"
for (j = 0; j < n_langs; j++) {
if (flags ~ " " langs[j] " ")
regex = " " langs[j] " "
gsub ( "+", "\\+", regex )
if (flags ~ regex)
result = result " | " macros[j]
}
if (flags ~ " Common ") result = result " | CL_COMMON"