Christopher Smith wrote:
> >  
> Okay, so again... why is all this going to break if you have a function 
> which accesses this string?

Nothing is going to break. The end result is a lot of noise in the
output of that function, when called. You also have the added expense of
Yet Another Function.

In the past:

static char *RCSid="$Id$";

Now:

static char *RCSid="$Id$";

char *get_module_version() {
        return RCSIdl
}

Perhaps it is not a lot, but it is certainly more than there used to be.
I have always liked to embed the RCS $Id$ into my source code, and you
will almost always see a $Id$ near the top of my code, including shell
programs.

Oh, make sure no two modules define the same get_module_version()
function. That could be bad.

-john

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to