Compiling on old Digital Unix

Brian Salter-Duke b_duke@lacebark.ntu.edu.au
Sun, 22 Oct 2000 15:53:12 +0930


On Sat, Oct 21, 2000 at 10:54:42PM -0500, David Champion wrote:

> On 2000.10.21, in <20001022104951.A22431@lacebark.ntu.edu.au>,
> "Brian Salter-Duke" <b_duke@lacebark.ntu.edu.au> wrote:
> >
> > Some C compilers and the DU is one of them ignore lines such as "#ifdef
> > .." unless the # is in the 1st column (showing my Fortran upbringing - I
> > mean the 1st position on the line). This gives lots of errors. It was a
> > boring job to edit out all the spaces and tabs before #. Could the
> > developers please change this? It is a seriously bad thing to do. Not all
> > of us use gcc all the time.
>
> On some platforms you get a neat compromise by changing:
> #if foo
> #ifndef bar
> #endif /* !bar */
> #endif /* foo? */
>
> to:
> #if foo
> # ifndef bar
> # endif /* !bar */
> #endif /* foo? */
>
> Does that work with the Digital compiler?
Yes, it seems to. I altered a nested set two deep in g10/gpgv.c and it gave no errors and the object and executable were the same size, so I guess they are equivalent. Editing to that format however is just a difficult, but I guess it is more readable. Cheers, Brian.
> --
> -D. dgc@uchicago.edu NSIT University of Chicago
>
> --
> Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
> with a subject of "unsubscribe" to gnupg-users-request@gnupg.org
-- Associate Professor Brian Salter-Duke (Brian Duke) b_duke@lacebark.ntu.edu.au Chemistry, School of BECS, SITE, NT University, Darwin, NT 0909, Australia. Phone 08-89466702. Fax 08-89466847. http://www.smps.ntu.edu.au/ Get PGP2 Key:- http://www.smps.ntu.edu.au/chemistry/duke.key.html -- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org