diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index ba1a5d8a7..d37664b26 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2343,28 +2343,6 @@ inp_remove_excess_ws(struct line *c) } -/* - * recursively expand library section references, - * either - * every library section reference (when the given section_name_ === NULL) - * or - * just those references occuring in the given library section definition - */ - -static void -expand_section_references(struct line *c, char *dir_name) -{ - for (; c; c = c->li_next) { - - char *line = c->li_line; - - if (ciprefix(".lib", line)) { - c = expand_section_ref(c, line, dir_name); - } - } -} - - static struct line * expand_section_ref(struct line *c, char *line, char *dir_name) { @@ -2455,6 +2433,28 @@ expand_section_ref(struct line *c, char *line, char *dir_name) } +/* + * recursively expand library section references, + * either + * every library section reference (when the given section_name_ === NULL) + * or + * just those references occuring in the given library section definition + */ + +static void +expand_section_references(struct line *c, char *dir_name) +{ + for (; c; c = c->li_next) { + + char *line = c->li_line; + + if (ciprefix(".lib", line)) { + c = expand_section_ref(c, line, dir_name); + } + } +} + + static char* inp_get_subckt_name(char *s) {