Re: Aubit4GL & opensource
Posted in 2005
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
Does aubit4gl detect the use of uninitialised variables? This would be a MAJOR MAJOR bonus. I have seen people spent 1/2 day trying to track this down. The last 4js version I tried detect passing the wrong number of arguments to function but not this. The use of uninitialised variables should be detectable at runtime... is there a path where this is read before it is written! If aubit4gl does not have this then a feature request?? I bet any large project could have bugs found from this feature request. Imagine compiling thousands of modules and find this problem easily!! David "The Rave" Williams
David Williams wrote: > Does aubit4gl detect the use of uninitialised variables? > > This would be a MAJOR MAJOR bonus. I have seen people spent > 1/2 day trying to track this down. > > The last 4js version I tried detect passing the wrong number of > arguments to function but not this. > > The use of uninitialised variables should be detectable at runtime... > is there a path where this is read before it is written! > > If aubit4gl does not have this then a feature request?? > > I bet any large project could have bugs found from this > feature request. Imagine compiling thousands of modules and find > this problem easily!! > > David "The Rave" Williams Well, since C4GL compiles to ESQL/C which compiles to C you can check for uninitialized variables using 'GCC -Wall' or lint on the .c file. As for Aubit4GL, you can have it compile for ODBC or for ESQL/C, either way, you can check for uninitialized variables using 'GCC -Wall' or lint. That's what I do. (OK <abashed> only if I suspect a problem!) Art S. Kagel