On Wed, 6 Feb 2002, Brent Dax wrote:
> Jonathan Stowe:
> # - if(!(targ=Parrot_sprintf_c(interpreter, "%S at %S line
> # %d.\n", targ, interpreter->current_file,
> # interpreter->current_line))) {
> # + if(!(targ=Parrot_sprintf_c(interpreter, (const char
> # *)"%S at %S line %d.\n", targ, interpreter->current_file,
> # interpreter->current_line))) {
>
> To quote Configure, WHOA THERE!
>
> IT SHOULD NOT BE NECESSARY TO CAST A CONSTANT STRING WHEN THAT'S THE
> EXPECTED PARAMETER. We should change the type rathar then requiring
> casts. How does the system sprintf do this?
>
It doesn't need that at all - that was vestigial to the diagnosis rather
than part of the cure :(
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|