mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-15 01:11:59 +00:00
made Sys_ConsoleInput() to return const
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@508 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7e595df33f
commit
6fffda6b99
4 changed files with 5 additions and 6 deletions
|
@ -598,7 +598,7 @@ Add them exactly as if they had been typed at the console
|
|||
*/
|
||||
void Host_GetConsoleCommands (void)
|
||||
{
|
||||
char *cmd;
|
||||
const char *cmd;
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/*
|
||||
Copyright (C) 1996-2001 Id Software, Inc.
|
||||
Copyright (C) 2002-2009 John Fitzgibbons and others
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
|
@ -40,7 +39,7 @@ void Sys_FileClose (int handle);
|
|||
void Sys_FileSeek (int handle, int position);
|
||||
int Sys_FileRead (int handle, void *dest, int count);
|
||||
int Sys_FileWrite (int handle,const void *data, int count);
|
||||
int Sys_FileTime (const char *path);
|
||||
int Sys_FileTime (const char *path);
|
||||
void Sys_mkdir (const char *path);
|
||||
|
||||
//
|
||||
|
@ -56,7 +55,7 @@ void Sys_Quit (void) __attribute__((__noreturn__));
|
|||
|
||||
double Sys_FloatTime (void);
|
||||
|
||||
char *Sys_ConsoleInput (void);
|
||||
const char *Sys_ConsoleInput (void);
|
||||
|
||||
void Sys_Sleep (void);
|
||||
// called to yield for a little bit so as
|
||||
|
|
|
@ -202,7 +202,7 @@ double Sys_FloatTime (void)
|
|||
return SDL_GetTicks() / 1000.0;
|
||||
}
|
||||
|
||||
char *Sys_ConsoleInput (void)
|
||||
const char *Sys_ConsoleInput (void)
|
||||
{
|
||||
static char con_text[256];
|
||||
static int textlen;
|
||||
|
|
|
@ -277,7 +277,7 @@ double Sys_FloatTime (void)
|
|||
return SDL_GetTicks() / 1000.0;
|
||||
}
|
||||
|
||||
char *Sys_ConsoleInput (void)
|
||||
const char *Sys_ConsoleInput (void)
|
||||
{
|
||||
static char con_text[256];
|
||||
static int textlen;
|
||||
|
|
Loading…
Reference in a new issue