home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watmath!thinkage!atbowler
- From: atbowler@thinkage.on.ca (Alan Bowler)
- Subject: Re: upper/lower case with VMS C
- Message-ID: <1993Jan13.005841.6624@thinkage.on.ca>
- Organization: /etc/organization
- References: <Bzs20s.FBM@rex.uokhsc.edu>
- Date: Wed, 13 Jan 1993 00:58:41 GMT
- Lines: 20
-
- In article <Bzs20s.FBM@rex.uokhsc.edu> david@rex.uokhsc.edu (David W. Bourne) writes:
- >I am trying to compile a 'c' program I obtained from a colleague under
- >VAX VMS. With other module I had no real problems but one module
- >apparently has variables with the 'same' names, that is only case
- >different.
- >
- >One line reads
- >
- > double *Ao, *Ak, .... , *ao
- >
- >I then get an error message CONFLICTDECL indicating that the ao is
- >a redeclaration of the Ao variable.
-
- For maximum portability, a program should made sure that external names
- are unique in first 6 characters ignoring case. This is violated by
- the names "Ao" and "ao". I don't believe that VMS has the six
- character part of the restriction, but I do believe it does not respect
- case on external names. You really need to rename one the these two
- variables. It will keep the loader happy, and probably make debugging
- and other maintenance easier.
-