Searched refs:outbuf (Results 1 - 11 of 11) sorted by relevance

/ast/src/lib/libpp/
H A Dppdata.c63 static char outbuf[2*(PPBUFSIZ+MAXTOKEN)];/* output buffer */ variable
101 &outbuf[0], /* outb */
102 &outbuf[0], /* outbuf */
103 &outbuf[0], /* outp */
104 &outbuf[PPBUFSIZ], /* oute */
H A Dpp.h71 #define PPWRITE(n) do{if(write(1,pp.outbuf,n)!=(n))pperror(ERROR_SYSTEM|3,"%s: write error",pp.outfile);pp.offset+=(n);pp.lastout=pp.outbuf[(n)-1];}while(0)
73 #define pplastout() ((pp.outp>pp.outbuf)?*(pp.outp-1):pp.lastout)
75 #define pppendout() (pp.outp-pp.outbuf)
77 #define ppflushout() do{if(pp.outp>pp.outbuf){PPWRITE(pp.outp-pp.outbuf);pp.outp=pp.outbuf;}}while(0)
78 #define ppcheckout() do{if(pp.outp>pp.oute){PPWRITE(PPBUFSIZ);if(pp.outbuf==pp.outb){pp.outbuf+=PPBUFSIZ;pp.oute+=PPBUFSIZ;}else{pp.outbuf
409 char* outbuf; /* output buffer */ member in struct:ppglobals
[all...]
H A Dppbuiltin.c280 #define BACK(a,p) ((a>p)?*--a:(number++?0:((p=pp.outbuf+PPBUFSIZ),(a=pp.outbuf+2*PPBUFSIZ),*--a)))
281 #define PEEK(a,p) ((a>p)?*(a-1):(number?0:*(pp.outbuf+2*PPBUFSIZ-1)))
283 number = pp.outbuf != pp.outb;
335 for (; a < pp.outbuf+2*PPBUFSIZ; *p++ = *a++);
336 a = pp.outbuf;
H A Dppfsm.h237 if ((pp.in->flags & IN_flush) && pp.level == 1 && !INMACRO(rp) && (!pp.comment || !INCOMMENT(rp)) && (c = op - pp.outbuf) > 0 && *(op - 1) == '\n') \
240 op = tp = pp.outp = pp.outbuf; \
H A Dpplex.c58 #define LASTOUT() ((op>pp.outbuf)?*(op-1):pp.lastout)
69 #define PPCHECKOUT() do{if(op>xp){{PPWRITE(PPBUFSIZ);if(pp.outbuf==pp.outb){pp.outbuf+=PPBUFSIZ;xp=pp.oute+=PPBUFSIZ;}else{pp.outbuf-=PPBUFSIZ;memcpy(pp.outbuf,xp,op-xp);xp=pp.oute-=PPBUFSIZ;op-=2*PPBUFSIZ;}}}}while(0)
70 #define PPCHECKOUTSP() do{if(op>xp){if(sp)op=sp;else{PPWRITE(PPBUFSIZ);if(pp.outbuf==pp.outb){pp.outbuf+=PPBUFSIZ;xp=pp.oute+=PPBUFSIZ;}else{pp.outbuf-=PPBUFSIZ;memcpy(pp.outbuf,xp,op-xp);xp=pp.oute-=PPBUFSIZ;op-=2*PPBUFSIZ;}}}}while(0)
71 #define PPCHECKOUTTP() do{if(op>xp){{PPWRITE(PPBUFSIZ);if(pp.outbuf
[all...]
H A Dppinput.c544 p = PPBUFSIZ - (pp.outp - pp.outbuf);
577 pp.outp = pp.outbuf;
/ast/src/cmd/paxlib/calib/
H A Dcalib.c385 unsigned char outbuf[5 * CALIB_LINE + 1]; local
465 out = outbuf;
474 if (out < &outbuf[ar->linesize])
491 (*pax->errorf)(NiL, pax, 1, "part c=%d n=%d k=%d \"%-.*s\"", c, out - outbuf, ar->count & 0x7f, out - outbuf, outbuf); local
497 (*pax->errorf)(NiL, pax, 1, "part c=%d:%d:%d r=%d:%d bits=%d n=%d x=%u \"%-.*s\"", c, &outbuf[ar->linesize] - out, c ^ 64, ar->next - ar->buffer, ar->line, bits, out - outbuf, *ar->next, out - outbuf, outbuf); local
[all...]
/ast/src/lib/libcmd/
H A Dfmt.c58 char* outbuf; member in struct:Fmt_s
81 register char* cp = fp->outbuf;
96 cp = &fp->outbuf[TABSZ*n];
101 cp = fp->outbuf;
159 strcpy(fp->outbuf, buf);
160 fp->outp = fp->outbuf+prefix;
205 memset(fp->outbuf, ' ', fp->prefix);
206 fp->outp = &fp->outbuf[fp->prefix];
225 if (!splice && !fp->retain && (!fp->quote || (fp->outp - fp->outbuf) < 2 || fp->outp[-2] != '\\' || fp->outp[-1] != 'n' && fp->outp[-1] != 't' && fp->outp[-1] != ' '))
453 if (fp->endbuf > (fp->outbuf
570 char outbuf[8 * 1024]; local
[all...]
/ast/src/lib/libz/
H A Dgzio.c68 Byte *outbuf; /* output buffer */ member in struct:gz_stream
129 s->stream.next_out = s->outbuf = Z_NULL;
190 s->stream.next_out = s->outbuf = (Byte*)ALLOC(Z_BUFSIZE);
192 if (err != Z_OK || s->outbuf == Z_NULL) {
315 s->stream.next_out = s->outbuf;
316 if (fwrite(s->outbuf, 1, Z_BUFSIZE, s->file) != Z_BUFSIZE) {
474 TRYFREE(s->outbuf);
682 s->stream.next_out = s->outbuf;
683 if (fwrite(s->outbuf, 1, Z_BUFSIZE, s->file) != Z_BUFSIZE) {
866 if ((uInt)fwrite(s->outbuf,
[all...]
/ast/src/cmd/INIT/
H A Dratz.c3640 Byte *outbuf; /* output buffer */
3697 s->stream.next_out = s->outbuf = Z_NULL;
3757 s->stream.next_out = s->outbuf = (Byte*)ALLOC(Z_BUFSIZE);
3759 if (err != Z_OK || s->outbuf == Z_NULL) {
3970 TRYFREE(s->outbuf);
H A Dproto.c375 char* outbuf; member in struct:ppglobals

Completed in 159 milliseconds