"Dan Harkless" wrote:
> Simon Burge <[EMAIL PROTECTED]> writes:
> > If there was one thing I'd change with nmh internally, I'd get rid
> > of all the local function prototypes like
> >
> > int SOprintf (char *, ...); /* from termsbr.c */
> >
> > and make new header files so that there are only single declarations
> > of prototypes. If anyone is interested in my doing some work
> > towards this, let me know...
>
> Yeah, that's a real mess. I'm sure everyone would appreciate that.
I'll start looking at this. Where should I send the diffs when I'm
done?
> If you
> do do that, perhaps you can get rid of all the snprintf() -Wall warnings
> that appear on machines that don't have a native snprintf():
>
> error.c: In function `advertise':
> error.c:92: warning: implicit declaration of function `vsnprintf'
> error.c:106: warning: implicit declaration of function `snprintf'
>
> There's a million of 'em.
Shouldn't be hard to do either. I wonder if there's a case where a
system has a native snprintf() but doesn't declare it in <stdio.h>? I
guess that they'd loose - scanning header files for function prototypes
sounds too painful...
Simon.