Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!syntron!orcisi!michael From: michael@orcisi.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: ** Re: MSC 4.0 Large Model ** Original Posters problem solved!!! Message-ID: <633@orcisi.UUCP> Date: Fri, 21-Aug-87 10:34:20 EDT Article-I.D.: orcisi.633 Posted: Fri Aug 21 10:34:20 1987 Date-Received: Sat, 22-Aug-87 18:01:25 EDT References: <10400006@altger.UUCP> <72@cunixc.columbia.edu> Organization: Optical Recording Corporation, Toronto, Ontario Lines: 13 > 3) Make a ".h" file and externally declare ALL your functions > so that the return type is clear before a function it called. Given the source file which defines your functions, MSC's -Zg flag will write all the function declarations to the stdout which you just have to redirect into a .h file (and edit the few extraneous lines). > 4) Compile with the -DLINT_ARGS an clear up all the messages > generated. I had problems with free(foo) when foo was a pointer > to a structure, free((char *)foo) solved the problem. We also use -W2 which checks a few extra things like return stmts.