[qfcc] Hide "function" type behind an @

I'm not sure it's all that useful and thus it clutters the namespace.
This commit is contained in:
Bill Currie 2020-03-25 21:04:22 +09:00
parent 6f7ddf52ac
commit 1f8cc7186c
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
typedef void () void_function;
int PR_SetField (entity ent, string field, string value) = #0;
function PR_FindFunction (string func) = #0;
@function PR_FindFunction (string func) = #0;
@static void ParseEntities (string ent_data);
@ -66,7 +66,7 @@ function PR_FindFunction (string func) = #0;
local int count;
local string field, value;
local plitem_t keys;
local function func;
local @function func;
local Entity *e;
classname = PL_String (PL_ObjectForKey (dict, "classname"));

View file

@ -378,8 +378,8 @@ static keyword_t qf_keywords[] = {
{"double", TYPE, &type_double},
{"int", TYPE, &type_integer },
{"unsigned", TYPE, &type_integer },//FIXME
{"function", TYPE, &type_function },
{"@function", TYPE, &type_function },
{"@args", ARGS, 0 },
{"@va_list", TYPE, &type_va_list },
{"@param", TYPE, &type_param },