Lines Matching refs:tmp
69 LINE_BUF *tmp; in alloc_line_buf() local
70 tmp = lb_free_ptr; in alloc_line_buf()
72 unlink_line_buf(tmp); in alloc_line_buf()
73 tmp->last_count = 0; in alloc_line_buf()
74 tmp->cur_count = 0; in alloc_line_buf()
77 tmp->buf[i] = 0x20; in alloc_line_buf()
79 return (tmp); in alloc_line_buf()
171 LINE_BUF *tmp; in m_putchar() local
181 tmp = tb->cur; /* Recalculate the display start buffer */ in m_putchar()
184 if (tmp->prev == NULL) in m_putchar()
186 tmp = tmp->prev; in m_putchar()
188 tb->start = tmp; in m_putchar()
189 while (tmp->prev != NULL) in m_putchar()
191 tmp = tmp->prev; in m_putchar()
192 unlink_line_buf(tmp); in m_putchar()
193 free_line_buf(tmp); in m_putchar()
195 tmp = alloc_line_buf(); /* Get one buffer */ in m_putchar()
197 …link_line_buf(tb->cur, tmp); /* Link the obtained buffer as the next buffer to the current … in m_putchar()
199 tb->cur = tmp; /* Update the current buffer */ in m_putchar()