static void push(double a)
{
if (pointer >= (sizeof(stack) / sizeof(*stack)))
- fatalError("stack overflow\n");
+ error_msg_and_die("stack overflow");
stack[pointer++] = a;
}
static double pop()
{
if (pointer == 0)
- fatalError("stack underflow\n");
+ error_msg_and_die("stack underflow");
return stack[--pointer];
}
}
o++;
}
- fatalError("%s: syntax error.\n", argument);
+ error_msg_and_die("%s: syntax error.", argument);
}
/* return pointer to next token in buffer and set *buffer to one char