Commit 3ec76475 by Neil Booth Committed by Neil Booth

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

From-SVN: r67978
parent 705de64c
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.
(write_langs): Similarly.
* c.opt: Specify languages.
......
......@@ -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"
......
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