2011-12-11 19:05:00 +01:00
|
|
|
#include "ngspice/ngspice.h" /* for wl */
|
|
|
|
|
#include "ngspice/ftedefs.h"
|
|
|
|
|
#include "ngspice/devdefs.h" /* solve deps in dev.h*/
|
2012-11-05 21:34:54 +01:00
|
|
|
#include "../spicelib/devices/dev.h" /* for load library commands */
|
2010-07-30 18:09:38 +02:00
|
|
|
#include "com_dl.h"
|
2003-07-23 22:06:10 +02:00
|
|
|
|
2012-09-20 20:30:53 +02:00
|
|
|
|
2003-07-23 22:06:10 +02:00
|
|
|
#ifdef XSPICE
|
2012-09-20 20:30:53 +02:00
|
|
|
void com_codemodel(wordlist *wl)
|
|
|
|
|
{
|
|
|
|
|
wordlist *ww;
|
|
|
|
|
for (ww = wl; ww; ww = ww->wl_next)
|
2012-12-30 15:32:44 +01:00
|
|
|
if (load_opus(wl->wl_word)) {
|
2012-09-20 20:30:53 +02:00
|
|
|
fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word);
|
2012-12-30 15:32:44 +01:00
|
|
|
if (ft_stricterror)
|
|
|
|
|
controlled_exit(EXIT_BAD);
|
|
|
|
|
}
|
2003-07-23 22:06:10 +02:00
|
|
|
}
|
|
|
|
|
#endif
|
2012-09-20 20:30:53 +02:00
|
|
|
|
|
|
|
|
|
2003-07-23 22:06:10 +02:00
|
|
|
#ifdef DEVLIB
|
2012-09-20 20:30:53 +02:00
|
|
|
void com_use(wordlist *wl)
|
|
|
|
|
{
|
|
|
|
|
wordlist *ww;
|
|
|
|
|
for (ww = wl; ww; ww = ww->wl_next)
|
|
|
|
|
if (load_dev(wl->wl_word))
|
|
|
|
|
fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word);
|
2003-07-23 22:06:10 +02:00
|
|
|
}
|
|
|
|
|
#endif
|