summaryrefslogtreecommitdiffhomepage
path: root/miscutils/dc.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:14:24 +0100
commitfb4da167114e96d7f20ef97474f976f8ffa604e7 (patch)
tree6f688202bc89ffa68b6679d1b252fd69b7471c94 /miscutils/dc.c
parent9f8eb1ee7620020e01b3596ac7259d51ebca7a7b (diff)
Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/dc.c')
-rw-r--r--miscutils/dc.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 4d92bc3d0..2b77cd614 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -2,10 +2,20 @@
/*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
-
-#include "libbb.h"
-#include "common_bufsiz.h"
-#include <math.h>
+//config:config DC
+//config: bool "dc"
+//config: default y
+//config: help
+//config: Dc is a reverse-polish desk calculator which supports unlimited
+//config: precision arithmetic.
+//config:
+//config:config FEATURE_DC_LIBM
+//config: bool "Enable power and exp functions (requires libm)"
+//config: default y
+//config: depends on DC
+//config: help
+//config: Enable power and exp functions.
+//config: NOTE: This will require libm to be present for linking.
//usage:#define dc_trivial_usage
//usage: "EXPRESSION..."
@@ -30,6 +40,10 @@
//usage: "$ echo 72 9 div 8 mul p | dc\n"
//usage: "64\n"
+#include "libbb.h"
+#include "common_bufsiz.h"
+#include <math.h>
+
#if 0
typedef unsigned data_t;
#define DATA_FMT ""