Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!deimos!uxc!uxc.cso.uiuc.edu!zaphod!liberte From: liberte@zaphod.ncsa.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: LSC Toolbox prototypes? Message-ID: <900015@zaphod> Date: 17 Dec 88 01:31:00 GMT Lines: 24 Nf-ID: #N:zaphod:900015:000:1059 Nf-From: zaphod.ncsa.uiuc.edu!liberte Dec 16 19:31:00 1988 I am using LSC 3.0 with Require Prototypes turned on. This is great for all the functions I define. But prototypes are not required or provided for the Toolbox routines, except for a few functions that return non-ints. This is terrible. I expected THINK to include Toolbox prototypes with LSC. I was getting crashes (very annoying) and suspected I was missing some '&' somewhere. So I declared a few prototypes for Toolbox routines that have var parameters, like SetPt. Well, sure enough, it was an argument to SetPt. LSC only provides partial checks of Toolbox routine calls. If an actual argument is the same size as the formal argument, then LSC lets it go. This is not nearly enough checking. C is a dangerous language (should have been called noose), but I am forced to use it, so I would like to use all the safty features I can. So, does anyone have prototypes built for all the Toolbox routines? Please post! This would be a very valuable time saver. Dan LaLiberte National Center for Supercomputing Applications liberte@ncsa.uiuc.edu