1 #include <../../nmodlconf.h>
63 SIOUXSettings.asktosaveonclose =
false;
104 SIOUXSettings.autocloseonquit =
true;
120 extern int yytchar, yylineno;
145 }
else if (
argc == 3) {
148 diag(
"Usage:",
"modl prefixto.mod [inputfile]");
169 for (
q = q1;
q->prev != q2;
q =
q->next) {
175 switch (
q->itemtype) {
186 Fprintf(stderr,
"\nq->itemtype = %d\n",
q->itemtype);
187 diag(
"printlist handles only a few types of items", (
char*) 0);
208 switch (
q->itemtype) {
224 Fprintf(file,
"HEAD/TAIL of list\n");
239 Fprintf(file,
"ITEMARRAY %ld\n",
n);
240 for (
i = 0;
i <
n;
i++) {
245 Fprintf(file,
"NEWLINE %d\n",
q->itemsubtype);
248 Fprintf(stderr,
"\nq->itemtype = %d\n",
q->itemtype);
249 diag(
"unknown itemtype", (
char*) 0);
sprintf(buf, " if (secondorder) {\n" " int _i;\n" " for (_i = 0; _i < %d; ++_i) {\n" " _p[_slist%d[_i]] += dt*_p[_dlist%d[_i]];\n" " }}\n", numeqn, listnum, listnum)
char finname[NRN_BUFSIZE]
void printlist(List *list)
int main(int argc, char *argv[])
void printitems(Item *q1, Item *q2)
static void debug_item(Item *q, int indent, FILE *file)
void printitem(Item *q, FILE *fp)
static void openfiles(int, char **)
#define ITERATE(itm, lst)
int const size_t const size_t n
char * strstr(char *cs, char *ct)