@@ -315,11 +315,7 @@ static const info fmtinfo[] = {
315315** seems to make a big difference in determining how fast this beast
316316** will run.
317317*/
318- int vxprintf (func , arg , format , ap ) void (* func )(const char * , int , void * );
319- void * arg ;
320- const char * format ;
321- va_list ap ;
322- {
318+ int vxprintf (void (* func )(const char * , int , void * ), void * arg , const char * format , va_list ap ) {
323319 register const char * fmt ; /* The format string. */
324320 register int c ; /* Next character in the format string */
325321 register char * bufpt ; /* Pointer to the conversion buffer */
@@ -704,10 +700,7 @@ struct s_strargument { /* Describes the string being written to */
704700 char * last ; /* Last available slot in the string */
705701};
706702
707- static void sout (txt , amt , arg ) char * txt ;
708- int amt ;
709- void * arg ;
710- {
703+ static void sout (const char * txt , int amt , void * arg ) {
711704 register char * head ;
712705 register const char * t ;
713706 register int a ;
@@ -756,10 +749,7 @@ struct sgMprintf {
756749};
757750
758751/* The xprintf callback function. */
759- static void mout (zNewText , nNewChar , arg ) char * zNewText ;
760- int nNewChar ;
761- void * arg ;
762- {
752+ static void mout (const char * zNewText , int nNewChar , void * arg ) {
763753 struct sgMprintf * pM = (struct sgMprintf * )arg ;
764754 if (pM -> nChar + nNewChar + 1 > pM -> nAlloc ) {
765755 pM -> nAlloc = pM -> nChar + nNewChar * 2 + 1 ;
0 commit comments