19991007-01:16 GMT+1

This commit is contained in:
Viktor Szakats
1999-10-06 23:36:06 +00:00
parent b73f13331f
commit 82550d4ec4
5 changed files with 65 additions and 2 deletions

View File

@@ -1,3 +1,13 @@
19991007-01:16 GMT+1 Victor Szel <info@szelvesz.hu>
+ source/vm/main.c (added)
source/vm/Makefile
include/hbsetup.h
+ main.c added as an includer for mainwin.c or mainstd.c, selectable
via #defines in hbsetup.h, or via command line, just like the GTAPI
and MOUSEAPI selection. Can be used from all build systems.
* source/rtl/memoline.c
! Small formatting fix.
19991006-18:55 EDT Paul Tucker <ptucker@sympatico.ca>
* makefile.vc
* corrected creation of hbrun.exe

View File

@@ -120,6 +120,15 @@
*/
/*#define HARBOUR_STRICT_CLIPPER_COMPATIBILITY*/
/* ***********************************************************************
* You can select here, what type of main entry will be used in the
* application (main() or WinMain()).
*
* By default the standard C main() function will be used.
*/
/*#define HARBOUR_MAIN_STD*/
/*#define HARBOUR_MAIN_WIN*/
/* ***********************************************************************
* These symbols defines if we want to use the GT API (and which platform
* to build the GT API for, if using the GNU Make System).

View File

@@ -134,7 +134,7 @@ HARBOUR HB_MEMOLINE( void )
if( ulLineNumber == ulLines )
{
ULONG ulSpAdded = 0;
char * pszLine = (char *)hb_xgrab( ulLineLength );
char * pszLine = ( char * ) hb_xgrab( ulLineLength );
memset( pszLine, ' ', ulLineLength );

View File

@@ -10,7 +10,7 @@ C_SOURCES=\
dynsym.c \
hvm.c \
initsymb.c \
mainstd.c \
main.c \
LIB=vm

44
harbour/source/vm/main.c Normal file
View File

@@ -0,0 +1,44 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* Main entry point selector file
*
* Copyright 1999 Victor Szel <info@szelvesz.hu>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version, with one exception:
*
* The exception is that if you link the Harbour Runtime Library (HRL)
* and/or the Harbour Virtual Machine (HVM) with other files to produce
* an executable, this does not by itself cause the resulting executable
* to be covered by the GNU General Public License. Your use of that
* executable is in no way restricted on account of linking the HRL
* and/or HVM code into it.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA (or visit
* their web site at http://www.gnu.org/).
*
*/
#include "hbsetup.h"
#if defined(HARBOUR_MAIN_STD)
#include "mainstd.c"
#elif defined(HARBOUR_MAIN_WIN)
#include "mainwin.c"
#else
#include "mainstd.c" /* Use the standard ANSI C entry point if not speficied */
#endif