Re: [perl #23005] [PATCH] Parrot_sprintf not recognizing 7 in precision

2003-07-16 Thread Leon Brocard
mrnobo1024 sent the following bits through the ether: > Parrot_sprintf isn't recognizing 7 as a number in the precision field, so > trying to use that results in a "'7' is not a valid sprintf format" error. Thanks, patch applied. Leon -- Leon Brocard..

[perl #23005] [PATCH] Parrot_sprintf not recognizing 7 in precision

2003-07-15 Thread via RT
# New Ticket Created by mrnobo1024 # Please include the string: [perl #23005] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=23005 > Parrot_sprintf isn't recognizing 7 as a number in the precision field, so tryin

Re: [perl #18098] [PATCH] Handle the flags of Parrot_sprintf correct

2002-10-27 Thread Leopold Toetsch
Jürgen Bömmels (via RT) wrote: # New Ticket Created by Jürgen Bömmels # Please include the string: [perl #18098] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18098 > Thanks, applied. leo

[perl #18098] [PATCH] Handle the flags of Parrot_sprintf correct

2002-10-26 Thread Jürgen
# New Ticket Created by Jürgen Bömmels # Please include the string: [perl #18098] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=18098 > Some of the flags Parrot_sprintf functions don't work in the same wa

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Dan Sugalski
At 12:25 PM -0700 10/11/02, Brent Dax wrote: Argh. It looks like all the tests on PPC with the varargs core are failing, but the test with the PMC core (t/op/string.t #96) isn't. I don't get it--are they *trying* to make varargs impossible to use?!? No, that's just a happy side-effect. :) Da

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Andy Dougherty
> Brent, what do you need to help work this out? Is there anyone out > there who could loan a PPC account to Brent, or perhaps be familiar > enough with stdarg to take a look directly? (Or how about some > grizzled grayhair who can tell us if this approach is doomed for > portability reasons? Not

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Brent Dax
Brent Dax: # Can someone with a PPC box try to figure out why this is happening? # # /op/string.# Failed test (t/op/string.t at line # 1224) # # got: '-1.13014e-302 # # -1.13014e-302 # # ' # # expected: '80.43 # # -1.1 # # ' #

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Brent Dax
Andy Dougherty: # On Wed, 9 Oct 2002, Brent Dax wrote: # # > Can you try this? # > # > (at the top of the function...) # > va_list *arg = (va_list *) & (obj->data); # > (vararg accesses should look like...) # > va_arg(*arg, ...); # > (no end-of-function assignment should be n

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Dan Sugalski
At 9:11 AM -0700 10/11/02, Steve Fink wrote: >Brent, what do you need to help work this out? Is there anyone out >there who could loan a PPC account to Brent, or perhaps be familiar >enough with stdarg to take a look directly? (Or how about some >grizzled grayhair who can tell us if this approach

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-11 Thread Steve Fink
On Thu, Oct 10, 2002 at 09:57:01AM -0400, Andy Dougherty wrote: > On Wed, 9 Oct 2002, Brent Dax wrote: > > > Can you try this? > > > > (at the top of the function...) > > va_list *arg = (va_list *) & (obj->data); > > (vararg accesses should look like...) > > va_arg(*arg, ...); >

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Steve Fink
On Wed, Oct 09, 2002 at 11:28:32PM -0700, Brent Dax wrote: > Once I clear up the issue with the Sun compiler, I'll be committing > this. Well, a slightly modified version. Relax, it's nothing > drastic--I just ran it through check_source_standards.pl and > run_indent.pl. That checkin broke the

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Andy Dougherty
On Wed, 9 Oct 2002, Nicholas Clark wrote: > Which reminds me, not sure if this is relevant yet, but there's some or other > platform that p5p encountered that can't simply copy whatever it is the opaque > type va_list expands to there. > > There's a perl5 Configure symbol need_va_copy which indi

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Andy Dougherty
On Wed, 9 Oct 2002, Brent Dax wrote: > Can you try this? > > (at the top of the function...) > va_list *arg = (va_list *) & (obj->data); > (vararg accesses should look like...) > va_arg(*arg, ...); > (no end-of-function assignment should be necessary) > > If that w

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Brent Dax
Andy Dougherty: # You'll probably also want the enhanced sprintf tests (or # something like # them.) Currently, the only one that fails for me is the # %5.3f test, which gives 0.500 in stdio, but # 0.5 from Parrot. I finally tracked down this bug. If you look,

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Nicholas Clark
On Wed, Oct 09, 2002 at 04:42:36PM -0400, Andy Dougherty wrote: > On Wed, 9 Oct 2002, Andy Dougherty wrote: > > > diff -r -u parrot-orig/t/src/sprintf.t parrot-andy/t/src/sprintf.t > > > + dval = 1.0e6; > > + S = Parrot_sprintf_c(interpreter, "== %g\n", dval); > > +

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Andy Dougherty
On Wed, 9 Oct 2002, Andy Dougherty wrote: > diff -r -u parrot-orig/t/src/sprintf.t parrot-andy/t/src/sprintf.t > + dval = 1.0e6; > + S = Parrot_sprintf_c(interpreter, "== %g\n", dval); > + printf("%g %s", dval, string_to_cstring(interpreter, S)); Aargh. I fo

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Andy Dougherty
On Wed, 9 Oct 2002, Andy Dougherty wrote: > > # Unfortunately, the compact-looking > > # > > # ch=va_arg((va_list)obj->data, char); > > # > > # gave Sun's compiler indigestion. > Hmm. Just removing the (va_list) cast makes both Sun's compiler and > gcc happy. (That's because va_list is

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Andy Dougherty
On Wed, 9 Oct 2002, Brent Dax wrote: > Andy Dougherty: > # Overall, it continues to look very good. Unfortunately, the > # compact-looking > # > # ch=va_arg((va_list)obj->data, char); > # > # gave Sun's compiler indigestion. I had to split it up into > # the much more pedestrian > # >

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Brent Dax
Andy Dougherty: # Overall, it continues to look very good. Unfortunately, the # compact-looking # # ch=va_arg((va_list)obj->data, char); # # gave Sun's compiler indigestion. I had to split it up into # the much more pedestrian # # va_list arg; # arg = (va_list) obj->data; #

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread Andy Dougherty
On Wed, 9 Oct 2002, Brent Dax wrote: [Brent continues to churn out amazing quantities of good stuff] Overall, it continues to look very good. Unfortunately, the compact-looking ch=va_arg((va_list)obj->data, char); gave Sun's compiler indigestion. I had to split it up into the much more p

[perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-09 Thread via RT
esterday. One of my long-term goals with Parrot_sprintf was to use it as the engine for a Parrot bytecode-level sprintf opcode, but I didn't think that would be possible without duplicating the code in two different files with different versions of the same macros wrapping accesses t

RE: [perl #17791] [PATCH] Parrot_sprintf-related stuff

2002-10-08 Thread Brent Dax
Andy Dougherty: # After just this little patch: (line numbers are off due to # other unrelated fiddling on my part) # # it compiles. So far, I only have seen 2 failed tests: # # The first is t/src/sprintf.t, which looks like an off-by-one # issue of some sort. I haven't tracked it further y

Re: [perl #17791] [PATCH] Parrot_sprintf-related stuff

2002-10-08 Thread Andy Dougherty
On Tue, 8 Oct 2002, Brent Dax wrote: > OK. This is a pretty big patch. (Fine--*really* big, at 117K. :^) ) > > First of all, it completes the feature set of the Parrot_sprintf family, Thanks! After just this little patch: (line numbers are off due to other unrelated fiddling o

Re: Parrot_sprintf

2001-12-27 Thread Dan Sugalski
At 10:09 PM 12/20/2001 -0800, Brent Dax wrote: >The attached patch implements a Parrot_sprintf function. It doesn't do >quite what you think--it just wraps the system sprintf. However, it >provides I and F sizes and is designed to interact with STRINGs. For >example: I'v

Parrot_sprintf

2001-12-20 Thread Brent Dax
The attached patch implements a Parrot_sprintf function. It doesn't do quite what you think--it just wraps the system sprintf. However, it provides I and F sizes and is designed to interact with STRINGs. For example: FLOATVAL f; INTVAL i; STRING