Deleted Added
full compact
edit_simple.c (252726) edit_simple.c (281806)
1/*
2 * Minimal command line editing
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#include "includes.h"
10
11#include "common.h"
12#include "eloop.h"
13#include "edit.h"
14
15
1/*
2 * Minimal command line editing
3 * Copyright (c) 2010, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#include "includes.h"
10
11#include "common.h"
12#include "eloop.h"
13#include "edit.h"
14
15
16#define CMD_BUF_LEN 256
16#define CMD_BUF_LEN 4096
17static char cmdbuf[CMD_BUF_LEN];
18static int cmdbuf_pos = 0;
19static const char *ps2 = NULL;
20
21static void *edit_cb_ctx;
22static void (*edit_cmd_cb)(void *ctx, char *cmd);
23static void (*edit_eof_cb)(void *ctx);
24

--- 68 unchanged lines hidden ---
17static char cmdbuf[CMD_BUF_LEN];
18static int cmdbuf_pos = 0;
19static const char *ps2 = NULL;
20
21static void *edit_cb_ctx;
22static void (*edit_cmd_cb)(void *ctx, char *cmd);
23static void (*edit_eof_cb)(void *ctx);
24

--- 68 unchanged lines hidden ---