diff options
author | obrien <obrien@FreeBSD.org> | 2000-01-16 10:01:07 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-01-16 10:01:07 +0000 |
commit | 9657c835ffcf45e0a6d46f291505b0b112f8a244 (patch) | |
tree | 5d5d9173806480632c39d4481d45259688119985 /contrib/bc/dc/string.c | |
parent | 0ec6169bea8adb8ddbf8f9ce363f6e1803f88621 (diff) | |
download | FreeBSD-src-9657c835ffcf45e0a6d46f291505b0b112f8a244.zip FreeBSD-src-9657c835ffcf45e0a6d46f291505b0b112f8a244.tar.gz |
Import GNU bc 1.05a.
Diffstat (limited to 'contrib/bc/dc/string.c')
-rw-r--r-- | contrib/bc/dc/string.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/bc/dc/string.c b/contrib/bc/dc/string.c index 35bc263..6cffffd 100644 --- a/contrib/bc/dc/string.c +++ b/contrib/bc/dc/string.c @@ -1,7 +1,7 @@ /* * implement string functions for dc * - * 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 @@ -92,13 +92,13 @@ dc_free_str DC_DECLARG((value)) void dc_out_str DC_DECLARG((value, newline, discard_flag)) dc_str value DC_DECLSEP - dc_boolean newline DC_DECLSEP - dc_boolean discard_flag DC_DECLEND + dc_newline newline DC_DECLSEP + dc_discard discard_flag DC_DECLEND { fwrite(value->s_ptr, value->s_len, sizeof *value->s_ptr, stdout); - if (newline == DC_TRUE) - printf("\n"); - if (discard_flag == DC_TRUE) + if (newline == DC_WITHNL) + putchar('\n'); + if (discard_flag == DC_TOSS) dc_free_str(&value); } |