aboutsummaryrefslogtreecommitdiff
path: root/dc.c
diff options
context:
space:
mode:
Diffstat (limited to 'dc.c')
-rw-r--r--dc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dc.c b/dc.c
index 0f5f1fc77..d462100a2 100644
--- a/dc.c
+++ b/dc.c
@@ -14,14 +14,14 @@ static unsigned int pointer;
14static void push(double a) 14static void push(double a)
15{ 15{
16 if (pointer >= (sizeof(stack) / sizeof(*stack))) 16 if (pointer >= (sizeof(stack) / sizeof(*stack)))
17 fatalError("stack overflow\n"); 17 error_msg_and_die("stack overflow\n");
18 stack[pointer++] = a; 18 stack[pointer++] = a;
19} 19}
20 20
21static double pop() 21static double pop()
22{ 22{
23 if (pointer == 0) 23 if (pointer == 0)
24 fatalError("stack underflow\n"); 24 error_msg_and_die("stack underflow\n");
25 return stack[--pointer]; 25 return stack[--pointer];
26} 26}
27 27
@@ -120,7 +120,7 @@ static void stack_machine(const char *argument)
120 } 120 }
121 o++; 121 o++;
122 } 122 }
123 fatalError("%s: syntax error.\n", argument); 123 error_msg_and_die("%s: syntax error.\n", argument);
124} 124}
125 125
126/* return pointer to next token in buffer and set *buffer to one char 126/* return pointer to next token in buffer and set *buffer to one char