version 1.89 | | version 1.90 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.89 2005/04/16 22:05:08 ryo_saeba Exp $"; | | * "$Id: main.c,v 1.90 2005/06/22 18:22:15 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
CFParm CFP; | | CFParm CFP; |
#ifdef WIN32 /* ---win32 this sets the win32 from 0d0a to 0a handling */ | | #ifdef WIN32 /* ---win32 this sets the win32 from 0d0a to 0a handling */ |
_fmode = _O_BINARY ; | | _fmode = _O_BINARY ; |
| | bRunning = 1; |
#endif | | #endif |
| | |
#ifdef DEBUG_MALLOC_LEVEL | | #ifdef DEBUG_MALLOC_LEVEL |
| | |
settings.argv=argv; | | settings.argv=argv; |
init(argc, argv); | | init(argc, argv); |
initPlugins(); /* GROS - Init the Plugins */ | | initPlugins(); /* GROS - Init the Plugins */ |
| | #ifdef WIN32 |
| | while ( bRunning ) |
| | { |
| | #else |
for(;;) { | | for(;;) { |
| | #endif |
nroferrors = 0; | | nroferrors = 0; |
| | |
doeric_server(); | | doeric_server(); |
| | |
| | |
sleep_delta(); /* Slepp proper amount of time before next tick */ | | sleep_delta(); /* Slepp proper amount of time before next tick */ |
} | | } |
| | emergency_save( 0 ); |
| | cleanup( ); |
return 0; | | return 0; |
} | | } |