Source code control & revision numbers
Posted in 1997
Hi Folks, At my place, we want to enhance the way we do source code control. This is with an eye toward including the module name and revision number in all error messages. We are using Fourgen as our development environment and are calling a library function which eventually calls errlog(). We are currently using RCS for source code control. In every [blessed] 4GL source module in our application, we have commented lines that look like: # $RCSfile: main.4gl,v $ # $Date: 1996/08/01 18:21:47 $ # $Revision: 1.1 $ Is there any way in 4GL that we might use these string values in variables? We'd like to be able to pass this to the error-handling routines. Would another source-code control program make this possible? Also, in C language, we have built-in macros like __FILE__ and __LINE__ and I'm wondering if we can use these in any way in 4GL? I already have tried explicitly using them in a 4GL file and the 4GL preprocessor downshifted the symbols, so that they would never have made it to the C compiler intact. Even not thinking about the C compiler, it was an error; it complains that the variable __file__ has not been defined. So is this possible any less direct way? (Please don't mention C; this must work within the the 4GL source module.) -- -- Jake (Lost in thought and won't ask for directions) . . _..-'( )`-.._ ./'. '||\\\\. }\\_/{ .//||` .`\\. ./'.|'.'||||\\\\|.. )o o( ..|//||||`.`|.`\\. ./'..|'.|| |||||\\`````` \\,@,/ ''''''/||||| ||.`|..`\\. ./'.||'.|||| ||||||||||||. ||| .|||||||||||| ||||.`||.`\\. /'|||'.|||||| ||||||||||||{ | }|||||||||||| ||||||.`|||`\\ '.|||'.||||||| ||||||||||||{ | }|||||||||||| |||||||.`|||.` '.||| ||||||||| |/' ``\\||`` | ''||/'' `\\| ||||||||| |||.` |/' \\./' `\\./ \\!|\\ /|!/ \\./' `\\./ `\\| V V V }' `\\ /' `{ V V V \\ \\ \\ V / / / +-----------------------------------------------------------+ | Impeccable Logic: A thought process which successfully | | resists chicken bites | +-----------------------------------------------------------+