void show (register char ch);
void set_tty(void);
void reset_tty(void);
-void ttyin (unsigned char buf[], register int nmax, char pchar);
+void ttyin (char buf[], register int nmax, char pchar);
int number(char *cmd);
int readch (void);
int get_line(register FILE *f, int *length);
}
static void
-my_setupterm(const char *term, int fildes, int *errret) {
+my_setupterm(char *term, int fildes, int *errret) {
setupterm(term, fildes, errret);
}
}
static char *
-my_tgoto(const char *cap, int col, int row) {
+my_tgoto(char *cap, int col, int row) {
return tparm(cap, col, row);
}
}
static void
-my_setupterm(const char *term, int fildes, int *errret) {
+my_setupterm(char *term, int fildes, int *errret) {
*errret = tgetent(tcbuffer, term);
}
}
static char *
-my_tgoto(const char *cap, int col, int row) {
+my_tgoto(char *cap, int col, int row) {
return tgoto(cap, col, row);
}
wchar_t wc;
int wc_width;
mbstate_t state, state_bak; /* Current status of the stream. */
- unsigned char mbc[MB_LEN_MAX]; /* Buffer for one multibyte char. */
+ char mbc[MB_LEN_MAX]; /* Buffer for one multibyte char. */
size_t mblength; /* Byte length of multibyte char. */
size_t mbc_pos = 0; /* Postion of the MBC. */
int use_mbc_buffer_flag = 0; /* If 1, mbc has data. */
else \
putserr(BS);
-void ttyin (unsigned char buf[], register int nmax, char pchar) {
- unsigned char *sp;
+void ttyin (char buf[], register int nmax, char pchar) {
+ char *sp;
int c;
int slash = 0;
int maxlen;