git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit a37414c941e90256aea6201f114a237eca574843
parent 78f70b5ea3a61e8c9c62d3628c1e90c4a138257c
Author: Rob King <jking@deadpixi.com>
Date:   Fri, 23 Jun 2017 23:14:57 -0500

Remove unused vtparser_reset.

Diffstat:
Mmtm.c2--
Mvtparser.c17+++--------------
Mvtparser.h3---
3 files changed, 3 insertions(+), 19 deletions(-)

diff --git a/mtm.c b/mtm.c @@ -399,8 +399,6 @@ ENDHANDLER static void setupevents(NODE *n) { - vtparser_reset(n->vp, n); - vtparser_onevent(n->vp, VTPARSER_CONTROL, 0x05, ack); vtparser_onevent(n->vp, VTPARSER_CONTROL, 0x07, bell); vtparser_onevent(n->vp, VTPARSER_CONTROL, 0x08, cub); diff --git a/vtparser.c b/vtparser.c @@ -116,21 +116,10 @@ vtparser_open(void *p) if (!v) return NULL; - vtparser_reset(v, p); - return v; -} + v->s = &ground; + v->p = p; -void -vtparser_reset(VTPARSER *vp, void *p) -{ - reset(vp); - vp->s = &ground; - vp->p = p; - - vp->print = NULL; - memset(vp->cons, 0, sizeof(vp->cons)); - memset(vp->escs, 0, sizeof(vp->escs)); - memset(vp->csis, 0, sizeof(vp->csis)); + return v; } void diff --git a/vtparser.h b/vtparser.h @@ -57,9 +57,6 @@ VTPARSER * vtparser_open(void *p); void -vtparser_reset(VTPARSER *vp, void *p); - -void vtparser_close(VTPARSER *vp); VTCALLBACK

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.