CVS commit: src/external/bsd/bc/dist

2022-05-26 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Thu May 26 08:06:58 UTC 2022

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
Literal backslashes need to be quoted for roff.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/bsd/bc/dist/bc.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/bc/dist/bc.1
diff -u src/external/bsd/bc/dist/bc.1:1.10 src/external/bsd/bc/dist/bc.1:1.11
--- src/external/bsd/bc/dist/bc.1:1.10	Fri Jan  8 01:17:55 2021
+++ src/external/bsd/bc/dist/bc.1	Thu May 26 08:06:58 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: bc.1,v 1.10 2021/01/08 01:17:55 uwe Exp $
+.\" $NetBSD: bc.1,v 1.11 2022/05/26 08:06:58 mlelstv Exp $
 .\"
 .\" bc.1 - the bc manual
 .\"
@@ -913,8 +913,8 @@ is placed between the key word
 and the function name.
 For example, consider the following session.
 .Bd -literal -offset indent
-define py (y) { print "--->", y, "<---", "\n"; }
-define void px (x) { print "--->", x, "<---", "\n"; }
+define py (y) { print "--->", y, "<---", "\en"; }
+define void px (x) { print "--->", x, "<---", "\en"; }
 py(1)
 --->1<---
 0



CVS commit: src/external/bsd/bc/dist

2022-05-26 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Thu May 26 08:06:58 UTC 2022

Modified Files:
src/external/bsd/bc/dist: bc.1

Log Message:
Literal backslashes need to be quoted for roff.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/bsd/bc/dist/bc.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/external/bsd/bc/dist

2017-04-10 Thread Phil Nelson
On Monday 10 April 2017 02:26:50 co...@sdf.org wrote:
> -DIGIT [0-9A-F]
> +DIGIT [0-9A-Z]
> 
> Looks off, is that intended?

$ ./bc
ibase
10
obase
10
ibase = Z+1
ibase
36

1679615
obase = Z+1
obase
 01 00

 35 35 35 35
1Z36AQ16836
 01 35 03 06 10 26 01 06 08 03 06
quit

The real question is outputting stuff in base 36 should also use G-Z, but that
might need to be a flag to bc because that breaks POSIX output.  Allowing
base 36 inputs doesn't cause problems with existing programs.

--Phil




Re: CVS commit: src/external/bsd/bc/dist

2017-04-10 Thread coypu
joerg mentions you can get around the dummy returns/breaks after bc_exit
to quiet compiler warnings by tagging it dead


Re: CVS commit: src/external/bsd/bc/dist

2017-04-10 Thread coypu
Hi,

-DIGIT [0-9A-F]
+DIGIT [0-9A-Z]

Looks off, is that intended?

Thanks.