[tex-k] dvips C++ patch

Roozbeh Pournader roozbeh@sharif.edu
Sat, 1 Jun 2002 02:24:32 +0430 (IRST)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---507373528-1018979993-1022875502=:17045
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.44.0206010035471.17045@gilas.bamdad.org>



Attached is a Perforce diff file for 'dvipsk' to make it compile with C++
(which was done based on the version of dvipsk available in the TeX Live
repository). It is merely additional typecasts and sometimes explicit
definitions to stop C++ from nagging. It is done by John Plaice and me.

BTW, I still can't make 'emspecial.c' work with both C and C++. Perhaps
you can help a little, by explaining what is the purpose of the typecast
in lines 1373 and 1388. They are trying to typecast a 'char *' to a
'kpse_format_file_type' which is actually an 'enum'!!

Regards,

Roozbeh Pournader,
for the Omega project.

---507373528-1018979993-1022875502=:17045
Content-Type: APPLICATION/X-GZIP; NAME="dvipsk.patch.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0206010035020.17045@gilas.bamdad.org>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME="dvipsk.patch.gz"

H4sICFfS9zwCA2R2aXBzay5wYXRjaADdPGtz27ayn+NfAavTE8qUrZdl2VWY
WyeWE98mjsd2enpPrkdDkaDEmCIZkpLttvnvZxcPEnzJipOZM/dq2oAGsAvs
YnexuwBpGIZB2m2bhkHSfrV0PbsdB8vIons2XVEvCBfUT9rX9I92Qu9v2/bK
DePbtukseomz2LN+GpJd0p4HC9qOguDPKZ1jP89d0ScgIzAXY+vXX8lub791
QHT4d0h+/XWL/OT6lre0KWlYge+4s715Q6l8cRuayTymZtvatZKHkO7NX1Y2
h1Ew880Fa9ez9gU0cxDqxZS0d8g2+e3i+Prt1fiY7LRVVHFiu0EBPdR57hQr
ceb9Xgcmrfd7XTF3+LkO0Tzqk5fkYDDodN41WS38aBQFkdbYJpbpP0+I6XmB
Z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