added minor changes for vms

This commit is contained in:
hyung-hwan 2012-05-28 07:11:13 +00:00
parent 5943d9d190
commit 4105128b3a
5 changed files with 9 additions and 1 deletions

View File

@ -128,7 +128,7 @@ enum qse_fio_mode_t
#elif defined(__DOS__) #elif defined(__DOS__)
typedef int qse_fio_hnd_t; typedef int qse_fio_hnd_t;
#elif defined(vms) || defined(__vms) #elif defined(vms) || defined(__vms)
typedef void* qse_fio_hnd_t; /* struct FAB* */ typedef void* qse_fio_hnd_t; /* struct FAB*, struct RAB* */
#else #else
typedef int qse_fio_hnd_t; typedef int qse_fio_hnd_t;
#endif #endif

View File

@ -43,6 +43,7 @@
#elif defined(vms) || defined(__vms) #elif defined(vms) || defined(__vms)
# include <starlet.h> /* (SYS$...) */ # include <starlet.h> /* (SYS$...) */
# include <ssdef.h> /* (SS$...) */ # include <ssdef.h> /* (SS$...) */
# include <lib$routines.h> /* (lib$...) */
#else #else
# include "syscall.h" # include "syscall.h"
#endif #endif
@ -169,6 +170,9 @@ void qse_assert_failed (
intdos (&regs, &regs); intdos (&regs, &regs);
} }
#elif defined(vms) || defined(__vms) #elif defined(vms) || defined(__vms)
lib$stop (SS$_ABORT); /* use SS$_OPCCUS instead? */
/* this won't be reached since lib$stop() terminates the process */
sys$exit (SS$_ABORT); /* this condition code can be shown with sys$exit (SS$_ABORT); /* this condition code can be shown with
* 'show symbol $status' from the command-line. */ * 'show symbol $status' from the command-line. */
#else #else

View File

@ -38,6 +38,8 @@
# include <io.h> # include <io.h>
# include <fcntl.h> # include <fcntl.h>
# include <errno.h> # include <errno.h>
#elif defined(vms) || defined(__vms)
# include <starlet.h>
#else #else
# include "syscall.h" # include "syscall.h"
#endif #endif

View File

@ -1,5 +1,6 @@
#include <qse/cmn/fio.h> #include <qse/cmn/fio.h>
#include <qse/cmn/mem.h> #include <qse/cmn/mem.h>
#include <qse/cmn/str.h>
#include <qse/cmn/stdio.h> #include <qse/cmn/stdio.h>
#include <locale.h> #include <locale.h>

View File

@ -1,5 +1,6 @@
#include <qse/cmn/fio.h> #include <qse/cmn/fio.h>
#include <qse/cmn/mem.h> #include <qse/cmn/mem.h>
#include <qse/cmn/str.h>
#include <qse/cmn/stdio.h> #include <qse/cmn/stdio.h>
#define R(f) \ #define R(f) \