Fix underline, which I cleverly broke while adding support for the
[sgt/putty] / unix / unix.h
CommitLineData
f7f27309 1#ifndef PUTTY_UNIX_H
2#define PUTTY_UNIX_H
3
4typedef void *Context; /* FIXME: probably needs changing */
5
1709795f 6extern Backend pty_backend;
7
f7f27309 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
1709795f 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);
f7f27309 21
22#define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
23
24#endif