no more Sys_* functions defined in nq or qw :)

This commit is contained in:
Bill Currie 2002-06-07 15:46:15 +00:00
parent 3de07df3d2
commit 442ccc3deb
13 changed files with 20 additions and 44 deletions

View file

@ -853,7 +853,6 @@ Host_Init (void)
Cmd_Init_Hash ();
Cvar_Init ();
Sys_Init_Cvars ();
Sys_Init ();
Cbuf_Init ();
Cmd_Init ();

View file

@ -80,18 +80,12 @@ int noconinput;
#endif
void
Sys_Init (void)
startup (void)
{
#ifdef WIN32
OSVERSIONINFO vinfo;
#endif
#ifdef USE_INTEL_ASM
#ifdef _WIN32
Sys_MaskExceptions ();
#endif
#endif
#ifdef _WIN32
// make sure the timer is high precision, otherwise NT gets 18ms resolution
timeBeginPeriod (1);
@ -105,6 +99,8 @@ Sys_Init (void)
Sys_Error ("This version of " PROGRAM
" requires at least Win95 or NT 4.0");
}
#else
signal (SIGFPE, SIG_IGN);
#endif
}
@ -125,9 +121,7 @@ SDL_main (int c, char **v)
{
double time, oldtime, newtime;
#ifndef WIN32
signal (SIGFPE, SIG_IGN);
#endif
startup ();
memset (&host_parms, 0, sizeof (host_parms));

View file

@ -62,12 +62,6 @@ static const char rcsid[] =
qboolean isDedicated = false;
void
Sys_Init (void)
{
}
static void
shutdown (void)
{

View file

@ -76,11 +76,6 @@ shutdown (void)
fflush (stdout);
}
void
Sys_Init (void)
{
}
int
main (int argc, const char **argv)
{

View file

@ -93,7 +93,7 @@ findhandle (void)
void
Sys_Init (void)
startup (void)
{
LARGE_INTEGER PerformanceFreq;
unsigned int lowpart, highpart;
@ -179,6 +179,8 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
if (hPrevInstance)
return 0;
startup ();
global_hInstance = hInstance;
global_nCmdShow = nCmdShow;

View file

@ -52,11 +52,6 @@ shutdown (void)
{
}
void
Sys_Init (void)
{
}
const char *newargv[256];
int

View file

@ -1668,7 +1668,6 @@ Host_Init (void)
Cmd_Init_Hash ();
Cvar_Init ();
Sys_Init_Cvars ();
Sys_Init ();
Cbuf_Init ();
Cmd_Init ();

View file

@ -81,13 +81,11 @@ int noconinput;
#endif
void
Sys_Init (void)
startup (void)
{
#ifdef WIN32
OSVERSIONINFO vinfo;
#endif
#ifdef _WIN32
// make sure the timer is high precision, otherwise NT gets 18ms resolution
timeBeginPeriod (1);
@ -101,6 +99,8 @@ Sys_Init (void)
Sys_Error ("This version of " PROGRAM
" requires at least Win95 or NT 4.0");
}
#else
signal (SIGFPE, SIG_IGN);
#endif
}
@ -121,9 +121,7 @@ SDL_main (int c, char **v)
{
double time, oldtime, newtime;
#ifndef WIN32
signal (SIGFPE, SIG_IGN);
#endif
startup ();
memset (&host_parms, 0, sizeof (host_parms));

View file

@ -63,11 +63,6 @@ int noconinput = 0;
qboolean is_server = false;
char *svs_info;
void
Sys_Init (void)
{
}
static void
shutdown (void)
{

View file

@ -77,7 +77,7 @@ HANDLE qwclsemaphore;
static HANDLE tevent;
void
Sys_Init (void)
startup (void)
{
OSVERSIONINFO vinfo;
@ -154,6 +154,8 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
if (hPrevInstance)
return 0;
startup ();
global_hInstance = hInstance;
global_nCmdShow = nCmdShow;

View file

@ -2412,7 +2412,6 @@ SV_Init (void)
Cmd_Init_Hash ();
Cvar_Init ();
Sys_Init_Cvars ();
Sys_Init ();
Cvar_Get ("cmd_warncmd", "1", CVAR_NONE, NULL, NULL);

View file

@ -111,7 +111,7 @@ wrfpcr(unsigned long val)
#endif
void
Sys_Init (void)
startup (void)
{
#ifdef __alpha__
wrfpcr (rdfpcr () | 1L << 47);
@ -123,6 +123,8 @@ main (int argc, const char *argv[])
{
double time, oldtime, newtime;
startup ();
memset (&host_parms, 0, sizeof (host_parms));
COM_InitArgv (argc, argv);

View file

@ -48,7 +48,7 @@ info_t **svs_info = &svs.info;
void
Sys_Init (void)
startup (void)
{
OSVERSIONINFO vinfo;
@ -78,6 +78,8 @@ main (int argc, const char **argv)
{
double newtime, time, oldtime;
startup ();
COM_InitArgv (argc, argv);
host_parms.argc = com_argc;