termux-packages/packages/sc-im/main.c.patch

35 lines
741 B
Diff
Raw Normal View History

--- main.c 2018-02-23 06:41:58.248538336 +0000
+++ src/src/main.c 2018-02-23 06:42:28.433438297 +0000
@@ -60,7 +60,6 @@
#include <fcntl.h> // for F_GETFL O_NONBLOCK F_SETFL
#include <locale.h>
#include <wchar.h>
-#include <wordexp.h>
#include <sys/ioctl.h> // for ioctl
#include "main.h"
@@ -90,6 +89,23 @@
#include "lua.h"
#endif
+#define WRDE_NOCMD 0
+
+typedef struct {
+ size_t we_wordc;
+ char **we_wordv;
+ size_t we_offs;
+} wordexp_t;
+
+static inline int wordexp(const char *c, wordexp_t *w, int _i)
+{
+ return -1;
+}
+
+static inline void wordfree(wordexp_t *__wordexp)
+{
+}
+
int currow = 0; /**< Current row of the selected cell. */
int curcol = 0; /**< Current column of the selected cell. */
int lastrow = 0;