mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 13:21:31 +00:00
go fuck yourself stupid compiler
...your guesses should not be treated as errors.
This commit is contained in:
parent
010c52aed2
commit
55400a262d
1 changed files with 6 additions and 6 deletions
|
@ -621,20 +621,20 @@ void CON_Ticker(void)
|
||||||
// Necessary due to moving cursor
|
// Necessary due to moving cursor
|
||||||
//
|
//
|
||||||
|
|
||||||
static inline void CON_InputClear(void)
|
static void CON_InputClear(void)
|
||||||
{
|
{
|
||||||
memset(inputlines[inputline], 0, CON_MAXPROMPTCHARS);
|
memset(inputlines[inputline], 0, CON_MAXPROMPTCHARS);
|
||||||
input_cur = input_sel = input_len = 0;
|
input_cur = input_sel = input_len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void CON_InputSetString(const char *c)
|
static void CON_InputSetString(const char *c)
|
||||||
{
|
{
|
||||||
memset(inputlines[inputline], 0, CON_MAXPROMPTCHARS);
|
memset(inputlines[inputline], 0, CON_MAXPROMPTCHARS);
|
||||||
strcpy(inputlines[inputline], c);
|
strcpy(inputlines[inputline], c);
|
||||||
input_cur = input_sel = input_len = strlen(c);
|
input_cur = input_sel = input_len = strlen(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void CON_InputAddString(const char *c)
|
static void CON_InputAddString(const char *c)
|
||||||
{
|
{
|
||||||
size_t csize = strlen(c);
|
size_t csize = strlen(c);
|
||||||
if (input_len + csize > CON_MAXPROMPTCHARS-1)
|
if (input_len + csize > CON_MAXPROMPTCHARS-1)
|
||||||
|
@ -646,7 +646,7 @@ static inline void CON_InputAddString(const char *c)
|
||||||
input_sel = (input_cur += csize);
|
input_sel = (input_cur += csize);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void CON_InputDelSelection(void)
|
static void CON_InputDelSelection(void)
|
||||||
{
|
{
|
||||||
size_t start, end, len;
|
size_t start, end, len;
|
||||||
if (input_cur > input_sel)
|
if (input_cur > input_sel)
|
||||||
|
@ -669,7 +669,7 @@ static inline void CON_InputDelSelection(void)
|
||||||
input_sel = input_cur = start;
|
input_sel = input_cur = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void CON_InputAddChar(char c)
|
static void CON_InputAddChar(char c)
|
||||||
{
|
{
|
||||||
if (input_len >= CON_MAXPROMPTCHARS-1)
|
if (input_len >= CON_MAXPROMPTCHARS-1)
|
||||||
return;
|
return;
|
||||||
|
@ -680,7 +680,7 @@ static inline void CON_InputAddChar(char c)
|
||||||
input_sel = input_cur;
|
input_sel = input_cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void CON_InputDelChar(void)
|
static void CON_InputDelChar(void)
|
||||||
{
|
{
|
||||||
if (!input_cur)
|
if (!input_cur)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue