Re: [Toybox] why isn't bc_lib a string?

2019-02-01 Thread Rob Landley
On 2/1/19 3:26 PM, enh via Toybox 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 Yeah, I converted it locally to a text file as part

Re: [Toybox] why isn't bc_lib a string?

2019-02-01 Thread Gavin Howard
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 wrote: > > the current bc_lib[] seems like an oddly unreadable/undebuggable way

[Toybox] why isn't bc_lib a string?

2019-02-01 Thread enh via Toybox
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@lists.landley.net http://lists.landley.n