[2536] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: Prototype hell

daemon@ATHENA.MIT.EDU (Tom Yu)
Thu Oct 9 21:37:02 1997

Date: Thu, 9 Oct 1997 21:36:48 -0400
To: Ken Raeburn <raeburn@cygnus.com>
Cc: Tom Yu <tlyu@MIT.EDU>, Jeffrey Hutzelman <jhutz+@cmu.edu>,
        Ken Hornstein <kenh@cmf.nrl.navy.mil>, krbdev@MIT.EDU
From: Tom Yu <tlyu@MIT.EDU>
In-Reply-To: <tx1vhz6trr8.fsf@cygnus.com>

Ok.... so Ken (Raeburn) is correct about mixing K&R style definitions
with ANSI style prototypes.  So what shall we do?  I am still
unthrilled about having SIZEOF_footype dependencies in krb5.h, though
there may not be a good way around it.  Certainly we shouldn't cause
krb5_int32 to be exactly 32 bits, because that's patently bogus on
larger word-sized architectures.  I'll be thinking this over somewhat
more.

Also, do we want to completely punt on K&R prototype support?  This
may not be a bad idea, but do we really want people to lose if they
want to link things compiled with non-ANSI compilers against the krb5
library?  I would argue for keeping the existing KRB5_PROTOTYPE
concept, though somewhat cleaned up, in existence.  This would ideally
allow people to compile and link things against krb5 without needing
an ANSI compiler...

---Tom

home help back first fref pref prev next nref lref last post