added some DOS stuffs
This commit is contained in:
@ -2,7 +2,9 @@ SUBDIRS = cmn awk cut sed scm http
|
||||
|
||||
pkgincludedir = $(includedir)/qse
|
||||
|
||||
pkginclude_HEADERS = conf_msw.h conf_vms.h types.h macros.h pack1.h unpack.h
|
||||
pkginclude_HEADERS = \
|
||||
conf_msw.h conf_os2.h conf_dos.h conf_vms.h \
|
||||
types.h macros.h pack1.h unpack.h
|
||||
|
||||
if ENABLE_CXX
|
||||
pkginclude_HEADERS += Types.hpp
|
||||
|
@ -57,8 +57,9 @@ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
|
||||
install-pdf-recursive install-ps-recursive install-recursive \
|
||||
installcheck-recursive installdirs-recursive pdf-recursive \
|
||||
ps-recursive uninstall-recursive
|
||||
am__pkginclude_HEADERS_DIST = conf_msw.h conf_vms.h types.h macros.h \
|
||||
pack1.h unpack.h Types.hpp
|
||||
am__pkginclude_HEADERS_DIST = \
|
||||
conf_msw.h conf_os2.h conf_dos.h conf_vms.h \
|
||||
types.h macros.h pack1.h unpack.h Types.hpp
|
||||
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
||||
am__vpath_adj = case $$p in \
|
||||
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
||||
@ -255,8 +256,9 @@ top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
SUBDIRS = cmn awk cut sed scm http
|
||||
pkginclude_HEADERS = conf_msw.h conf_vms.h types.h macros.h pack1.h \
|
||||
unpack.h $(am__append_1)
|
||||
pkginclude_HEADERS = \
|
||||
conf_msw.h conf_os2.h conf_dos.h conf_vms.h \
|
||||
types.h macros.h pack1.h unpack.h $(am__append_1)
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
||||
|
||||
|
82
qse/include/qse/conf_dos.h
Normal file
82
qse/include/qse/conf_dos.h
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
||||
QSE is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
QSE is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with QSE. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* DOS for other platforms than x86?
|
||||
* If so, the endian should be defined selectively
|
||||
*/
|
||||
#define QSE_ENDIAN_LITTLE
|
||||
|
||||
/*
|
||||
* You must define which character type to use as a default character here.
|
||||
*
|
||||
* #define QSE_CHAR_IS_WCHAR
|
||||
* #define QSE_CHAR_IS_MCHAR
|
||||
*/
|
||||
|
||||
#if defined(__WATCOMC__) && defined(__386__)
|
||||
# define QSE_SIZEOF_CHAR 1
|
||||
# define QSE_SIZEOF_SHORT 2
|
||||
# define QSE_SIZEOF_INT 4
|
||||
# define QSE_SIZEOF_LONG 4
|
||||
# define QSE_SIZEOF_LONG_LONG 8
|
||||
#
|
||||
# define QSE_SIZEOF_VOID_P 4
|
||||
# define QSE_SIZEOF_FLOAT 4
|
||||
# define QSE_SIZEOF_DOUBLE 8
|
||||
# define QSE_SIZEOF_LONG_DOUBLE 8
|
||||
# define QSE_SIZEOF_WCHAR_T 2
|
||||
#
|
||||
# define QSE_SIZEOF___INT8 1
|
||||
# define QSE_SIZEOF___INT16 2
|
||||
# define QSE_SIZEOF___INT32 4
|
||||
# define QSE_SIZEOF___INT64 8
|
||||
# define QSE_SIZEOF___INT128 0
|
||||
#
|
||||
# define QSE_SIZEOF_OFF64_T 0
|
||||
# define QSE_SIZEOF_OFF_T 4
|
||||
#
|
||||
# define QSE_CHAR_IS_WCHAR
|
||||
#elif defined(__WATCOMC__) && !defined(__386__)
|
||||
# define QSE_SIZEOF_CHAR 1
|
||||
# define QSE_SIZEOF_SHORT 2
|
||||
# define QSE_SIZEOF_INT 2
|
||||
# define QSE_SIZEOF_LONG 4
|
||||
# define QSE_SIZEOF_LONG_LONG 8
|
||||
#
|
||||
# define QSE_SIZEOF_VOID_P 4
|
||||
# define QSE_SIZEOF_FLOAT 4
|
||||
# define QSE_SIZEOF_DOUBLE 8
|
||||
# define QSE_SIZEOF_LONG_DOUBLE 8
|
||||
# define QSE_SIZEOF_WCHAR_T 2
|
||||
#
|
||||
# define QSE_SIZEOF___INT8 1
|
||||
# define QSE_SIZEOF___INT16 2
|
||||
# define QSE_SIZEOF___INT32 4
|
||||
# define QSE_SIZEOF___INT64 8
|
||||
# define QSE_SIZEOF___INT128 0
|
||||
#
|
||||
# define QSE_SIZEOF_OFF64_T 0
|
||||
# define QSE_SIZEOF_OFF_T 4
|
||||
#
|
||||
# define QSE_CHAR_IS_WCHAR
|
||||
#else
|
||||
# error Define the size of various data types.
|
||||
#endif
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: conf_msw.h 287 2009-09-15 10:01:02Z hyunghwan.chung $
|
||||
* $Id$
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: types.h 450 2011-05-03 07:48:42Z hyunghwan.chung $
|
||||
* $Id: types.h 451 2011-05-03 14:00:38Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2011 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -36,6 +36,8 @@
|
||||
# include <qse/conf_msw.h>
|
||||
#elif defined(__OS2__)
|
||||
# include <qse/conf_os2.h>
|
||||
#elif defined(__DOS__)
|
||||
# include <qse/conf_dos.h>
|
||||
#elif defined(vms) || defined(__vms)
|
||||
# include <qse/conf_vms.h>
|
||||
#else
|
||||
|
Reference in New Issue
Block a user