home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19613 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.3 KB  |  31 lines

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