diff snr--

This commit is contained in:
Bill Currie 2001-10-07 18:45:23 +00:00
parent 2f8efd7360
commit 5b8aca001b
2 changed files with 15 additions and 17 deletions

View file

@ -53,17 +53,16 @@ static const char rcsid[] =
#include <stdlib.h> #include <stdlib.h>
#ifndef _WIN32 #ifndef _WIN32
# include <sys/types.h>
# include <sys/mman.h>
# include <ctype.h> # include <ctype.h>
# include <signal.h> # include <signal.h>
# include <stdarg.h> # include <stdarg.h>
# include <sys/mman.h>
# include <sys/types.h>
#endif #endif
#include <SDL.h> #include <SDL.h>
#include <SDL_main.h> #include <SDL_main.h>
#include "QF/qargs.h"
#include "QF/qargs.h" #include "QF/qargs.h"
#include "QF/sys.h" #include "QF/sys.h"
@ -179,7 +178,7 @@ SDL_main (int c, char **v)
host_parms.argc = com_argc; host_parms.argc = com_argc;
host_parms.argv = com_argv; host_parms.argv = com_argv;
host_parms.memsize = 16 * 1024 * 1024; host_parms.memsize = 16 * 1024 * 1024; // 16MB default heap
j = COM_CheckParm ("-mem"); j = COM_CheckParm ("-mem");
if (j) if (j)
@ -190,6 +189,7 @@ SDL_main (int c, char **v)
printf ("Can't allocate memory for zone.\n"); printf ("Can't allocate memory for zone.\n");
return 1; return 1;
} }
#ifndef WIN32 #ifndef WIN32
noconinput = COM_CheckParm ("-noconinput"); noconinput = COM_CheckParm ("-noconinput");
if (!noconinput) if (!noconinput)

View file

@ -46,24 +46,25 @@ static const char rcsid[] =
# include <unistd.h> # include <unistd.h>
#endif #endif
#ifndef _WIN32
# include <stdarg.h>
# include <ctype.h>
# include <signal.h>
# include <sys/types.h>
# include <sys/mman.h>
#endif
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _WIN32
# include <sys/types.h>
# include <sys/mman.h>
# include <ctype.h>
# include <signal.h>
# include <stdarg.h>
#endif
#include <SDL.h> #include <SDL.h>
#include <SDL_main.h> #include <SDL_main.h>
#include "QF/sys.h"
#include "QF/qargs.h" #include "QF/qargs.h"
#include "QF/sys.h"
#include "client.h" #include "client.h"
#include "compat.h" #include "compat.h"
@ -81,7 +82,6 @@ qboolean Minimized = false;
void MaskExceptions (void); void MaskExceptions (void);
#endif #endif
void void
Sys_Init (void) Sys_Init (void)
{ {
@ -120,8 +120,6 @@ shutdown (void)
#endif #endif
} }
void void
Sys_DebugLog (const char *file, const char *fmt, ...) Sys_DebugLog (const char *file, const char *fmt, ...)
{ {
@ -181,7 +179,7 @@ SDL_main (int c, char **v)
host_parms.argc = com_argc; host_parms.argc = com_argc;
host_parms.argv = com_argv; host_parms.argv = com_argv;
host_parms.memsize = 16 * 1024 * 1024; // 16MB default heap host_parms.memsize = 16 * 1024 * 1024; // 16MB default heap
j = COM_CheckParm ("-mem"); j = COM_CheckParm ("-mem");
if (j) if (j)