Changeset 331 for EcnlProtoTool/trunk/ntshell/ntshell/util/ntstdio.c
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/ntshell/util/ntstdio.c
r321 r331 241 241 242 242 if (handle->xo) { 243 handle->xo( (unsigned char)c);243 handle->xo(handle, (unsigned char)c); 244 244 } 245 245 handle->pos++; … … 266 266 void ntstdio_fputs(ntstdio_t *handle, NTSTDIO_XO xo, const char *str) 267 267 { 268 void(*pf)(unsigned char);268 NTSTDIO_XO pf; 269 269 270 270 /* Save current output device */ … … 314 314 int result; 315 315 va_list arp; 316 void(*pf)(unsigned char);316 NTSTDIO_XO pf; 317 317 318 318 /* Save current output device */ … … 334 334 extern void shell_exit(int cd); 335 335 336 int c = handle->xi( );336 int c = handle->xi(handle); 337 337 if (handle->option & NTSTDIO_OPTION_LF_CR) { 338 338 if (c == '\r') … … 362 362 for (;;) { 363 363 /* Get a char from the incoming stream */ 364 c = handle->xi( );364 c = handle->xi(handle); 365 365 if (!c) { 366 366 /* End of stream */ … … 398 398 int ntstdio_fgets(ntstdio_t *handle, NTSTDIO_XI xi, char *buf, int len) 399 399 { 400 unsigned char(*pf)(void);400 NTSTDIO_XI pf; 401 401 int n; 402 402
Note:
See TracChangeset
for help on using the changeset viewer.