Commit Graph

613 Commits

Author SHA1 Message Date
rlar 2e023a6be7 inpcom.c, cleanup `inp_new_func()'
especially avoid local state in a function local static variable
2015-08-16 14:54:37 +02:00
rlar 56312b7872 inpcom.c, cleanup `inp_rem_func()' 2015-08-16 14:27:18 +02:00
rlar db9eb23b7d inpcom.c, bug fix, avoid segfault when `.ends' is missing 2015-08-15 17:05:00 +02:00
rlar 44425b1d0a fix commit "inpcom.c, comment_out_unused_subckt_models() #4/8, introduce `nlist_find()'"
which broke the search for binned models
2015-05-02 12:20:58 +02:00
rlar ab5cd17044 inpcom.c, workaround for "#307 define problems with the Modelname "mname" with Subcircuits"
a diode model named "1smb4148" could not be found
  because it was dropped in `comment_out_unused_subckt_models()'

as a work around the function
  is_a_modelname()
is extended to accept an additional pattern which does match "1smb4148"

Thanks to Martin who submitted the bug report here:
  http://sourceforge.net/p/ngspice/bugs/307/
2015-04-19 17:36:05 +02:00
rlar e4ba6eb602 inpcom.c, comment_out_unused_subckt_models() #8/8, drop `no_of_lines' 2015-04-19 17:07:42 +02:00
rlar 8379de8ddb inpcom.c, comment_out_unused_subckt_models() #7/8, allocation 2015-04-19 17:07:40 +02:00
rlar 341ee45314 inpcom.c, comment_out_unused_subckt_models() #6/8, cleanup 2015-04-19 17:07:10 +02:00
rlar e598da4706 inpcom.c, comment_out_unused_subckt_models() #5/8, introduce `nlist_adjoin()' 2015-04-19 16:58:30 +02:00
rlar 2e7b469cfe inpcom.c, comment_out_unused_subckt_models() #4/8, introduce `nlist_find()' 2015-04-19 16:58:11 +02:00
rlar d8807c00c4 inpcom.c, comment_out_unused_subckt_models() #3/8, drop ´tmp_cnt', `new_names[]' 2015-04-19 16:57:30 +02:00
rlar 5ec24f4ed0 inpcom.c, comment_out_unused_subckt_models() #2/8, cleanup 2015-04-19 16:56:18 +02:00
rlar d2e138c592 inpcom.c, comment_out_unused_subckt_models() #1/8, use a struct to collect data 2015-04-19 16:54:51 +02:00
rlar 84a945ca45 inpcom.c, comment_out_unused_subckt_models(), reduce scope of local variables 2015-04-18 22:03:19 +02:00
rlar a8d90775ca inpcom.c, get_subckts_for_subckt(), reduce scope of local variables 2015-04-18 21:56:07 +02:00
rlar e2dabb2e75 inpcom.c, introduce `is_a_modelname()' to encapsulate highly dubious code 2015-04-18 12:50:19 +02:00
rlar a820d11451 inpcom.c, inp_remove_ws(), allow netsted braces `{}' 2014-12-31 16:58:25 +01:00
rlar 9ee7888033 inpcom.c, inp_remove_ws(), copy() only when necessary 2014-12-31 16:58:24 +01:00
rlar 3fd1f56a10 inpcom.c, inp_remove_ws(), fix processing after skipped whitespace 2014-12-31 16:58:20 +01:00
rlar d623763e58 inpcom.c, cleanup inp_remove_ws(), reorder loop, reveal obscure behaviour 2014-12-31 16:52:41 +01:00
rlar bd055c1a98 inpcom.c, cleanup inp_remove_ws(), #4/4, minor 2014-12-31 16:33:45 +01:00
rlar e25620f117 inpcom.c, cleanup inp_remove_ws(), #3/4, common code in if-then-else 2014-12-31 16:33:21 +01:00
rlar d1260f4e4d inpcom.c, cleanup inp_remove_ws(), #2/4, dup some code down into if-then-else 2014-12-31 15:59:51 +01:00
rlar 91658bc856 inpcom.c, cleanup inp_remove_ws(), #1/4, thats inevitably true 2014-12-31 15:59:28 +01:00
rlar 82a5c1c48a inpcom.c, inp_remove_ws(), avoid appending a surplus '\0' 2014-12-31 15:49:57 +01:00
rlar 07ba16192e inpcom.c, cleanup inp_remove_ws(), #5/5, introduce `d' instead of `big_buffer_index' 2014-12-31 15:12:40 +01:00
rlar f1fcc943f9 inpcom.c, cleanup inp_remove_ws(), #4/5, minor 2014-12-31 15:12:22 +01:00
rlar e290e55f31 inpcom.c, cleanup inp_remove_ws(), #3/5, drop `curr', use `s' instead 2014-12-31 15:12:06 +01:00
rlar 0081ec9b51 inpcom.c, cleanup inp_remove_ws(), #2/5, highlight `s' beeing almost unused 2014-12-31 15:11:46 +01:00
rlar 179d55547c inpcom.c, cleanup inp_remove_ws(), #1/5, highlight `s' beeing const 2014-12-31 15:11:05 +01:00
rlar 9b1f248c52 inpcom.c, inp_remove_ws(), #7/7, invert 'if' expression 2014-12-28 20:07:20 +01:00
rlar d2371be535 inpcom.c, inp_remove_ws(), #6/7, reorder condition, highlight similiarity 2014-12-28 20:06:12 +01:00
rlar cf6582ea8c inpcom.c, inp_remove_ws(), #5/7, simplify condition 2014-12-28 20:05:41 +01:00
rlar 2c200ae453 inpcom.c, inp_remove_ws(), #4/7, simplify condition 2014-12-28 20:04:59 +01:00
rlar 0e74b5be15 inpcom.c, inp_remove_ws(), #3/7, combine `if' expressions 2014-12-28 20:04:19 +01:00
rlar 70c9350359 inpcom.c, inp_remove_ws(), #2/7, combine `if' expressions 2014-12-28 20:03:27 +01:00
rlar 51914a4088 inpcom.c, inp_remove_ws(), #1/7, split if-then-else 2014-12-28 20:02:27 +01:00
rlar 718c85a545 inpcom.c, inp_remove_ws(), don't insert whitespace at end of line 2014-12-28 20:01:44 +01:00
rlar ed73bf393e inpcom.c, `inp_quote_params()', fixme, express doubts 2014-12-20 19:02:56 +01:00
rlar 8adb888300 inpcom.c, cleanup `inp_quote_params()', local scope for some variables 2014-12-20 18:51:39 +01:00
rlar 47d6b50f2e inpcom.c, cleanup `inp_quote_params()', drop `beg' 2014-12-20 18:50:48 +01:00
rlar 075b96bb05 inpcom.c, cleanup `inp_quote_params()', drop `new_str' 2014-12-20 18:50:27 +01:00
rlar 1b49bb6ea4 inpcom.c, cleanup `inp_quote_params()', don't poke string 2014-12-20 18:49:34 +01:00
rlar 6a6c9a9409 inpcom.c, cleanup `inp_quote_params()', use `skip_ws()' 2014-12-20 18:49:25 +01:00
rlar 7a2dfd46eb inpcom.c, `inp_quote_params()', bug fix, starting point for search of next identifier 2014-12-20 18:49:06 +01:00
rlar d6c280c9b1 inpcom.c, `inp_sort_params()', move `inp_quote_params()' invocation to the epilogue 2014-12-15 20:30:50 +01:00
rlar 9294b42327 inpcom.c, `inp_reorder_params_subckt()', don't process the .subckt card itself by `inp_quote_params()'
actually, any .dot card is ignored by `inp_quote_params()' anyway
2014-12-15 20:04:34 +01:00
rlar 2e2f4fc69c inpcom.c, cleanup `inp_reorder_params()', use NULL instead of `end' 2014-12-15 19:52:31 +01:00
rlar aee2561f5a inpcom.c, `inp_sort_params()', do not unnecessarily swap params 2014-12-14 22:41:46 +01:00
rlar 84252fee5e inpcom.c, cleanup `inp_fix_subckt()', use `line_free_x()' 2014-12-14 22:30:58 +01:00