summaryrefslogtreecommitdiffstats
path: root/contrib/bc/dc/misc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-16 10:01:07 +0000
committerobrien <obrien@FreeBSD.org>2000-01-16 10:01:07 +0000
commit9657c835ffcf45e0a6d46f291505b0b112f8a244 (patch)
tree5d5d9173806480632c39d4481d45259688119985 /contrib/bc/dc/misc.c
parent0ec6169bea8adb8ddbf8f9ce363f6e1803f88621 (diff)
downloadFreeBSD-src-9657c835ffcf45e0a6d46f291505b0b112f8a244.zip
FreeBSD-src-9657c835ffcf45e0a6d46f291505b0b112f8a244.tar.gz
Import GNU bc 1.05a.
Diffstat (limited to 'contrib/bc/dc/misc.c')
-rw-r--r--contrib/bc/dc/misc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/bc/dc/misc.c b/contrib/bc/dc/misc.c
index 8c360ca..65f986b 100644
--- a/contrib/bc/dc/misc.c
+++ b/contrib/bc/dc/misc.c
@@ -1,7 +1,7 @@
/*
* misc. functions for the "dc" Desk Calculator language.
*
- * Copyright (C) 1994, 1997 Free Software Foundation, Inc.
+ * Copyright (C) 1994, 1997, 1998 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -150,14 +150,16 @@ dc_system DC_DECLARG((s))
/* print out the indicated value */
void
-dc_print DC_DECLARG((value, obase))
+dc_print DC_DECLARG((value, obase, newline_p, discard_p))
dc_data value DC_DECLSEP
- int obase DC_DECLEND
+ int obase DC_DECLSEP
+ dc_newline newline_p DC_DECLSEP
+ dc_discard discard_p DC_DECLEND
{
if (value.dc_type == DC_NUMBER) {
- dc_out_num(value.v.number, obase, DC_TRUE, DC_FALSE);
+ dc_out_num(value.v.number, obase, newline_p, discard_p);
} else if (value.dc_type == DC_STRING) {
- dc_out_str(value.v.string, DC_TRUE, DC_FALSE);
+ dc_out_str(value.v.string, newline_p, discard_p);
} else {
dc_garbage("in data being printed", -1);
}
OpenPOWER on IntegriCloud