From 3d5eb33fa7d8501bbb985b4e667a6a9db1d92e7b Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Feb 2013 19:12:28 +0100 Subject: [PATCH] inpcom.c: rename local variable names --- src/frontend/inpcom.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 202cc722d..f3a418d24 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -191,10 +191,10 @@ expand_section_references(int line_number) { struct line *tmp_ptr = NULL, *prev; bool found_section = FALSE; - int i; + int lib_idx; - for (i = 0; i < num_libraries; i++) { - struct line *working = library_deck[i]; + for (lib_idx = 0; lib_idx < num_libraries; lib_idx++) { + struct line *working = library_deck[lib_idx]; while (working) { char *buffer = working->li_line; @@ -224,7 +224,7 @@ expand_section_references(int line_number) /* library section definition: `.lib ' .. `.endl' */ char keep_char; - int j; + int section_idx; char *s, *t; if (found_section) { @@ -241,9 +241,9 @@ expand_section_references(int line_number) *t = '\0'; /* see if library we want to copy */ - j = find_section(i, s); + section_idx = find_section(lib_idx, s); - found_section = (j >= 0); + found_section = (section_idx >= 0); if (found_section) { @@ -253,8 +253,8 @@ expand_section_references(int line_number) /* make the .lib a comment */ *buffer = '*'; - tmp_ptr = section_ref[i][j]->li_next; - section_ref[i][j]->li_next = working; + tmp_ptr = section_ref[lib_idx][section_idx]->li_next; + section_ref[lib_idx][section_idx]->li_next = working; /* renumber lines */ line_number_lib = 1;