aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2000-06-21 20:17:29 +0000
committerPavel Roskin <proski@gnu.org>2000-06-21 20:17:29 +0000
commit7ac06a3ff12b800af7b5e5e97377695a628a8856 (patch)
treec7bc3d2534b5ac5bf439f642e7606e2a5f47f06e
parent0021679b0dc5767e0c023b28b36eeb1476dc2364 (diff)
downloadbusybox-w32-7ac06a3ff12b800af7b5e5e97377695a628a8856.tar.gz
busybox-w32-7ac06a3ff12b800af7b5e5e97377695a628a8856.tar.bz2
busybox-w32-7ac06a3ff12b800af7b5e5e97377695a628a8856.zip
Removed all vestiges of "math"
-rw-r--r--applets/busybox.c3
-rw-r--r--busybox.c3
-rw-r--r--dc.c10
-rw-r--r--docs/busybox.pod8
-rw-r--r--internal.h1
-rw-r--r--miscutils/dc.c10
6 files changed, 14 insertions, 21 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 221ef2a65..84629d218 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -189,9 +189,6 @@ const struct BB_applet applets[] = {
189#ifdef BB_MAKEDEVS 189#ifdef BB_MAKEDEVS
190 {"makedevs", makedevs_main, _BB_DIR_SBIN}, 190 {"makedevs", makedevs_main, _BB_DIR_SBIN},
191#endif 191#endif
192#ifdef BB_MATH
193 {"math", math_main, _BB_DIR_USR_BIN},
194#endif
195#ifdef BB_MD5SUM 192#ifdef BB_MD5SUM
196 {"md5sum", md5sum_main, _BB_DIR_USR_BIN}, 193 {"md5sum", md5sum_main, _BB_DIR_USR_BIN},
197#endif 194#endif
diff --git a/busybox.c b/busybox.c
index 221ef2a65..84629d218 100644
--- a/busybox.c
+++ b/busybox.c
@@ -189,9 +189,6 @@ const struct BB_applet applets[] = {
189#ifdef BB_MAKEDEVS 189#ifdef BB_MAKEDEVS
190 {"makedevs", makedevs_main, _BB_DIR_SBIN}, 190 {"makedevs", makedevs_main, _BB_DIR_SBIN},
191#endif 191#endif
192#ifdef BB_MATH
193 {"math", math_main, _BB_DIR_USR_BIN},
194#endif
195#ifdef BB_MD5SUM 192#ifdef BB_MD5SUM
196 {"md5sum", md5sum_main, _BB_DIR_USR_BIN}, 193 {"md5sum", md5sum_main, _BB_DIR_USR_BIN},
197#endif 194#endif
diff --git a/dc.c b/dc.c
index 37c7731d2..31a5471c3 100644
--- a/dc.c
+++ b/dc.c
@@ -8,11 +8,11 @@
8 8
9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ 9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */
10 10
11static const char dc_usage[] = "math expression ...\n" 11static const char dc_usage[] = "dc expression ...\n"
12#ifndef BB_FEATURE_TRIVIAL_HELP 12#ifndef BB_FEATURE_TRIVIAL_HELP
13 "\nThis is a Tiny RPN calculator that understands the\n" 13 "\nThis is a Tiny RPN calculator that understands the\n"
14 "following operations: +, -, /, *, and, or, not, eor.\n" 14 "following operations: +, -, /, *, and, or, not, eor.\n"
15 "i.e. 'math 2 2 add' -> 4, and 'math 8 8 \\* 2 2 + /' -> 16\n" 15 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
16#endif 16#endif
17 ; 17 ;
18 18
@@ -22,7 +22,7 @@ static unsigned int pointer;
22static void push(double a) 22static void push(double a)
23{ 23{
24 if (pointer >= (sizeof(stack) / sizeof(*stack))) { 24 if (pointer >= (sizeof(stack) / sizeof(*stack))) {
25 fprintf(stderr, "math: stack overflow\n"); 25 fprintf(stderr, "dc: stack overflow\n");
26 exit(-1); 26 exit(-1);
27 } else 27 } else
28 stack[pointer++] = a; 28 stack[pointer++] = a;
@@ -31,7 +31,7 @@ static void push(double a)
31static double pop() 31static double pop()
32{ 32{
33 if (pointer == 0) { 33 if (pointer == 0) {
34 fprintf(stderr, "math: stack underflow\n"); 34 fprintf(stderr, "dc: stack underflow\n");
35 exit(-1); 35 exit(-1);
36 } 36 }
37 return stack[--pointer]; 37 return stack[--pointer];
@@ -132,7 +132,7 @@ static void stack_machine(const char *argument)
132 } 132 }
133 o++; 133 o++;
134 } 134 }
135 fprintf(stderr, "math: %s: syntax error.\n", argument); 135 fprintf(stderr, "dc: %s: syntax error.\n", argument);
136 exit(-1); 136 exit(-1);
137} 137}
138 138
diff --git a/docs/busybox.pod b/docs/busybox.pod
index 75763d33f..03749eec9 100644
--- a/docs/busybox.pod
+++ b/docs/busybox.pod
@@ -55,11 +55,11 @@ terse runtime description of their behavior.
55 55
56Currently defined functions include: 56Currently defined functions include:
57 57
58ar, basename, cat, chgrp, chmod, chown, chroot, clear, chvt, cp, cut, date, dd, 58ar, basename, cat, chgrp, chmod, chown, chroot, clear, chvt, cp, cut, date, dc,
59df, dirname, dmesg, du, dutmp, echo, false, fbset, fdflush, find, free, 59dd, df, dirname, dmesg, du, dutmp, echo, false, fbset, fdflush, find, free,
60freeramdisk, deallocvt, fsck.minix, grep, gunzip, gzip, halt, head, hostid, 60freeramdisk, deallocvt, fsck.minix, grep, gunzip, gzip, halt, head, hostid,
61hostname, id, init, kill, killall, length, ln, loadacm, loadfont, loadkmap, 61hostname, id, init, kill, killall, length, ln, loadacm, loadfont, loadkmap,
62logger, logname, ls, lsmod, makedevs, math, md5sum, mkdir, mkfifo, mkfs.minix, 62logger, logname, ls, lsmod, makedevs, md5sum, mkdir, mkfifo, mkfs.minix,
63mknod, mkswap, mktemp, nc, more, mount, mt, mv, nslookup, ping, poweroff, 63mknod, mkswap, mktemp, nc, more, mount, mt, mv, nslookup, ping, poweroff,
64printf, ps, pwd, reboot, rm, rmdir, rmmod, sed, setkeycodes, sh, sfdisk, sleep, 64printf, ps, pwd, reboot, rm, rmdir, rmmod, sed, setkeycodes, sh, sfdisk, sleep,
65sort, sync, syslogd, swapon, swapoff, tail, tar, test, tee, touch, tr, true, 65sort, sync, syslogd, swapon, swapoff, tail, tar, test, tee, touch, tr, true,
@@ -2024,4 +2024,4 @@ Enrique Zanardi <ezanardi@ull.es>
2024 2024
2025=cut 2025=cut
2026 2026
2027# $Id: busybox.pod,v 1.44 2000/06/21 19:06:16 beppu Exp $ 2027# $Id: busybox.pod,v 1.45 2000/06/21 20:17:29 proski Exp $
diff --git a/internal.h b/internal.h
index 58f68f59b..127460fc6 100644
--- a/internal.h
+++ b/internal.h
@@ -152,7 +152,6 @@ extern int logname_main(int argc, char **argv);
152extern int ls_main(int argc, char** argv); 152extern int ls_main(int argc, char** argv);
153extern int lsmod_main(int argc, char** argv); 153extern int lsmod_main(int argc, char** argv);
154extern int makedevs_main(int argc, char** argv); 154extern int makedevs_main(int argc, char** argv);
155extern int math_main(int argc, char** argv);
156extern int md5sum_main(int argc, char** argv); 155extern int md5sum_main(int argc, char** argv);
157extern int mkdir_main(int argc, char** argv); 156extern int mkdir_main(int argc, char** argv);
158extern int mkfifo_main(int argc, char **argv); 157extern int mkfifo_main(int argc, char **argv);
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 37c7731d2..31a5471c3 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -8,11 +8,11 @@
8 8
9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */ 9/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */
10 10
11static const char dc_usage[] = "math expression ...\n" 11static const char dc_usage[] = "dc expression ...\n"
12#ifndef BB_FEATURE_TRIVIAL_HELP 12#ifndef BB_FEATURE_TRIVIAL_HELP
13 "\nThis is a Tiny RPN calculator that understands the\n" 13 "\nThis is a Tiny RPN calculator that understands the\n"
14 "following operations: +, -, /, *, and, or, not, eor.\n" 14 "following operations: +, -, /, *, and, or, not, eor.\n"
15 "i.e. 'math 2 2 add' -> 4, and 'math 8 8 \\* 2 2 + /' -> 16\n" 15 "i.e. 'dc 2 2 add' -> 4, and 'dc 8 8 \\* 2 2 + /' -> 16\n"
16#endif 16#endif
17 ; 17 ;
18 18
@@ -22,7 +22,7 @@ static unsigned int pointer;
22static void push(double a) 22static void push(double a)
23{ 23{
24 if (pointer >= (sizeof(stack) / sizeof(*stack))) { 24 if (pointer >= (sizeof(stack) / sizeof(*stack))) {
25 fprintf(stderr, "math: stack overflow\n"); 25 fprintf(stderr, "dc: stack overflow\n");
26 exit(-1); 26 exit(-1);
27 } else 27 } else
28 stack[pointer++] = a; 28 stack[pointer++] = a;
@@ -31,7 +31,7 @@ static void push(double a)
31static double pop() 31static double pop()
32{ 32{
33 if (pointer == 0) { 33 if (pointer == 0) {
34 fprintf(stderr, "math: stack underflow\n"); 34 fprintf(stderr, "dc: stack underflow\n");
35 exit(-1); 35 exit(-1);
36 } 36 }
37 return stack[--pointer]; 37 return stack[--pointer];
@@ -132,7 +132,7 @@ static void stack_machine(const char *argument)
132 } 132 }
133 o++; 133 o++;
134 } 134 }
135 fprintf(stderr, "math: %s: syntax error.\n", argument); 135 fprintf(stderr, "dc: %s: syntax error.\n", argument);
136 exit(-1); 136 exit(-1);
137} 137}
138 138