Changeset 1199 for trunk/src/kash/show.c
- Timestamp:
- Oct 7, 2007, 12:04:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/show.c
r1198 r1199 61 61 static void sharg(union node *, FILE *); 62 62 static void indent(int, char *, FILE *); 63 static void trstring( char *);64 65 66 void 67 showtree( union node *n)68 { 69 trputs( "showtree called\n");63 static void trstring(shinstance *, char *); 64 65 66 void 67 showtree(shinstance *psh, union node *n) 68 { 69 trputs(psh, "showtree called\n"); 70 70 shtree(n, 1, NULL, stdout); 71 71 } … … 274 274 #ifdef DEBUG 275 275 void 276 trputc( int c)276 trputc(shinstance *psh, int c) 277 277 { 278 278 if (debug(psh) != 1) … … 311 311 #ifdef DEBUG 312 312 void 313 trputs( const char *s)313 trputs(shinstance *psh, const char *s) 314 314 { 315 315 if (debug(psh) != 1) … … 320 320 321 321 static void 322 trstring( char *s)322 trstring(shinstance *psh, char *s) 323 323 { 324 324 char *p; … … 367 367 return; 368 368 while (*ap) { 369 trstring( *ap++);369 trstring(psh, *ap++); 370 370 if (*ap) 371 371 putc(' ', tracefile); … … 379 379 #ifdef DEBUG 380 380 void 381 opentrace( void)381 opentrace(shinstance *psh) 382 382 { 383 383 char s[100]; … … 424 424 fcntl(fileno(tracefile), F_SETFL, flags | O_APPEND); 425 425 #endif 426 set linebuf(tracefile);426 setvbuf(tracefile, (char *)NULL, _IOLBF, 0); //setlinebuf(tracefile); 427 427 fputs("\nTracing started.\n", tracefile); 428 428 }
Note:
See TracChangeset
for help on using the changeset viewer.