Mail Archives: djgpp-workers/1998/02/03/05:18:09
On Mon, 2 Feb 1998, Nate Eldredge wrote:
> >I looked at several Unix varieties and also in application programs
> >that use this list (Emacs and GNU Make), and saw `sys_siglist' in all
> >of them. Perhaps we can define both to be aliases for the same list?
> You are right, I think I am confused. But the aliased version wouldn't be a
> bad idea, IMHO.
DJ, do you think we should have both `sys_siglist' and `_sys_siglist'?
If so, would it be okay to define the latter be a char ** which points
to sys_siglist[0]?
> Can't we declare `const char *sys_siglist[]' and `const char
> unknown_signal[]'?
You cannot say "const char *sys_siglist[]" because it is filled with
malloc'ed strings that are modified to replace XXh with the actual
numbers and therefore cannot themselves be `const'. `const' means you
don't change the strings, but `put_hex_digits' does just that.
Most of the above only trigger warnings, but the library build
procedure uses -Werror which makes any warnings unacceptable.
- Raw text -