inpcom.c, reorder
This commit is contained in:
parent
0a2f5d2e55
commit
8fe86bb1c9
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue