summaryrefslogtreecommitdiff
path: root/converters/ack/patches/patch-misc.h
blob: a1312ae69b24084c1e91518986bad847071a5b9e (plain)
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
$NetBSD: patch-misc.h,v 1.1 2012/12/26 21:21:38 dholland Exp $

- declare own functions
- use a bit of const

--- /dev/null	2012-12-26 19:42:59.000000000 +0000
+++ misc.h
@@ -0,0 +1,32 @@
+#include <sys/types.h> /* for time_t, size_t */
+
+/* fileio.c */
+void putcode(unsigned int code);
+void putcodew(unsigned int code);
+int getcode(void);
+void ungetcode(int code);
+void preread(void *cp);
+time_t filedate(int fd);
+void filesetdate(const char *name, time_t tim);
+void preread(void *cp);
+int isdir(const char *name);
+
+/* codetoeuc.c */
+unsigned int CodeToEuc(unsigned int);
+
+/* codetojis.c */
+void SetJisMode(int mode);
+unsigned int CodeToJis(unsigned int code);
+void setjismode(void);
+
+/* codetosjis.c */
+unsigned int CodeToSjis(unsigned int code);
+
+/* codetozen.c */
+unsigned int CodeToZen(unsigned int code);
+
+/* euctocode.c */
+unsigned int EucToCode(unsigned int code);
+
+/* sjistocode.c */
+unsigned int SjisToCode(unsigned int code);