commit 96961b05006099169e27d587fd5943e7deaa80ed
parent 2e8ced45ed3cc9abddbbd16d0136c6faab41d1c1
Author: Rob King <jking@deadpixi.com>
Date: Sun, 28 Jul 2019 21:32:16 -0500
Style fixes.
Diffstat:
2 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/vtparser.c b/vtparser.c
@@ -29,7 +29,13 @@
#include "vtparser.h"
/**** DATA TYPES */
-#define MAXACTIONS 25
+#define MAXACTIONS 128
+
+typedef struct ACTION ACTION;
+struct{
+ void (*cb)(VTPARSER *p, wchar_t w);
+ STATE *next;
+};
struct STATE{
void (*entry)(VTPARSER *v);
diff --git a/vtparser.h b/vtparser.h
@@ -30,7 +30,10 @@
#include <stddef.h>
#include <wchar.h>
-/**** CONFIGURATION */
+/**** CONFIGURATION
+ * VTPARSER_BAD_CHAR is the character that will be displayed when
+ * an application sends an invalid multibyte sequence to the terminal.
+ */
#ifndef VTPARSER_BAD_CHAR
#ifdef __STDC_ISO_10646__
#define VTPARSER_BAD_CHAR ((wchar_t)0xfffd)
@@ -47,14 +50,6 @@
typedef struct VTPARSER VTPARSER;
typedef struct STATE STATE;
-typedef struct ACTION ACTION;
-
-struct ACTION{
- wchar_t lo, hi;
- void (*cb)(VTPARSER *p, wchar_t w);
- STATE *next;
-};
-
typedef void (*VTCALLBACK)(VTPARSER *v, void *p, wchar_t w, wchar_t iw,
int argc, int *argv, const wchar_t *osc);