Fix underline, which I cleverly broke while adding support for the
[sgt/putty] / unix / unix.h
... / ...
CommitLineData
1#ifndef PUTTY_UNIX_H
2#define PUTTY_UNIX_H
3
4typedef void *Context; /* FIXME: probably needs changing */
5
6extern Backend pty_backend;
7
8/* Simple wraparound timer function */
9unsigned long getticks(void); /* based on gettimeofday(2) */
10#define GETTICKCOUNT getticks
11#define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */
12#define CURSORBLINK 400000 /* FIXME: need right way to do this */
13
14#define WCHAR wchar_t
15#define BYTE unsigned char
16
17int is_dbcs_leadbyte(int codepage, char byte);
18int mb_to_wc(int codepage, int flags, char *mbstr, int mblen,
19 wchar_t *wcstr, int wclen);
20void init_ucs(void);
21
22#define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
23
24#endif