*** empty log message ***

This commit is contained in:
Antonio Linares
1999-10-05 06:02:30 +00:00
parent e0f057290c
commit 8560e7a374
5 changed files with 52 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ harbour.lib : achoice.obj adir.obj alert.obj arrays.obj asort.obj \
dir.obj do.obj dynsym.obj environ.obj terror.obj cmdarg.obj \
errorapi.obj errorsys.obj harbinit.obj extend.obj fileread.obj filesys.obj fm.obj \
hardcr.obj hb_f.obj hvm.obj initsymb.obj inkey.obj itemapi.obj \
langapi.obj math.obj mathx.obj memofile.obj memvars.obj menuto.obj mtran.obj msges.obj \
langapi.obj mainstd.obj mainwin.obj math.obj mathx.obj memofile.obj memvars.obj menuto.obj mtran.obj msges.obj \
objfunc.obj readvar.obj xsavescr.obj memvarbl.obj \
set.obj setcolor.obj setkey.obj strfmt.obj strings.obj symbols.obj stringp.obj \
stringsx.obj tbcolumn.obj tbrowse.obj tbrwtext.obj tclass.obj tget.obj tgetlist.obj tone.obj transfrm.obj
@@ -65,6 +65,8 @@ initsymb.obj : initsymb.c extend.h hbdefs.h
inkey.obj : inkey.c extend.h hbdefs.h
itemapi.obj : itemapi.c extend.h hbdefs.h
langapi.obj : langapi.c extend.h hbdefs.h
mainstd.obj : mainstd.c extend.h hbdefs.h
mainwin.obj : mainwin.c extend.h hbdefs.h
math.obj : math.c extend.h hbdefs.h
mathx.obj : mathx.c extend.h hbdefs.h
memofile.obj : memofile.c extend.h hbdefs.h

View File

@@ -230,11 +230,9 @@ static USHORT s_uiActionRequest = 0;
/* application entry point */
int main( int argc, char * argv[] )
void hb_vmInit( void )
{
HB_DEBUG( "main\n" );
hb_cmdargInit( argc, argv );
HB_DEBUG( "hb_vmInit\n" );
/* initialize internal data structures */
aStatics.type = IT_NIL;
@@ -305,8 +303,9 @@ int main( int argc, char * argv[] )
hb_vmPushNil(); /* places NIL at self */
iArgCount = 0;
for( i = 1; i < argc; i++ ) /* places application parameters on the stack */
for( i = 1; i < hb_cmdargARGC(); i++ ) /* places application parameters on the stack */
{
char ** argv = hb_cmdargARGV();
/* Filter out any parameters beginning with //, like //INFO */
if( ! hb_cmdargIsInternal( argv[ i ] ) )
{
@@ -317,12 +316,6 @@ int main( int argc, char * argv[] )
hb_vmDo( iArgCount ); /* invoke it with number of supplied parameters */
}
hb_vmQuit();
/* This point is never reached */
return 0;
}
void hb_vmQuit( void )

View File

@@ -0,0 +1,15 @@
/*
* $Id
*/
/* Std applications entry point */
void hb_vmInit( void );
void hb_vmQuit( void );
int main( int argc, char * argv[] )
{
hb_cmdargInit( argc, argv );
hb_vmInit();
hb_vmQuit();
}

View File

@@ -0,0 +1,29 @@
/*
* $Id
*/
/* Windows applications entry point */
#include <windows.h>
void hb_cmdargInit( int argc, char * argv[] );
void hb_vmInit( void );
void hb_vmQuit( void );
HANDLE hb_hInstance = 0, hb_hPrevInstance = 0;
int WINAPI WinMain( HINSTANCE hInstance, /* handle to current instance */
HINSTANCE hPrevInstance, /* handle to previous instance */
LPSTR lpCmdLine, /* pointer to command line */
int nCmdShow ) /* show state of window */
{
char * argv[ 1 ]; /* TO DO: parse lpCmdLine and generate the proper values */
argv[ 0 ] = 0; /* temporary workaround */
hb_cmdargInit( 0, argv );
hb_vmInit();
hb_vmQuit();
return 0; /* TO DO: return the proper exit value */
}

View File

@@ -4,5 +4,4 @@ rem $Id$
rem
..\bin\harbour %1 /n /i..\include
bcc32 %1.c -e%1.exe -O2 -I..\include -L..\lib\b32 -v harbour.lib terminal.lib hbpp.lib hbgt.lib rdd.lib
del %1.c
bcc32 -e%1.exe -O2 -I..\include -L..\lib\b32 -v harbour.lib terminal.lib hbpp.lib hbgt.lib rdd.lib %1.c