2010-02-23 10:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/estack.c
* src/vm/fm.c
* src/vm/garbage.c
% Deleted unnecessary OS/2 INCL_* constant definitions.
* src/vm/cmdarg.c
* src/vm/thread.c
* src/vm/dynlibhb.c
+ Added comment for some exception where OS/2 INCL_ constants
hace to be defined before Harbour headers. (because hbstack.h
will include os2.h through hbthread.h in MT build-pass)
* src/vm/extrap.c
* src/common/hbgete.c
* src/common/hbffind.c
* src/common/hbver.c
* src/common/hbfsapi.c
* src/rtl/filesys.c
* src/rtl/diskspac.c
* src/rtl/gtos2/gtos2.c
* src/rtl/cputime.c
* src/rtl/disksphb.c
* contrib/hbtpathy/tpos2.c
* contrib/hbmzip/hbmzip.c
* contrib/hbqt/hbqt.h
% OS/2 '#define INCL_*' lines moved right before os2.h is included.
Now that os2.h isn't included by Harbour headers, this is possible.
This commit is contained in:
@@ -17,6 +17,35 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-02-23 10:12 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* src/vm/estack.c
|
||||
* src/vm/fm.c
|
||||
* src/vm/garbage.c
|
||||
% Deleted unnecessary OS/2 INCL_* constant definitions.
|
||||
|
||||
* src/vm/cmdarg.c
|
||||
* src/vm/thread.c
|
||||
* src/vm/dynlibhb.c
|
||||
+ Added comment for some exception where OS/2 INCL_ constants
|
||||
hace to be defined before Harbour headers. (because hbstack.h
|
||||
will include os2.h through hbthread.h in MT build-pass)
|
||||
|
||||
* src/vm/extrap.c
|
||||
* src/common/hbgete.c
|
||||
* src/common/hbffind.c
|
||||
* src/common/hbver.c
|
||||
* src/common/hbfsapi.c
|
||||
* src/rtl/filesys.c
|
||||
* src/rtl/diskspac.c
|
||||
* src/rtl/gtos2/gtos2.c
|
||||
* src/rtl/cputime.c
|
||||
* src/rtl/disksphb.c
|
||||
* contrib/hbtpathy/tpos2.c
|
||||
* contrib/hbmzip/hbmzip.c
|
||||
* contrib/hbqt/hbqt.h
|
||||
% OS/2 '#define INCL_*' lines moved right before os2.h is included.
|
||||
Now that os2.h isn't included by Harbour headers, this is possible.
|
||||
|
||||
2010-02-23 09:44 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* include/hbdefs.h
|
||||
+ <windows.h>/<os2.h> header inclusion (along with HB_OS_WIN_USED
|
||||
|
||||
@@ -51,9 +51,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_ERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapiitm.h"
|
||||
#include "hbapierr.h"
|
||||
@@ -80,6 +77,8 @@
|
||||
#elif defined( HB_OS_WIN )
|
||||
#include <windows.h>
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_ERRORS
|
||||
#include <os2.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -57,13 +57,12 @@
|
||||
#ifndef __HBQT_H
|
||||
#define __HBQT_H
|
||||
|
||||
#define OS2EMX_PLAIN_CHAR
|
||||
#define INCL_BASE
|
||||
#define INCL_PM
|
||||
|
||||
#include "hbapi.h"
|
||||
|
||||
#if defined( HB_OS_OS2 )
|
||||
# define OS2EMX_PLAIN_CHAR
|
||||
# define INCL_BASE
|
||||
# define INCL_PM
|
||||
# include <os2.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -51,12 +51,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define INCL_BASE
|
||||
#define INCL_DOS
|
||||
#define INCL_DOSERROR
|
||||
#define INCL_DOSDEVICES
|
||||
#define INCL_DOSDEVIOCTL
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapiitm.h"
|
||||
#include "hbapifs.h"
|
||||
@@ -65,6 +59,12 @@
|
||||
|
||||
#include "telepath.ch"
|
||||
|
||||
#define INCL_BASE
|
||||
#define INCL_DOS
|
||||
#define INCL_DOSERROR
|
||||
#define INCL_DOSDEVICES
|
||||
#define INCL_DOSDEVIOCTL
|
||||
|
||||
#include <os2.h>
|
||||
|
||||
HB_FUNC( __TP_INITPORTSPEED )
|
||||
|
||||
@@ -56,9 +56,6 @@
|
||||
# define _LARGEFILE64_SOURCE
|
||||
#endif
|
||||
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_DOSERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapifs.h"
|
||||
#include "hbvm.h"
|
||||
@@ -106,6 +103,9 @@
|
||||
|
||||
#elif defined( HB_OS_OS2 )
|
||||
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_DOSERRORS
|
||||
|
||||
#include <os2.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -50,10 +50,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* OS2 */
|
||||
#define INCL_DOSFILEMGR /* File Manager values */
|
||||
#define INCL_DOSERRORS /* DOS error values */
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapifs.h"
|
||||
#include "hb_io.h"
|
||||
@@ -68,6 +64,8 @@
|
||||
#define FILE_ATTRIBUTE_DEVICE 0x00000040
|
||||
#endif
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_DOSERRORS
|
||||
#include <os2.h>
|
||||
#include <stdio.h>
|
||||
#elif defined( HB_OS_UNIX )
|
||||
|
||||
@@ -51,10 +51,7 @@
|
||||
*/
|
||||
|
||||
/* NOTE: Notice that this code is needed as ANSI C getenv() crashes
|
||||
so badly when used from a Windows DLL. */
|
||||
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_ERRORS
|
||||
badly when used from a Windows DLL. */
|
||||
|
||||
#include "hbapi.h"
|
||||
|
||||
@@ -64,6 +61,8 @@
|
||||
#include "hbwince.h"
|
||||
#endif
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_ERRORS
|
||||
#include <os2.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -71,9 +71,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* NOTE: For OS/2. Must be ahead of any and all #include statements */
|
||||
#define INCL_DOSMISC
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbmemory.ch"
|
||||
|
||||
@@ -92,6 +89,7 @@
|
||||
#endif
|
||||
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_DOSMISC
|
||||
#include <os2.h>
|
||||
#elif defined( HB_OS_DOS )
|
||||
#include <dos.h>
|
||||
|
||||
@@ -50,10 +50,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define INCL_DOS
|
||||
#define INCL_DOSPROFILE
|
||||
#define INCL_ERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbdate.h"
|
||||
|
||||
@@ -62,6 +58,9 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#if defined( HB_OS_OS2 )
|
||||
#define INCL_DOS
|
||||
#define INCL_DOSPROFILE
|
||||
#define INCL_ERRORS
|
||||
#include <os2.h>
|
||||
#define BUFSIZE 16 * 1024
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -54,10 +54,6 @@
|
||||
return a (long) value, Harbour may return a (double) for large
|
||||
values, the decimal places are always set to zero, though. */
|
||||
|
||||
/* NOTE: For OS/2. Must be ahead of any and all #include statements */
|
||||
#define INCL_BASE
|
||||
#define INCL_DOSERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapierr.h"
|
||||
#include "hbapifs.h"
|
||||
@@ -80,6 +76,8 @@
|
||||
#include "hbwince.h"
|
||||
#endif
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_BASE
|
||||
#define INCL_DOSERRORS
|
||||
#include <os2.h>
|
||||
#elif defined( HB_OS_DOS )
|
||||
#include <dos.h>
|
||||
|
||||
@@ -50,10 +50,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* NOTE: For OS/2. Must be ahead of any and all #include statements */
|
||||
#define INCL_BASE
|
||||
#define INCL_DOSERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapierr.h"
|
||||
#include "hbapifs.h"
|
||||
@@ -70,6 +66,8 @@
|
||||
#include "hbwince.h"
|
||||
#endif
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_BASE
|
||||
#define INCL_DOSERRORS
|
||||
#include <os2.h>
|
||||
#elif defined( HB_OS_DOS )
|
||||
#include <dos.h>
|
||||
|
||||
@@ -99,11 +99,6 @@
|
||||
# define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/* OS2 */
|
||||
#define INCL_DOSFILEMGR /* File Manager values */
|
||||
#define INCL_DOSERRORS /* DOS error values */
|
||||
#define INCL_DOSDATETIME /* DATETIME functions */
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbvm.h"
|
||||
#include "hbstack.h"
|
||||
@@ -186,6 +181,9 @@
|
||||
#include <time.h>
|
||||
#include <utime.h>
|
||||
#elif defined( HB_OS_OS2 )
|
||||
#define INCL_DOSFILEMGR
|
||||
#define INCL_DOSERRORS
|
||||
#define INCL_DOSDATETIME
|
||||
#include <os2.h>
|
||||
#include <time.h>
|
||||
#include <share.h>
|
||||
|
||||
@@ -90,14 +90,6 @@
|
||||
|
||||
/* NOTE: User programs should never call this layer directly! */
|
||||
|
||||
#define INCL_BASE
|
||||
#define INCL_VIO
|
||||
#define INCL_KBD
|
||||
#define INCL_MOU
|
||||
#define INCL_DOSMEMMGR
|
||||
#define INCL_DOSPROCESS
|
||||
#define INCL_NOPMAPI
|
||||
|
||||
#define HB_GT_NAME OS2
|
||||
|
||||
#include "hbgtcore.h"
|
||||
@@ -106,6 +98,14 @@
|
||||
#include "hbapiitm.h"
|
||||
#include "inkey.ch"
|
||||
|
||||
#define INCL_BASE
|
||||
#define INCL_VIO
|
||||
#define INCL_KBD
|
||||
#define INCL_MOU
|
||||
#define INCL_DOSMEMMGR
|
||||
#define INCL_DOSPROCESS
|
||||
#define INCL_NOPMAPI
|
||||
|
||||
#include <os2.h>
|
||||
|
||||
/* convert 16:16 address to 0:32 */
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* NOTE: Need to have these before Harbour headers,
|
||||
because in MT mode, they will automatically #include <os2.h>. */
|
||||
#define INCL_DOSPROCESS
|
||||
#define INCL_DOSERRORS
|
||||
#define INCL_DOSMODULEMGR
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
/* NOTE: Need to have these before Harbour headers,
|
||||
because in MT mode, they will automatically #include <os2.h>. */
|
||||
#define INCL_DOSMODULEMGR
|
||||
#define INCL_ERRORS
|
||||
|
||||
|
||||
@@ -52,9 +52,6 @@
|
||||
|
||||
#define HB_STACK_PRELOAD
|
||||
|
||||
#define INCL_DOSPROCESS
|
||||
|
||||
|
||||
#include "hbvmopt.h"
|
||||
#include "hbapi.h"
|
||||
#include "hbapicls.h"
|
||||
|
||||
@@ -68,9 +68,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define INCL_DOSEXCEPTIONS
|
||||
#define INCL_ERRORS
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbvm.h"
|
||||
#include "hbapifs.h"
|
||||
@@ -97,6 +94,8 @@
|
||||
# define TH32CS_SNAPMODULE32 0
|
||||
# endif
|
||||
#elif defined( HB_OS_OS2 )
|
||||
# define INCL_DOSEXCEPTIONS
|
||||
# define INCL_ERRORS
|
||||
# include <os2.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -81,13 +81,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* NOTE: For OS/2. Must be ahead of any and all #include statements */
|
||||
#define INCL_BASE
|
||||
#define INCL_DOSMISC
|
||||
#define INCL_DOSERRORS
|
||||
#define INCL_DOSPROCESS
|
||||
|
||||
|
||||
/* malloc.h has been obsoleted by stdlib.h, which is included via
|
||||
hbvmpub.h, which is include via hbapi.h
|
||||
#include <malloc.h>
|
||||
|
||||
@@ -50,10 +50,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define INCL_DOSPROCESS
|
||||
#define INCL_DOSDATETIME
|
||||
#define INCL_NOPMAPI
|
||||
|
||||
#include "hbvmopt.h"
|
||||
#include "hbapi.h"
|
||||
#include "hbstack.h"
|
||||
|
||||
@@ -77,6 +77,8 @@
|
||||
delivered.
|
||||
*/
|
||||
|
||||
/* NOTE: Need to have these before Harbour headers,
|
||||
because in MT mode, they will automatically #include <os2.h>. */
|
||||
#define INCL_DOSSEMAPHORES
|
||||
#define INCL_DOSPROCESS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user