Ben Laurie wrote:
>
> Ulf Moeller wrote:
> >
> > > > Where would that location be?
> > >
> > > Just somewhere else in the header, I think...
> >
> > Anything after the error code stuff disappears after make errors.
> > So it would seem we'd have to rename the entire bio.h file and
> > include it from a new one. Then frankly I'd prefer not to be
> > error compatible at all.
>
> Huh? So put it before!
>
I'm not sure what the problem is here. If its the typo then you need to
do this:
1. keep a copy of the .err file (just in case)
2. Fix all occurrences of the typo in the C source (but not the auto
generated C error file).
3. Fix the typo in the .err file and keep a copy of the new .err file.
4. Do a 'make errors' from the top level, log its output.
5. If it doesn't say 'no new error codes' for the library in question
then an old reference remains somewhere, fix it and restore the modified
.err file from 2 (this is because it will now have a bogus new entry).
[I'll explain the reason for doing things this way if it isn't clear]
I usually keep two copies of the source tree for this kind of thing so I
can diff the two and double check what has changed. If this works then
the corrected error name should now be in the .h file with the same
number and the auto generated C file.
Re adding a #define from the old (typo) to the new. Don't bother. Hardly
anyone checks error codes and the actual code number wont change. It
will break the few cases where someone has used the constant itself and
attempts to recompile the source: they should just fix their source.
Steve.
P.S. If this all sounds too horrible then leave it and I'll fix it.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]