Hi Hartmut, thanks for the patch. Nobody is using \pdfstrcomp, so we can safely replace it. I will upload another snapshot soon. Regards, Thanh On Tue, May 24, 2005 at 10:18:09PM +0200, Hartmut Henkel wrote:
Hi Thanh,
the attached last-minute-patch to pdftex.ch contains:
1. Akira's identification of binary PDF file, now by special string "PTEX" with 128 added to each ASCII char (highest bit set).
2. Taco's fix for compile time warnings (without the tex-k one).
3. And i would like to propose to change the register \pdfstrcompresult into simple \pdfretval. Reason is that it would be nice to have a global integer "return value" register for general use with utility functions, e. g. to check whether image embedding failed or so, and i also need such a return value register for map related stuff...
When i saw that \pdfstrcompresult is already a typical integer return value for \pdfstrcomp, i thought that this would be the ideal moment to start a \pdfretval. After the patch, comparison by \pdfstrcomp would set \pdfretval to -1, 0, or 1.
You sure will have ideas for what to set \pdfretval. It then normally should contain a 0 for "success", some positive value coding various "fail" conditions, or other e. g. signed values as after \pdfstrcomp...
Question is, who already is using \pdfstrcomp, and whether he can live with such a new \pdfretval instead?
Regards, Hartmut