[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys_errlist (Re: gcc (Re: porting?))
On Wed, 11 Feb 1998, Mikko Larjava wrote:
> The best sould be if I'm asked to just declare it
>
> char const *const sys_errlist[];
>
Ok... that is what I will do, unless someone tells me that
in non-mbaserel cases this definition causes unwanted effects in
the assembly code.
Another thing: the way the return statement is written in
strerror(), just:
return(sys_errlist[errnum]);
causes gcc to issue a warning about the const type being
dropped. It's unlikely to be a serious problem, but how should
it be written to keep the compiler happy?
Yves
__
When the trees are seen to be moving, the enemy is advancing.
Sun Tzu 9:20