[comp.sys.mac.programmer] MPW C #include file problem, Packages.h.

earleh@eleazar.dartmouth.edu (Earle R. Horton) (06/22/88)

In case you use the "real" interface to the ToolBox from MPW C, and you ever
want to know the date in other than short form, try applying this
patch:

target {cincludes}Packages.h;find 186
replace -c 2 /short longFlag/ 'DateForm longFlag'

LongFlag is a byte, and the correct way to pass it to IUDateString is
in the high order byte of a word.  The MPW C #include file, as
distributed, passes it in the low-order byte and you always get the
short form for the date, unless you fix the #include file or (heaven
forbid!) use the C interface glue routines for this function (wimp if
you do.)
Earle R. Horton, Thayer School of Engineering, Hanover, NH
  I wouldn't mind dying -- it's that business of having to stay dead that
  scares the sh*t out of me.  -- R. Geis