vt_buf.c (270667) | vt_buf.c (270785) |
---|---|
1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/vt/vt_buf.c 270667 2014-08-26 17:48:05Z dumbbell $"); | 34__FBSDID("$FreeBSD: head/sys/dev/vt/vt_buf.c 270785 2014-08-29 08:16:31Z dumbbell $"); |
35 36#include <sys/param.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/mutex.h> 41#include <sys/reboot.h> 42#include <sys/systm.h> --- 403 unchanged lines hidden (view full) --- 446 447 /* With same size */ 448 p.tp_row = vb->vb_scr_size.tp_row; 449 p.tp_col = vb->vb_scr_size.tp_col; 450 vtbuf_grow(vb, &p, size); 451} 452 453void | 35 36#include <sys/param.h> 37#include <sys/kernel.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/mutex.h> 41#include <sys/reboot.h> 42#include <sys/systm.h> --- 403 unchanged lines hidden (view full) --- 446 447 /* With same size */ 448 p.tp_row = vb->vb_scr_size.tp_row; 449 p.tp_col = vb->vb_scr_size.tp_col; 450 vtbuf_grow(vb, &p, size); 451} 452 453void |
454vtbuf_grow(struct vt_buf *vb, const term_pos_t *p, int history_size) | 454vtbuf_grow(struct vt_buf *vb, const term_pos_t *p, unsigned int history_size) |
455{ 456 term_char_t *old, *new, **rows, **oldrows, **copyrows, *row; 457 int bufsize, rowssize, w, h, c, r; 458 term_rect_t rect; 459 460 history_size = MAX(history_size, p->tp_row); 461 462 /* If new screen/history size bigger or buffer is VBF_STATIC. */ --- 284 unchanged lines hidden --- | 455{ 456 term_char_t *old, *new, **rows, **oldrows, **copyrows, *row; 457 int bufsize, rowssize, w, h, c, r; 458 term_rect_t rect; 459 460 history_size = MAX(history_size, p->tp_row); 461 462 /* If new screen/history size bigger or buffer is VBF_STATIC. */ --- 284 unchanged lines hidden --- |