[ruamoko] Fix several builtin declarations

Trying to build and run frikbot with ruamoko progs found a pile off
issues.
This commit is contained in:
Bill Currie 2022-11-12 14:39:18 +09:00
parent bbd2cdb8c8
commit 07f897122f
9 changed files with 16 additions and 16 deletions

View file

@ -62,7 +62,7 @@
/**
Print a string to the console if the "developer" Cvar is nonzero.
*/
@extern void dprint (.../*string str*/);
@extern void dprint (string str);
/**
Abort (crash) the server. "str" is the message the server crashes with.

View file

@ -101,7 +101,7 @@
This function must be called multiple times to get multiple results.
Stupid, but functional.
*/
@extern entity find (entity start, ...);
@extern @attribute(no_va_list) entity find (entity start, ...);
#endif
/**

View file

@ -34,8 +34,8 @@
#define MULTICAST_PHS_R 4
#define MULTICAST_PVS_R 5
@extern void bprint (...);
@extern void sprint (.../*entity client, string s*/);
@extern void bprint (float level, string s);
@extern void sprint (entity client, float level, string s);
@extern void WriteBytes (float to, ...);
@extern void WriteByte (float to, float f);
@extern void WriteChar (float to, float f);
@ -47,6 +47,6 @@
@extern void WriteAngleV (float to, vector v);
@extern void WriteString (float to, string s);
@extern void WriteEntity (float to, entity s);
@extern void centerprint (...);
@extern void centerprint (entity client, string s);
#endif//__ruamoko_message_h

View file

@ -1,8 +1,8 @@
#ifndef __ruamoko_server_h
#define __ruamoko_server_h
@extern void precache_sound (string s);
@extern void precache_model (string s);
@extern string precache_sound (string s);
@extern string precache_model (string s);
@extern void stuffcmd (entity client, string s);
@extern void localcmd (string s);
@extern void changelevel (string s);

View file

@ -3,8 +3,8 @@
@extern float time;
@extern void precache_sound (string s);
@extern void precache_model (string s);
@extern string precache_sound (string s);
@extern string precache_model (string s);
@extern void stuffcmd (entity client, string s);
@extern void localcmd (string s);
@extern void changelevel (string s);

View file

@ -5,6 +5,6 @@ void coredump (void) = #28;
void traceon (void) = #29;
void traceoff (void) = #30;
void eprint (entity e) = #31;
void dprint (.../*string str*/) = #25;
void dprint (string s) = #25;
void error (.../*string str*/) = #10;
void objerror (.../*string e*/) = #11;

View file

@ -8,7 +8,7 @@ void remove (entity e) = #15;
#ifdef __VERSION6__
entity find (entity start, .string field, string match) = #18;
#else
entity find (entity start, ...) = #18;
entity @attribute(no_va_list) find (entity start, ...) = #18;
#endif
entity findradius (vector origin, float radius) = #22;
entity nextent (entity e) = #47;

View file

@ -1,7 +1,7 @@
#include <message.h>
void (...) bprint = #23;
void (.../*entity client, string s*/) sprint = #24;
void (float level, string s) bprint = #23;
void (entity client, float level, string s) sprint = #24;
void (float to, float f) WriteByte = #52;
void (float to, float f) WriteChar = #53;
void (float to, float f) WriteShort = #54;
@ -13,4 +13,4 @@ void (float to, entity s) WriteEntity = #59;
void (float to, ...) WriteBytes = #0;
void (float to, vector v) WriteCoordV = #0;
void (float to, vector v) WriteAngleV = #0;
void (...) centerprint = #73;
void (entity client, string s) centerprint = #73;

View file

@ -1,7 +1,7 @@
#include <server.h>
void (string s) precache_sound = #19;
void (string s) precache_model = #20;
string (string s) precache_sound = #19;
string (string s) precache_model = #20;
void (entity client, string s) stuffcmd = #21;
void (string s) localcmd = #46;
void (string s) changelevel = #70;