Lines Matching refs:buf
10 assline(Biobuf *bp, Bufblock *buf) in assline() argument
15 buf->current=buf->start; in assline()
22 if (buf->current != buf->start) { in assline()
23 insert(buf, 0); in assline()
30 rinsert(buf, c); in assline()
31 if (escapetoken(bp, buf, 1, c) == 0) in assline()
35 if (bquote(bp, buf) == 0) in assline()
49 if (buf->current != buf->start) { in assline()
50 insert(buf, 0); in assline()
55 rinsert(buf, c); in assline()
60 insert(buf, 0); in assline()
61 return *buf->start != 0; in assline()
68 bquote(Biobuf *bp, Bufblock *buf) in bquote() argument
83 start = buf->current-buf->start; in bquote()
86 insert(buf, '\n'); in bquote()
87 insert(buf,0); in bquote()
88 buf->current = buf->start+start; in bquote()
90 execsh(0, buf->current, buf, envy); in bquote()
96 insert(buf, c); in bquote()
97 if(!escapetoken(bp, buf, 1, c)) in bquote()
101 rinsert(buf, c); in bquote()