Const-Correctness of Python/C
Andrew M. Kuchling
akuchlin at mems-exchange.org
Thu May 11 11:53:15 EDT 2000
Lyle Johnson <jlj at cfdrc.com> writes:
> Some older C compilers wouldn't support the const keyword, so that could
> be a problem.
Note that GNU autoconf already has tests for compilers that don't
support const, and the generated config.h file will #define const to
the empty string if the compiler doesn't support it. So adding const
shouldn't break even old compilers. I don't know if GvR would
consider this a priority, but go ahead and post the list of functions
that could use the additional const declarations.
--
A.M. Kuchling http://starship.python.net/crew/amk/
"Mortal man?"
"Yes?"
"Beware of the dog."
-- Charon warns Orpheus, in SANDMAN: "The Song of Orpheus"
More information about the Python-list
mailing list