[Toybox] why isn't bc_lib a string?

Gavin Howard gavin.d.howard at gmail.com
Fri Feb 1 13:36:11 PST 2019


Because C puts a limit on the size of string literals before it
becomes undefined behavior.

You can rest assured that it is correct; I have tested it well.

Gavin Howard

On Fri, Feb 1, 2019 at 2:27 PM enh via Toybox <toybox at lists.landley.net> wrote:
>
> the current bc_lib[] seems like an oddly unreadable/undebuggable way to write
>
> scale=20
> define e(x){
> auto b,s,n,r,d,i,p,f,v
> b=ibase
> ibase=A
> if(x<0){
> n=1
> x=-x
> }
> s=scale
> r=6+s+.44*x
> ...
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net



More information about the Toybox mailing list