Commit 2182471e by Tom de Vries Committed by Tom de Vries

gen-pass-instances.awk: Unify semicolon use in handle_line

2015-11-12  Tom de Vries  <tom@codesourcery.com>

	* gen-pass-instances.awk (handle_line): Unify semicolon use.

From-SVN: r230207
parent 3d0ceb98
2015-11-12 Tom de Vries <tom@codesourcery.com> 2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Unify semicolon use.
2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Remove unused var line_length. * gen-pass-instances.awk (handle_line): Remove unused var line_length.
2015-11-12 Tom de Vries <tom@codesourcery.com> 2015-11-12 Tom de Vries <tom@codesourcery.com>
...@@ -41,14 +41,14 @@ BEGIN { ...@@ -41,14 +41,14 @@ BEGIN {
function handle_line() function handle_line()
{ {
line = $0; line = $0;
where = match(line, /NEXT_PASS \((.+)\)/) where = match(line, /NEXT_PASS \((.+)\)/);
if (where != 0) if (where != 0)
{ {
len_of_start = length("NEXT_PASS (") len_of_start = length("NEXT_PASS (");
len_of_end = length(")") len_of_end = length(")");
len_of_pass_name = RLENGTH - (len_of_start + len_of_end) len_of_pass_name = RLENGTH - (len_of_start + len_of_end);
pass_starts_at = where + len_of_start pass_starts_at = where + len_of_start;
pass_name = substr(line, pass_starts_at, len_of_pass_name) pass_name = substr(line, pass_starts_at, len_of_pass_name);
if (pass_name in pass_counts) if (pass_name in pass_counts)
pass_counts[pass_name]++; pass_counts[pass_name]++;
else else
......
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