[BusyBox-cvs] CVS update of busybox/miscutils (dc.c)
Glenn McGrath
bug1 at codepoet.org
Sat Jul 24 06:01:53 UTC 2004
Date: Saturday, July 24, 2004 @ 00:01:53
Author: bug1
Path: /var/cvs/busybox/miscutils
Modified: dc.c (1.18 -> 1.19)
Patch by Paul Whittaker, make busybox dc compatable with GNU dc.
the following example was broken, echo "1 1 +" | dc
Index: busybox/miscutils/dc.c
diff -u busybox/miscutils/dc.c:1.18 busybox/miscutils/dc.c:1.19
--- busybox/miscutils/dc.c:1.18 Mon Mar 15 01:28:46 2004
+++ busybox/miscutils/dc.c Sat Jul 24 00:01:52 2004
@@ -114,11 +114,6 @@
print_base(stack[pointer-1]);
}
-static void print(void)
-{
- print_base(pop());
-}
-
struct op {
const char *name;
void (*function) (void);
@@ -155,10 +150,8 @@
double d;
const struct op *o = operators;
- if (argument == 0) {
- print();
+ if (argument == 0)
return;
- }
d = strtod(argument, &endPointer);
More information about the busybox-cvs
mailing list