1 #include <../../nrnconf.h>
18 #define con(arg1, arg2, arg3) \
20 if (t & (~(arg2 | arg3))) { \
21 Fprintf(stderr, "%s is a %s\n", s->name, arg1); \
33 int type =
s->nrntype;
37 if (!(usage &
FUNCT)) {
78 diag(
s->name,
" used as both variable and function");
84 "Error: %s used as both variable and function in file %s\n",
91 if (!(
vectorize && strcmp(
s->name,
"v") == 0)) {
92 Fprintf(stderr,
"Warning: %s undefined. (declared within VERBATIM?)\n",
s->name);
97 diag(
"multiple uses for same variable", (
char*) 0);
100 diag(
"Independent variable is not defined", (
char*) 0);
104 if ((
s->subtype &
STAT) && (
s->name[0] ==
'D')) {
106 if (s1 &&
s->type == NAME && (
s->subtype &
STAT)) {
107 fprintf(stderr,
"%s is a STATE so %s is a %s' and", s1->
name,
s->name, s1->
name);
108 diag(
" cannot be declared as a STATE\n", (
char*) 0);
char finname[NRN_BUFSIZE]
Symbol * lookup(const char *)
#define con(arg1, arg2, arg3)
int is_var_declared_as_function(Symbol *s)
Check if variable declared in NEURON block is conflicting with a PROCEDURE or FUNCTION.
NMODL parser global flags / functions.
int Fprintf(FILE *stream, const char *fmt, Args... args)