Commit Graph

5119 Commits

Author SHA1 Message Date
rlar 70dca32c2d undo a bogous hunk from commit "beautify code", Dec 16 2011 2016-11-19 14:00:59 +01:00
rlar 6d774d99b3 subckt.c, devmodtranslate(), rewrite using bxx_ facility 2016-11-19 14:00:59 +01:00
rlar b633362973 subckt.c, translate(), rewrite using bxx facility 2016-11-19 14:00:58 +01:00
rlar 78c611aa64 subckt.c, finishLine(), #6/6 unconditionally transform instance name in i() expression 2016-11-19 13:59:38 +01:00
rlar 30e515cc4d subckt.c, finishLine(), #5/6 move code up into if() body 2016-11-19 13:59:24 +01:00
rlar e54cc664da subckt.c, finishLine(), #4/6 drop condition which is always true 2016-11-19 13:59:15 +01:00
rlar f9e86cf1ee subckt.c, finishLine(), #3/6 drop condition which is always false 2016-11-19 13:59:05 +01:00
rlar 8b6a28789b subckt.c, finishLine(), #2/6 duplicate code into if/else body 2016-11-19 13:58:55 +01:00
rlar 3a79933d9c subckt.c, finishline(), #1/6 minor cleanup 2016-11-19 13:58:41 +01:00
rlar 2852776482 subckt.c, cleanup while() loop 2016-11-19 10:35:31 +01:00
rlar 0982953fca use strchr() instead of strstr() 2016-11-19 10:35:27 +01:00
h_vogt bcf0f3c76e inpcom.c, improved method for detecting model names 2016-11-13 18:11:11 +01:00
h_vogt 00d88d28ce prevent crash if files for debug-out could not be opened,
e.g. due to missing permission
2016-11-12 17:28:56 +01:00
h_vogt bb868c74ed CIDER, use controlled_exit(1) instead of exit(1) 2016-11-12 15:24:15 +01:00
h_vogt 53555373dd inpcom.c, suppress warning on missing model for lines like
C n1 n2 c=10p
2016-11-12 15:19:04 +01:00
rlar 4a9bb398c8 mop up commit "rewrite scope business,..." 2016-11-12 13:19:58 +01:00
rlar 5e6c6371a3 rewrite scope business,
use a tree structure to represent scopeing,
  instead of edge enumeration.

drop a check for "suitable" subckt,
  the scope dictates which .subckt is refered to.

drop a check for redefinition in numparm,
  numparm is definitly defect, it doesn't know about "scope"
The check did only check for some specific situations.

todo:
-  use the scope datastructure in numparm and subckt.c too
-  free the scope datastructure
2016-11-09 18:40:05 +01:00
rlar cdc1e16086 another fix for OMP 2016-11-06 20:27:25 +01:00
rlar 8094ec4948 nonsense, Revert "fix omp" 2016-11-06 20:19:35 +01:00
rlar 088a13e59f fix omp 2016-11-06 19:29:03 +01:00
rlar ae857bf967 fix warnings due to commit "add xspice digital model d_lut" 2016-11-06 12:11:57 +01:00
rlar a8f2baad19 fix commit "inpcom.c, inp_add_levels(), add level info to each line in deck"
levelinfo is not properly initialized when function inp_add_levels()
  is called more than once.
2016-11-06 11:55:05 +01:00
h_vogt 3a36ab15bf spinit.in, distinguish between shared and normal mode 2016-11-05 20:32:59 +01:00
rlar 9b80badbd0 cleanup rem_tlist() 2016-11-05 20:32:59 +01:00
rlar 709512f733 drop set_tlist, minimize usage of globals modtlist and devtlist 2016-11-05 20:32:59 +01:00
rlar 9f66aca9d4 tail, better in CKTcircuit, oh no, needs to access symboltab 2016-11-05 20:32:59 +01:00
rlar 435a32152d not exactly the same 2016-11-05 20:32:59 +01:00
rlar 46b971aef9 drop condition 'expr_w_temper' when used with devtlist and modtlist
The actual condition is (devtlist || modtlist)
yet functions
  inp_parse_temper_trees()
  inp_evaluate_temper()
can cope with that anyway.
2016-11-05 20:32:59 +01:00
rlar cd6fdbf380 remove excessive inp_evaluate_temper() prototypes 2016-11-05 20:32:59 +01:00
rlar c8ce9d963d inp.c, rem_tlist(), cleanup 2016-11-05 20:32:58 +01:00
h_vogt 3a27cb43ba inp.c, add loop to remove linked lists devtlist, modtlist 2016-11-05 20:32:58 +01:00
rlar d69179ce5e try to fix rem_tlist()
Note:
  struct INPparseTree is an overlay of struct IFparseTree
  very ugly.
2016-11-05 20:32:58 +01:00
h_vogt c9517c397b lists struct pt_temper *modtlist and struct pt_temper *devtlist
contain parse trees handling TEMPER equations in model or instance lines.
Create new lists  upon entering inp_parse_temper().
Save pointers to lists in current circuit ft_curckt.
Upon changing circuit, reload lists from ft_curckt.
Upon removing current circuit, delete lists.
2016-11-05 20:32:58 +01:00
h_vogt ef21363e4f sharedspice.c, remove line create_circbyline(NULL);, breaks compatibility
partial revert of
inp.c, sharedspice.c, enable adding scripts by 'circbyline'
2016-11-05 20:32:58 +01:00
h_vogt a161d4303b ivars.c, return of env_overr is bool, free var. temp 2016-11-05 20:32:58 +01:00
h_vogt db5a9c9997 configure.ac, src/Makefile.am, add --enable-relpath to set preprocessor flag HAS_RELPATH 2016-11-05 20:32:58 +01:00
h_vogt f3c1536865 configure.ac, src/Makefile.am, add libtool versioning for shared library 2016-11-05 20:32:58 +01:00
h_vogt c40ef5758e compile_shared.sh, compile instruction for shared ngspice library, release version 2016-11-05 20:32:57 +01:00
rlar 77d195dbac subckt.c, numnodes(), #3/3 cleanup 2016-11-05 20:32:57 +01:00
rlar 94d8ca2c41 subckt.c, numnodes(), #2/2 cleanup 2016-11-05 20:32:57 +01:00
rlar 4bd446096e subckt.c, numnodes(), cleanup 2016-11-05 20:32:57 +01:00
rlar 0caf879ea6 drop 'depreciated_skip..()' 2016-11-05 20:32:57 +01:00
rlar ee0c63c31b 'const'ify some 'skip'ing functions 2016-11-05 20:32:57 +01:00
rlar fa63b66c81 rename gettok_nc() --> nexttok(), and functionalize it 2016-11-05 20:32:57 +01:00
h_vogt 6f10c9f818 cpitf.c; allow spaces in paths like "Program Files" as search path for spinit if in MS Windows 2016-11-05 20:32:57 +01:00
h_vogt 064b2f790c main.c, add USERPROFILE to search path for .spiceinit
search sequence: current directory, HOME, USERPROFILE
2016-11-05 20:32:56 +01:00
h_vogt c981893873 ivars.c, add flag HAS_RELPATH, obtain the absolut location of ngspice.dll and set a path for spinit relative to that location 2016-11-05 20:32:56 +01:00
h_vogt 896064c8b4 cpitf.c, sharedspice.c, add debug output by defining OUTDEBUG preprocessor flag 2016-11-05 20:32:56 +01:00
h_vogt e086e60868 sharedspice.c, read initialization file .spiceinit
search sequence: current diretory, HOME environment, USERPROFILE environmet
2016-11-05 20:32:56 +01:00
h_vogt f5c8c4eb26 use only a single spinit file for installation (spinit_orig) 2016-11-05 20:32:56 +01:00