win/pyt: cleanup

This commit is contained in:
erw7
2017-04-02 18:16:39 +09:00
committed by Justin M. Keyes
parent 1614e805b3
commit 84fb794da6
2 changed files with 176 additions and 116 deletions

View File

@@ -12,16 +12,17 @@ typedef struct pty_process {
Process process;
char *term_name;
uint16_t width, height;
winpty_t *wp;
winpty_t *winpty_object;
HANDLE finish_wait;
HANDLE process_handle;
uv_timer_t wait_eof_timer;
} PtyProcess;
typedef struct arg_S {
char *arg;
QUEUE node;
} arg_T;
// Structure used by build_cmd_line()
typedef struct arg_node {
char *arg; // pointer to argument.
QUEUE node; // QUEUE structure.
} ArgNode;
static inline PtyProcess pty_process_init(Loop *loop, void *data)
{
@@ -30,7 +31,7 @@ static inline PtyProcess pty_process_init(Loop *loop, void *data)
rv.term_name = NULL;
rv.width = 80;
rv.height = 24;
rv.wp = NULL;
rv.winpty_object = NULL;
rv.finish_wait = NULL;
rv.process_handle = NULL;
return rv;