Changeset 879 for trunk/src/ash-messup/output.h
- Timestamp:
- Apr 21, 2007, 8:33:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash-messup/output.h
r626 r879 46 46 short fd; 47 47 short flags; 48 struct shinstance *psh; 48 49 }; 49 50 50 extern struct output output;51 /*extern struct output output; 51 52 extern struct output errout; 52 53 extern struct output memout; 53 54 extern struct output *out1; 54 extern struct output *out2; 55 extern struct output *out2;*/ 55 56 56 void open_mem( char *, int, struct output *);57 void out1str( const char *);58 void out2str( const char *);57 void open_mem(struct shinstance *, char *, int, struct output *); 58 void out1str(struct shinstance *, const char *); 59 void out2str(struct shinstance *, const char *); 59 60 void outstr(const char *, struct output *); 60 61 void emptyoutbuf(struct output *); 61 void output_flushall( void);62 void output_flushall(struct shinstance *); 62 63 void flushout(struct output *); 63 void freestdout( void);64 void freestdout(struct shinstance *); 64 65 void outfmt(struct output *, const char *, ...) 66 __attribute__((__format__(__printf__,3,4))); 67 void out1fmt(struct shinstance *, const char *, ...) 65 68 __attribute__((__format__(__printf__,2,3))); 66 void out1fmt(const char *, ...) 67 __attribute__((__format__(__printf__,1,2))); 68 void dprintf(const char *, ...) 69 __attribute__((__format__(__printf__,1,2))); 70 void fmtstr(char *, size_t, const char *, ...) 71 __attribute__((__format__(__printf__,3,4))); 69 void dprintf(struct shinstance *, const char *, ...) 70 __attribute__((__format__(__printf__,2,3))); 71 void fmtstr(struct shinstance *, char *, size_t, const char *, ...) 72 __attribute__((__format__(__printf__,4,5))); 72 73 void doformat(struct output *, const char *, va_list); 73 74 int xwrite(int, char *, int); 74 75 int xioctl(int, unsigned long, char *); 75 76 76 #define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf( file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))77 #define out1c(c) outc(c, out1);78 #define out2c(c) outc(c, out2);77 #define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(psh, file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c))) 78 #define out1c(c) outc(c, psh->out1); 79 #define out2c(c) outc(c, psh->out2); 79 80 80 81 #define OUTPUT_INCL
Note:
See TracChangeset
for help on using the changeset viewer.