inpcom.c: rename function argument names

This commit is contained in:
rlar 2013-02-24 19:12:26 +01:00
parent bf09f55f51
commit ae4fa5047e
1 changed files with 9 additions and 9 deletions

View File

@ -103,31 +103,31 @@ static void inp_poly_err(struct line *deck);
static int static int
find_lib(char *s) find_lib(char *name)
{ {
int i; int i;
for (i = 0; i < num_libraries; i++) for (i = 0; i < num_libraries; i++)
if (cieq(library_name[i], s)) if (cieq(library_name[i], name))
return i; return i;
return -1; return -1;
} }
static int static int
find_section(int i, char *s) { find_section(int lib_idx, char *section_name_) {
int j; int j;
for (j = 0; j < num_sections[i]; j++) for (j = 0; j < num_sections[lib_idx]; j++)
if (strcmp(section_name[i][j], s) == 0) if (strcmp(section_name[lib_idx][j], section_name_) == 0)
return j; return j;
return -1; return -1;
} }
static void static void
remember_section_ref(int i, char *y, struct line *c) { remember_section_ref(int lib_idx, char *section_name_, struct line *deck) {
int k = num_sections[i]++; int section_idx = num_sections[lib_idx]++;
section_ref[i][k] = c; section_ref[lib_idx][section_idx] = deck;
section_name[i][k] = strdup(y); section_name[lib_idx][section_idx] = strdup(section_name_);
} }