Chameleon

Chameleon Commit Details

Date:2010-02-20 12:13:31 (9 years 5 months ago)
Author:JrCs
Commit:94
Parents: 93
Message:Factorization of functions
Changes:
M/branches/JrCs/i386/libsaio/console.c

File differences

branches/JrCs/i386/libsaio/console.c
9595
9696
9797
98
99
100
101
102
103
104
105
106
107
98108
99109
100110
101
102
103
104
105
106
111
112
113
107114
108115
109116
......
111118
112119
113120
121
114122
115
116
117
118
123
119124
120125
121126
......
127132
128133
129134
130
131
132
135
136
137
133138
134139
135140
return (c);
}
int printf_real (const char *fmt, va_list ap)
{
int ret = 0;
if (bootArgs->Video.v_display == VGA_TEXT_MODE)
prf(fmt, ap, putchar, 0);
else
ret = vprf(fmt, ap);
return ret;
}
int printf(const char * fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (bootArgs->Video.v_display == VGA_TEXT_MODE)
prf(fmt, ap, putchar, 0);
else
vprf(fmt, ap);
va_end(ap);
va_start(ap, fmt);
printf_real(fmt,ap);
va_end(ap);
return 0;
}
{
va_list ap;
gErrors = YES;
va_start(ap, fmt);
gErrors = YES;
printf(fmt,ap);
printf_real(fmt, ap);
va_end(ap);
return(0);
va_start(ap, fmt);
printf("\n");
printf(fmt,ap);
printf("\n");
printf_real("\n",NULL);
printf_real(fmt, ap);
printf_real("\n",NULL);
va_end(ap);

Archive Download the corresponding diff file

Revision: 94