You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
773 B
30 lines
773 B
#include "ngspice/ngspice.h" /* for wl */
|
|
#include "ngspice/ftedefs.h"
|
|
#include "ngspice/devdefs.h" /* solve deps in dev.h*/
|
|
#include "../spicelib/devices/dev.h" /* for load library commands */
|
|
#include "com_dl.h"
|
|
|
|
|
|
#ifdef XSPICE
|
|
void com_codemodel(wordlist *wl)
|
|
{
|
|
wordlist *ww;
|
|
for (ww = wl; ww; ww = ww->wl_next)
|
|
if (load_opus(wl->wl_word)) {
|
|
fprintf(cp_err, "Error: Library %s couldn't be loaded!\n", ww->wl_word);
|
|
if (ft_stricterror)
|
|
controlled_exit(EXIT_BAD);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifdef DEVLIB
|
|
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);
|
|
}
|
|
#endif
|