1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
Index: lookup-1.08b/lib/jreadline.h
===================================================================
--- lookup-1.08b.orig/lib/jreadline.h 1996-01-15 18:44:40.000000000 +0100
+++ lookup-1.08b/lib/jreadline.h 2024-08-26 22:03:34.401082368 +0200
@@ -102,4 +102,6 @@
#define JREADLINE_SJIS 2
#define JREADLINE_INQUIRE 3
+unsigned set_jreadline_width(unsigned new);
+
#endif /* file wrapper */
Index: lookup-1.08b/lib/input.h
===================================================================
--- lookup-1.08b.orig/lib/input.h 1996-07-19 08:56:24.000000000 +0200
+++ lookup-1.08b/lib/input.h 2024-08-26 22:05:39.865348020 +0200
@@ -26,7 +26,10 @@
#else /* don't USE_LOCAL_INPUT */
- static __inline__ input_pending(void)
+ void reset_tty_state(void);
+ void set_tty_state_to_cbreak(void);
+
+ static __inline__ int input_pending(void)
{
return 0;
}
Index: lookup-1.08b/lib/jregex.c
===================================================================
--- lookup-1.08b.orig/lib/jregex.c 2024-08-12 14:13:30.000000000 +0200
+++ lookup-1.08b/lib/jregex.c 2024-08-26 22:05:34.309336242 +0200
@@ -88,6 +88,7 @@
#include "jregex.h"
#include "output.h"
#include "euc.h"
+#include <stdio.h>
/*
TO BE DONE:
Index: lookup-1.08b/lib/output.c
===================================================================
--- lookup-1.08b.orig/lib/output.c 2024-08-12 14:13:30.000000000 +0200
+++ lookup-1.08b/lib/output.c 2024-08-26 22:05:25.869318357 +0200
@@ -235,7 +235,7 @@
if (!(pager_status & TRANSPARENT))
{
- static mcount = 0;
+ static int mcount = 0;
if (c == '\33')
setSEEN_ESCAPE;
Index: lookup-1.08b/lib/output.h
===================================================================
--- lookup-1.08b.orig/lib/output.h 1996-01-15 18:50:39.000000000 +0100
+++ lookup-1.08b/lib/output.h 2024-08-26 22:05:09.173282979 +0200
@@ -55,6 +55,7 @@
extern unsigned long select_output_style(unsigned long mods);
extern void show_output_style(void);
extern int set_extra_output_file(int fd);
+extern int set_normal_output_file(int fd);
#define INQUIRE_ONLY 0x00000000 /* just returns old code */
Index: lookup-1.08b/lib/strsave.h
===================================================================
--- lookup-1.08b.orig/lib/strsave.h 1994-04-19 10:27:59.000000000 +0200
+++ lookup-1.08b/lib/strsave.h 2024-08-26 22:05:16.765299069 +0200
@@ -3,6 +3,7 @@
#ifdef _USING_DGUX
# include <string.h>
#else
+# include <string.h>
/* return a private copy of the given string, die if out of memory */
extern unsigned char *strsave(const unsigned char *);
#endif
Index: lookup-1.08b/lookup.c
===================================================================
--- lookup-1.08b.orig/lookup.c 2024-08-26 22:09:03.413784142 +0200
+++ lookup-1.08b/lookup.c 2024-08-26 22:08:01.313648201 +0200
@@ -40,7 +40,7 @@
{
static const char *new = 0;
if (new)
- free(new);
+ free((void *)new);
/*
* Note: in calculating the length to malloc, we realize that we'll
* need an extra byte for the final null, but since we won't be
@@ -99,7 +99,7 @@
int log_fd=0;
#endif
if (line)
- free(line); /* free the previously read line */
+ free((void *)line); /* free the previously read line */
jreadline_auto_romaji = lookup.default_slot->default_flag.autokana;
apply_regex_abort = 0;
@@ -136,7 +136,7 @@
if (line && *line && !(lastline && str_eql(lastline, line)))
{
if (lastline)
- free(lastline);
+ free((void *)lastline);
lastline = strsave(line);
add_history(line);
}
@@ -568,7 +568,7 @@
{
char *tmp = (char *)temp_memory;
temp_memory = (char **)*temp_memory;
- free(tmp);
+ free((void *)tmp);
}
}
@@ -784,7 +784,7 @@
}
#ifdef SIGWINCH
- signal(SIGWINCH, GET_WINDOW_SIZE);
+ signal(SIGWINCH, (__sighandler_t)GET_WINDOW_SIZE);
#endif
return 0;
}
@@ -1346,7 +1346,7 @@
#ifndef SERVER_CONFIG
(void)set_romaji_converter(romaji_converter);
- signal(SIGINT, sighandler);
+ signal(SIGINT, (__sighandler_t)sighandler);
#endif /* SERVER_CONFIG */
lookup.where = (String *)"";
|