Made commerror and eventmask local to each port (for win16), made the
win16 routines use port indices instead of UNIX fds (this should make some Visual Basic stuff and similar garbage start working), moved some stuff around (win16 routines at top of file, win32 routines at bottom), made a couple of win32 routines use win32 handles, and added a few hints as to how to implement asynchronous buffers, based on which EnableCommNotification can eventually be implemented.
This commit is contained in:
parent
fab975e639
commit
a1c45a52b9
|
@ -10,6 +10,12 @@ struct DosDeviceStruct {
|
|||
int unget;
|
||||
int unget_byte;
|
||||
int baudrate;
|
||||
/* events */
|
||||
int commerror, eventmask;
|
||||
/* buffers */
|
||||
char *inbuf,*outbuf;
|
||||
/* notifications */
|
||||
int wnd, n_read, n_write;
|
||||
};
|
||||
|
||||
extern void COMM_Init(void);
|
||||
|
|
1902
misc/comm.c
1902
misc/comm.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue