[Info-vax] Possible C compiler static variable initialization problem.
Bob Koehler
koehler at eisner.nospam.encompasserve.org
Wed Feb 26 09:20:59 EST 2014
In article <leko68$egf$1 at dont-email.me>, Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> writes:
>
> On VMS, variables defined in different source files, but with the same name,
> were traditionally treated as different variables by the linker and space
> allocated for each variable definition.
I've been working with C on VMS since early VAX C days, and I've
never seen that. A file level variable (outside of any function)
is treats as global to the code unless it's specificially declared
static.
More information about the Info-vax
mailing list