diff options
author | Pavel Roskin <proski@gnu.org> | 2000-06-22 00:17:29 +0400 |
---|---|---|
committer | Pavel Roskin <proski@gnu.org> | 2000-06-22 00:17:29 +0400 |
commit | 7ac06a3ff12b800af7b5e5e97377695a628a8856 (patch) | |
tree | c7bc3d2534b5ac5bf439f642e7606e2a5f47f06e /dc.c | |
parent | 0021679b0dc5767e0c023b28b36eeb1476dc2364 (diff) |
Removed all vestiges of "math"
Diffstat (limited to 'dc.c')
-rw-r--r-- | dc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -8,11 +8,11 @@ /* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ -static const char dc_usage[] = "math expression ...\n" +static const char dc_usage[] = "dc expression ...\n" #ifndef BB_FEATURE_TRIVIAL_HELP "\nThis is a Tiny RPN calculator that understands the\n" "following operations: +, -, /, *, and, or, not, eor.\n" - "i.e. 'math 2 2 add' -> 4, and 'math 8 8 \\* 2 2 + /' -> 16\n" + "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n" #endif ; @@ -22,7 +22,7 @@ static unsigned int pointer; static void push(double a) { if (pointer >= (sizeof(stack) / sizeof(*stack))) { - fprintf(stderr, "math: stack overflow\n"); + fprintf(stderr, "dc: stack overflow\n"); exit(-1); } else stack[pointer++] = a; @@ -31,7 +31,7 @@ static void push(double a) static double pop() { if (pointer == 0) { - fprintf(stderr, "math: stack underflow\n"); + fprintf(stderr, "dc: stack underflow\n"); exit(-1); } return stack[--pointer]; @@ -132,7 +132,7 @@ static void stack_machine(const char *argument) } o++; } - fprintf(stderr, "math: %s: syntax error.\n", argument); + fprintf(stderr, "dc: %s: syntax error.\n", argument); exit(-1); } |