[comp.sys.mac.programmer] Modified CommToolbox include files, library

mithomas@bsu-cs.bsu.edu (Michael Thomas Niehaus) (03/23/90)

I just finished converting the CommToolbox .o library file and all of the
include files to a format acceptable to Think C 4.0.  I did run into the
following problems:

1.  Think C doesn't know about the "const" keyword.  Got around this one with
    a "#define const".
2.  The various xxxProcPtr type definitions aren't accepted by Think C.  I
    commented these out, and changed the function definitions that used them
    to plain ProcPtr's.
3.  Some of the include files use "//" to begin comments (but some of them use
    the normal "/* ... */").  Think C throws fits on these.  I had to go
    through and change all of them to "/*...*/".
4.  One enum has a comma after the last item in the list.  Think C calls this
    an error.  I removed the comma to remove the error.
5.  Some of the routines that are in the .o file are not declared in any of
    the header files (for example, routines along the lines of xxxSetupXCleanup
    or something like that).

To convert the object file, I had to go through and provide a list of all the
routines and their capitalizations (I guess on the ones that aren't declared
anywhere).

This takes some time to do.  I would like to post these files to save others
the work, but I don't believe I am allowed to with the license agreements
and copyrights included.  Could they be placed somewhere that people could
get them?

Someone with an answer send me a reply.

-Michael

-- 
Michael Niehaus        UUCP: <backbones>!{iuvax,pur-ee}!bsu-cs!mithomas
Apple Student Rep      ARPA:  mithomas@bsu-cs.bsu.edu
Ball State University  AppleLink: ST0374 (from UUCP: st0374@applelink.apple.com)