Commit 7d3e64f7 by Tom de Vries Committed by Tom de Vries

gen-pass-instances.awk: Rename len_of_end to len_of_close in handle_line

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

	* gen-pass-instances.awk (handle_line): Rename len_of_end to
	len_of_close.

From-SVN: r230210
parent 0f73e667
2015-11-12 Tom de Vries <tom@codesourcery.com> 2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Rename len_of_end to
len_of_close.
2015-11-12 Tom de Vries <tom@codesourcery.com>
* gen-pass-instances.awk (handle_line): Add len_of_call variable. * gen-pass-instances.awk (handle_line): Add len_of_call variable.
2015-11-12 Tom de Vries <tom@codesourcery.com> 2015-11-12 Tom de Vries <tom@codesourcery.com>
...@@ -54,8 +54,9 @@ function handle_line() ...@@ -54,8 +54,9 @@ function handle_line()
len_of_call = RLENGTH; len_of_call = RLENGTH;
len_of_start = length("NEXT_PASS ("); len_of_start = length("NEXT_PASS (");
len_of_end = length(")"); len_of_close = length(")");
len_of_pass_name = len_of_call - (len_of_start + len_of_end);
len_of_pass_name = len_of_call - (len_of_start + len_of_close);
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)
......
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