Re: Use (f)puts instead of (f)printf when possible.
Bruno Haible <[email protected]>
| Newsgroups | gmane.lisp.clisp.devel |
|---|---|
| Message-ID | <5117266.rQY8fr5F90@omega> |
Pascal Bourguignon wrote:
> The standard way to avoid it is to use a literal format string!
>
> fprintf(stderr,”%s”,GETTEXTL(“Warning: “));
Indeed gcc recognizes "%s" (and "%c") as special cases of format strings
and optimizes these cases. But I still find such code harder to read than
fprint(stderr,GETTEXTL(“Warning: “));
Bruno
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
clisp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-devel