OpenBSD CVS

CVS log for src/usr.bin/dc/inout.c


[BACK] Up to [local] / src / usr.bin / dc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:10 2023 UTC (14 months, 1 week ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 10 04:39:16 2021 UTC (2 years, 6 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.21: +13 -11 lines
Diff to previous 1.21 (colored)

Move two BIGNUMs in printnumber() from the stack to the heap to
prepare bc(1) and dc(1) for opaque BIGNUMs.

"looks sane" otto

Revision 1.21 / (download) - annotate - [select for diffs], Wed Nov 29 19:12:48 2017 UTC (6 years, 5 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.20: +3 -11 lines
Diff to previous 1.20 (colored)

simplify print_ascii; from kshe; ok tom@

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 26 11:29:55 2017 UTC (7 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Move away from BN_zero, the one returning an int is deprecated and the
new one is a void function. From Daniel Cegielka.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 16 20:53:34 2015 UTC (9 years, 3 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

Include bn.h and err.h from <openssl/...>, not the old <ssl/...> location.

Remove unneeded ssl.h includes.  Also built-checked against openssl-1.0.1e.

ok otto@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 1 13:13:00 2014 UTC (9 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

more opportunity to use reallocarray(); ok otto

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 7 11:06:14 2012 UTC (11 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

fix fractional number exponentiation, especially for negative exponents

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 6 16:00:05 2012 UTC (11 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

use BN_set_negative() and BN_is_negative() instead of subtracting or
comparing to zero

Revision 1.15 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:37 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.14: +1 -5 lines
Diff to previous 1.14 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jan 15 19:11:59 2006 UTC (18 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.13: +24 -28 lines
Diff to previous 1.13 (colored)

delint wrt return values, including some missing BN return
values checks.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Dec 14 08:10:02 2005 UTC (18 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.12: +8 -2 lines
Diff to previous 1.12 (colored)

Fix parsing  of non-decimal fractions, which was giving bogus results.
Noted by Zvezdan Petkovic in PR 4940.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 29 10:53:54 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.11: +22 -8 lines
Diff to previous 1.11 (colored)

Nicer wrapping. We used to mimick the old dc(1), which prints
...\<newline><newline> in some cases. ok deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 28 19:19:36 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Linefeed is part of a line according to POSIX, so take that into account
when computing line wraps. ok deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Mar 27 18:10:42 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

Use inclusive bound check for line length, it is more clear.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 15 10:28:38 2005 UTC (19 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

snprintf(buf, sizeof(buf), "%s", p) is silly, use strlcpy(). From Bruno Rohee.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 14 20:18:47 2003 UTC (20 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

The BN_add_word() bug has been squashed, so we don't need a workaround
any more.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 22 12:03:54 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.6: +10 -5 lines
Diff to previous 1.6 (colored)

Make ungetting a char read form a string behave the same as ungetting
a char from a stream.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Oct 18 20:34:26 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

err(1, "out of mem") -> err(1, NULL)

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 30 18:33:35 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.4: +22 -13 lines
Diff to previous 1.4 (colored)

Teach dc(1) how to read strings with unbalanced braces by introducing
backslash as an escape char. This is needed for bc(1), which is
required by Posix to handle strings with brackets in them.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 28 19:29:32 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.3: +6 -5 lines
Diff to previous 1.3 (colored)

realloc cleanup

Revision 1.3 / (download) - annotate - [select for diffs], Fri Sep 19 19:06:29 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

blanks

Revision 1.2 / (download) - annotate - [select for diffs], Fri Sep 19 19:00:36 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

spaces

Revision 1.1 / (download) - annotate - [select for diffs], Fri Sep 19 17:58:25 2003 UTC (20 years, 8 months ago) by otto
Branch: MAIN

A complete, BSD licensed rewrite of dc(1), using the bn(3) big number routines.

ok toby@ deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.