Update of /cvsroot/waba/waba/src/win32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11096
Added Files:
main.c
Log Message:
Moved main entry point method to main.c
--- NEW FILE: main.c ---
/*
* $Id: main.c,v 1.1 2004/12/21 00:43:41 mriem Exp $
*
* Copyright (c) 2004 Waba @ Sourceforge. All Rights Reserved
*/
#include "waba.h"
// --------------------------------------------------------------------------
//
// Shared code
//
// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
//
// Win32 Console mode
//
// --------------------------------------------------------------------------
#if defined(_CONSOLE)
/*
* Show the usage information.
*/
void usage() {
printf( "Waba (TM) Virtual Machine Version 2.0\n"
"Copyright (c) 2004, Waba @ Sourceforge.\n"
"Copyright (c) 1998, Wabasoft.\n"
"All rights reserved.\n"
"\n"
"Usage: waba [options] class\n"
"\n"
"See documentation for more information\n" );
}
/*
* Main method to the program.
*/
int main(int argc, char* argv[]) {
usage();
}
#endif
// --------------------------------------------------------------------------
//
// Win32 GUI mode
//
// --------------------------------------------------------------------------
#if defined(_WINDOWS)
void usage() {
MessageBox( NULL,
TEXT( "Waba (TM) Virtual Machine Version 2.0\n"
"Copyright (c) 2004, Waba @ Sourceforge.\n"
"Copyright (c) 1998, Wabasoft.\n"
"All rights reserved.\n"
"\n"
"Usage: waba [options] class\n"
"\n"
"See documentation for more information" ),
TEXT( "Usage"),
MB_ICONEXCLAMATION );
exit( 0 );
}
#endif
|