From e4ba6eb6024942ab4fe54521c320432b0d5858c4 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 19 Apr 2015 17:01:52 +0200 Subject: [PATCH] inpcom.c, comment_out_unused_subckt_models() #8/8, drop `no_of_lines' --- src/frontend/inpcom.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 903cae775..012d39c09 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -129,7 +129,7 @@ static void inp_new_func(char *funcname, char *funcbody, struct line *card, static void inp_rem_func(struct func_temper **new_func); static bool chk_for_line_continuation(char *line); -static void comment_out_unused_subckt_models(struct line *start_card, int no_of_lines); +static void comment_out_unused_subckt_models(struct line *start_card); static void inp_fix_macro_param_func_paren_io(struct line *begin_card); static void inp_fix_gnd_name(struct line *deck); static void inp_chk_for_multi_in_vcvs(struct line *deck, int *line_number); @@ -512,7 +512,7 @@ inp_readall(FILE *fp, char *dir_name, bool comfile, bool intfile) inp_remove_excess_ws(working); - comment_out_unused_subckt_models(working, rv . line_number); + comment_out_unused_subckt_models(working); subckt_params_to_param(working); @@ -1730,7 +1730,7 @@ get_subckts_for_subckt(struct line *start_card, char *subckt_name, */ static void -comment_out_unused_subckt_models(struct line *start_card, int no_of_lines) +comment_out_unused_subckt_models(struct line *start_card) { struct line *card; struct nlist *used_subckts, *used_models; @@ -1738,11 +1738,6 @@ comment_out_unused_subckt_models(struct line *start_card, int no_of_lines) bool processing_subckt = FALSE, remove_subckt = FALSE, has_models = FALSE; int skip_control = 0, nested_subckt = 0; - /* generate arrays of *char for subckt or model names. Start - with 1000, but increase, if number of lines in deck is larger */ - if (no_of_lines < 1000) - no_of_lines = 1000; - used_subckts = nlist_allocate(100); used_models = nlist_allocate(100);