← Commit list

7991ad172

Glenn L McGrath
Glenn L McGrath
2004-07-24
FAILED Duration: 52s

Subject

Patch by Paul Whittaker, make busybox dc compatable with GNU dc. the following example was broken, echo "1 1 +" | dc

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/dc.c+1 -8
@@ -114,11 +114,6 @@ static void print_no_pop(void)
print_base(stack[pointer-1]);
}
-static void print(void)
-{
- print_base(pop());
-}
-
struct op {
const char *name;
void (*function) (void);
@@ -155,10 +150,8 @@ static void stack_machine(const char *argument)
double d;
const struct op *o = operators;
- if (argument == 0) {
- print();
+ if (argument == 0)
return;
- }
d = strtod(argument, &endPointer);