inpcom.c: rename find_lib_name() --> find_section()
This commit is contained in:
parent
09e89df89d
commit
05bd53b8de
|
|
@ -114,7 +114,7 @@ find_lib(char *s)
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
find_lib_name(int i, char *s) {
|
find_section(int i, char *s) {
|
||||||
int j;
|
int j;
|
||||||
for (j = 0; j < num_lib_names[i]; j++)
|
for (j = 0; j < num_lib_names[i]; j++)
|
||||||
if (strcmp(library_name[i][j], s) == 0)
|
if (strcmp(library_name[i][j], s) == 0)
|
||||||
|
|
@ -240,7 +240,7 @@ expand_libs(int line_number)
|
||||||
*t = '\0';
|
*t = '\0';
|
||||||
/* see if library we want to copy */
|
/* see if library we want to copy */
|
||||||
|
|
||||||
j = find_lib_name(i, s);
|
j = find_section(i, s);
|
||||||
|
|
||||||
found_lib_name = (j >= 0);
|
found_lib_name = (j >= 0);
|
||||||
|
|
||||||
|
|
@ -2395,7 +2395,7 @@ inp_determine_libraries(struct line *deck, char *lib_name)
|
||||||
}
|
}
|
||||||
i = find_lib(s);
|
i = find_lib(s);
|
||||||
if (i >= 0)
|
if (i >= 0)
|
||||||
if (find_lib_name(i, y) < 0) {
|
if (find_section(i, y) < 0) {
|
||||||
new_lib_name(i, y, c);
|
new_lib_name(i, y, c);
|
||||||
/* see if other libraries referenced */
|
/* see if other libraries referenced */
|
||||||
inp_determine_libraries(libraries[i], y);
|
inp_determine_libraries(libraries[i], y);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue