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.