Commit Graph

84 Commits

Author SHA1 Message Date
Holger Vogt 617ed01a5b licensi info:
Public Domain

Georgia Tech Research Corporation
Atlanta, Georgia 30332
PROJECT A-8503
2020-10-10 12:21:10 +02:00
Holger Vogt 8051a3c351 remove calling MIFdestroy() that is empty 2020-08-20 15:19:49 +02:00
Holger Vogt 6f03ac77af add missing library info 2020-05-08 00:00:12 +02:00
Holger Vogt 3c2bece87f prevent MINGW compiler warnings 2020-05-01 18:38:45 +02:00
dwarning f19da3bd79 case correction for library name 2020-04-04 14:18:38 +02:00
Holger Vogt c076c932b4 enable MINGW linking to -lShlwapi,
which failed during making 32 bit shared lib
2020-04-04 14:17:54 +02:00
Holger Vogt 5e76758e57 update to cmpp by J. Monte 2020-03-15 08:51:02 +01:00
Jim Monte 955dda749d Jim Monte's update to cmpp 2020-03-15 08:51:02 +01:00
Jim Monte b967caaabb File path built more efficiently and now allows an arbitrary length. Prevented strdup() of NULL if path too long. Similarly prevented fopen with a NULL file name. Added function to determine Windows absolute paths properly. Fixed numerous issues that were caused by including Windows system header due to conflicting names. Generally a CMPP_ prefix was added as a "namespace". Also used the standard C bool type instead of defining one. 2020-03-15 08:51:01 +01:00
Jim Monte 7990a82f02 Formatting and comments added 2020-03-15 08:51:01 +01:00
Jim Monte 3a2a05f7b0 Removed unnecessary comparisons when lowercasing a string. 2020-03-15 08:51:01 +01:00
Holger Vogt 9452121954 Remove memory leaks in cmpp.
Two small ones (a few bytes) are still there, difficult to assess.
2020-03-15 08:50:51 +01:00
dwarning 390d0bddd9 Dereferencing of the null pointer 'p' might take place. Remove unused variable. 2018-12-17 22:58:30 +01:00
rlar cd1bbf2003 rewrite, use designated initializer for SPICEdev initialisation 2018-02-21 20:02:00 +01:00
rlar 58874cc65e xspice, implement "CALLBACK"
Allow to register a callback function in the cfunc.mod files,
  which will be invoked in MIFdestroy.
Usefull to "free" memory which has been allocated locally in a cfunc.mod file.
2017-04-12 20:02:35 +02:00
rlar 994bec7859 declare free() / realloc() arguments `const void *'
to avoid extra casting when freeing `const' strings
2016-07-17 11:19:34 +02:00
rlar 1aab43dd1a xspice/cmpp/*.l, flex file cleanup and use %option noinput, nounput 2016-04-01 19:36:51 +02:00
rlar 0932120a7f special cases of the char variants of the <ctype.h> family 2016-03-09 20:24:36 +01:00
rlar 726d0be34c use char variants of the <ctype.h> toxxxx() family 2016-03-09 20:24:36 +01:00
rlar 71a7c3459b use char variants of the <ctype.h> isxxxx() family 2016-03-09 20:24:36 +01:00
rlar d0c5a495ca ngspice.h, cm.h, cmpp.h, introduce char variants of the <ctype.h> family 2016-03-09 20:24:36 +01:00
h_vogt 51bc944def xspice/cmpp, compatibility with MS Visual Studio 2016-02-07 17:45:43 +01:00
rlar 0c0bc4079f configure.ac, allow cross-compilation, especially for MinGW-w64
notably on debian gnu/linux with package `mingw-w64'
cross-compile a mingw 32bit windows executable with this incantation:

(compile "
  ./autogen.sh
  rm -rf tmp-build tmp-output
  mkdir -p tmp-build tmp-output
  ( cd tmp-build && ../configure \
      --build=$(../config.guess) \
      --host=i686-w64-mingw32 \
      --prefix='c:/spice' \
      --exec-prefix='c:/spice'\
      --with-windows --enable-xspice --enable-cider --disable-debug )
  LC_ALL=C make -C tmp-build -k -j6
  LC_ALL=C make -C tmp-build -k -j6 DESTDIR=$(pwd)/tmp-output/ install
  (cd 'tmp-output/c:/' && zip -r - .) > tmp-output.zip
")

compilation to Win64 works the same way, with
      --host=x86_64-w64-mingw32

The tmp-output.zip directory structure resembles the
  structure of our original sourceforge ngspice-26_140112.zip windows package
ready to be unzip'ed in c:/

Though the testfiles, examples and documentation is missing.
2015-07-06 21:08:05 +02:00
rlar 1c6efd9481 polish bison/flex makefile rules 2015-07-05 20:25:23 +02:00
rlar 9be4f753e6 remove redundant src/xspice/cmpp/ylwrap 2015-07-04 10:48:22 +02:00
rlar 7bc6374138 cleanup, use '\0' instead of 0 in char context 2015-05-02 10:24:54 +02:00
rlar 19e427e3a5 cleanup, use NULL instead of 0 in pointer context 2015-05-02 10:24:49 +02:00
rlar cca5971739 ifs_yacc.y, record various errors and account for them when ifs_yyparse() returns 2014-05-11 20:12:38 +02:00
dwarning bf9ad0bdfd introduce new SPICEdev operation `DEVsoaCheck()' 2014-01-02 09:32:32 +01:00
rlar 6260fd16ec cmpp, rewrite for proper report of error locations 2012-12-01 22:46:53 +01:00
rlar 348e3976e7 cmpp, use <stdarg.h> for print_error() 2012-12-01 22:39:21 +01:00
rlar 6757c48602 cmpp, remove dead code 2012-12-01 22:29:32 +01:00
rlar d9590f31c3 cmpp, don't exit(0) when reporting an error 2012-12-01 22:29:29 +01:00
rlar 843126d9a6 fix `make dist' 2012-11-16 22:29:55 +01:00
Francesco Lannutti 08ec219417 remove all .cvsignore files 2012-10-26 18:30:14 +02:00
rlar 3d34b22ebf fix file modes 2012-06-12 21:26:29 +02:00
rlar 9f017ea557 .gitignore files 2012-02-26 16:19:58 +01:00
rlar d6e616a310 remove CVS `Id',`log' etc. keyword incantations 2011-12-17 18:35:11 +00:00
rlar 4e3cc188d9 #2/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:12:36 +00:00
rlar 028915d9ae #5/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:47:44 +00:00
rlar b6aef04d26 allow '//' comments in xspice code models 2011-08-07 10:04:35 +00:00
rlar 0d12371e7d minor bug fix, use EOF 2011-07-01 16:08:03 +00:00
rlar da31886723 rename variable private --> mif_private 2011-05-08 08:48:43 +00:00
dwarning cded776aa6 few build changes 2011-05-07 08:01:22 +00:00
rlar 23ba264cd3 rename variable class --> ctype_class 2011-05-01 19:46:53 +00:00
rlar f7f4bfe70f bug fix, when `show' a xspice spice2poly device (acgains) 2011-02-11 19:16:48 +00:00
rlar 3fec598934 prepare the xspice cmpp processor for build in a separate directory 2011-01-25 17:39:23 +00:00
rlar d0dba768f8 change the type of a bunch of variables from `int' to `size_t' 2010-11-06 20:11:24 +00:00
rlar 6e3bbd49ae casts, to make int <-> char conversions explicit 2010-11-02 17:31:19 +00:00
rlar b4ffca60c4 (int) casts for some `strlen()' expressions 2010-11-02 17:17:43 +00:00