Lines Matching refs:tmp
72 LINE_BUF *tmp; in alloc_line_buf() local
73 tmp = lb_free_ptr; in alloc_line_buf()
75 unlink_line_buf(tmp); in alloc_line_buf()
76 tmp->last_count = 0; in alloc_line_buf()
77 tmp->cur_count = 0; in alloc_line_buf()
80 tmp->buf[i] = 0x20; in alloc_line_buf()
82 return (tmp); in alloc_line_buf()
212 LINE_BUF *tmp; in m_putchar() local
222 tmp = tb->cur; /* Recalculate the display start buffer */ in m_putchar()
225 if (tmp->prev == NULL) in m_putchar()
227 tmp = tmp->prev; in m_putchar()
229 tb->start = tmp; in m_putchar()
230 while (tmp->prev != NULL) in m_putchar()
232 tmp = tmp->prev; in m_putchar()
233 unlink_line_buf(tmp); in m_putchar()
234 free_line_buf(tmp); in m_putchar()
236 tmp = alloc_line_buf(); /* Get one buffer */ in m_putchar()
238 …link_line_buf(tb->cur, tmp); /* Link the obtained buffer to the next buffer from the curren… in m_putchar()
240 tb->cur = tmp; /* Update the current buffer */ in m_putchar()