GNU bug report logs -
#75712
HAVE_RSVG: svg_css_length_to_pixels doesn't handle RSVG_UNIT_CH
Previous Next
Full log
Message #37 received at 75712 <at> debbugs.gnu.org (full text, mbox):
"Stefan Kangas" <stefankangas <at> gmail.com> writes:
> Pip Cet <pipcet <at> protonmail.com> writes:
>
>> PSA: image_error takes Lisp_Object arguments, not integers. Something
>> for your (ever-growing, no doubt) TODO list, maybe?
>
> Sorry, you lost me. What do you propose here?
I was proposing type safety, thinking there might be a better way than
replacing image_error and add_to_log by macros. Didn't find one, did
the macro thing, didn't find any bugs, so probably not worth a commit.
I kind of think tiff_handler should use image_error, not add_to_log, but
the two have been equivalent forever.
> image_error should accept things like an image.spec, so I don't see how
> it could be changed to accept integers.
While we can mix and match Lisp_Objects and POD C types freely in
varargs situations, it seems, all the symbols would clash (I thought %S
was safe, but doprnt.c makes it an alias for %s), and there's little
point anyway since using nonstandard format specifiers breaks
ATTRIBUTE_FORMAT_PRINTF.
So no real proposal left here. listn is a strange animal and we should
probably use Flist instead, but that should wait until purespace is
gone, so no patch there, either.
Pip
This bug report was last modified 118 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.