Ignore:
Timestamp:
Apr 21, 2007, 8:33:35 AM (18 years ago)
Author:
bird
Message:

hacking...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash-messup/output.h

    r626 r879  
    4646        short fd;
    4747        short flags;
     48        struct shinstance *psh;
    4849};
    4950
    50 extern struct output output;
     51/*extern struct output output;
    5152extern struct output errout;
    5253extern struct output memout;
    5354extern struct output *out1;
    54 extern struct output *out2;
     55extern struct output *out2;*/
    5556
    56 void open_mem(char *, int, struct output *);
    57 void out1str(const char *);
    58 void out2str(const char *);
     57void open_mem(struct shinstance *, char *, int, struct output *);
     58void out1str(struct shinstance *, const char *);
     59void out2str(struct shinstance *, const char *);
    5960void outstr(const char *, struct output *);
    6061void emptyoutbuf(struct output *);
    61 void output_flushall(void);
     62void output_flushall(struct shinstance *);
    6263void flushout(struct output *);
    63 void freestdout(void);
     64void freestdout(struct shinstance *);
    6465void outfmt(struct output *, const char *, ...)
     66    __attribute__((__format__(__printf__,3,4)));
     67void out1fmt(struct shinstance *, const char *, ...)
    6568    __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)));
     69void dprintf(struct shinstance *, const char *, ...)
     70    __attribute__((__format__(__printf__,2,3)));
     71void fmtstr(struct shinstance *, char *, size_t, const char *, ...)
     72    __attribute__((__format__(__printf__,4,5)));
    7273void doformat(struct output *, const char *, va_list);
    7374int xwrite(int, char *, int);
    7475int xioctl(int, unsigned long, char *);
    7576
    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);
    7980
    8081#define OUTPUT_INCL
Note: See TracChangeset for help on using the changeset viewer.