touched up more
This commit is contained in:
parent
f795450b1b
commit
fab23e8575
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: pio.c 441 2011-04-22 14:28:43Z hyunghwan.chung $
|
* $Id: pio.c 454 2011-05-06 15:28:27Z hyunghwan.chung $
|
||||||
*
|
*
|
||||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||||
This file is part of QSE.
|
This file is part of QSE.
|
||||||
@ -30,6 +30,8 @@
|
|||||||
# define INCL_DOSPROCESS
|
# define INCL_DOSPROCESS
|
||||||
# define INCL_DOSERRORS
|
# define INCL_DOSERRORS
|
||||||
# include <os2.h>
|
# include <os2.h>
|
||||||
|
#elif defined(__DOS__)
|
||||||
|
# include <io.h>
|
||||||
#else
|
#else
|
||||||
# include "syscall.h"
|
# include "syscall.h"
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
@ -116,6 +118,8 @@ qse_pio_t* qse_pio_init (
|
|||||||
qse_mchar_t* cmd_line = QSE_NULL;
|
qse_mchar_t* cmd_line = QSE_NULL;
|
||||||
qse_mchar_t* cmd_file;
|
qse_mchar_t* cmd_file;
|
||||||
HFILE os2devnul = (HFILE)-1;
|
HFILE os2devnul = (HFILE)-1;
|
||||||
|
#elif defined(__DOS__)
|
||||||
|
# error UNSUPPORTED
|
||||||
#else
|
#else
|
||||||
qse_pio_pid_t pid;
|
qse_pio_pid_t pid;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: sio.c 441 2011-04-22 14:28:43Z hyunghwan.chung $
|
* $Id: sio.c 454 2011-05-06 15:28:27Z hyunghwan.chung $
|
||||||
*
|
*
|
||||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||||
This file is part of QSE.
|
This file is part of QSE.
|
||||||
@ -43,6 +43,8 @@ static qse_sio_t __sio_in =
|
|||||||
(HANDLE)STD_INPUT_HANDLE, /* handle */
|
(HANDLE)STD_INPUT_HANDLE, /* handle */
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
(HFILE)0, /* handle */
|
(HFILE)0, /* handle */
|
||||||
|
#elif defined(__DOS__)
|
||||||
|
0, /* handle */
|
||||||
#else
|
#else
|
||||||
0, /* handle */
|
0, /* handle */
|
||||||
#endif
|
#endif
|
||||||
@ -82,6 +84,8 @@ static qse_sio_t __sio_out =
|
|||||||
(HANDLE)STD_OUTPUT_HANDLE,
|
(HANDLE)STD_OUTPUT_HANDLE,
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
(HFILE)1,
|
(HFILE)1,
|
||||||
|
#elif defined(__DOS__)
|
||||||
|
1,
|
||||||
#else
|
#else
|
||||||
1,
|
1,
|
||||||
#endif
|
#endif
|
||||||
@ -121,6 +125,8 @@ static qse_sio_t __sio_err =
|
|||||||
(HANDLE)STD_ERROR_HANDLE,
|
(HANDLE)STD_ERROR_HANDLE,
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
(HFILE)2,
|
(HFILE)2,
|
||||||
|
#elif defined(__DOS__)
|
||||||
|
2,
|
||||||
#else
|
#else
|
||||||
2,
|
2,
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user