From ffca3d15d5077e1dddc2e0e9f07e3403fe34b48f Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 14 Dec 2000 21:46:02 +0000 Subject: [PATCH] --- source/script/function.cpp | 69 ++++++++++++++++++++++++++++++++++++++ source/script/function.h | 45 +++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 source/script/function.cpp create mode 100644 source/script/function.h diff --git a/source/script/function.cpp b/source/script/function.cpp new file mode 100644 index 000000000..27e3f4fa2 --- /dev/null +++ b/source/script/function.cpp @@ -0,0 +1,69 @@ +/*========================================================================= + + function.cpp + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2000 Climax Development Ltd + +===========================================================================*/ + + +/*---------------------------------------------------------------------- + Includes + -------- */ + +#include "script\function.h" + +#ifndef __SYSTEM_DBG_H__ +#include "system\dbg.h" +#endif + + +/* Std Lib + ------- */ + +/* Data + ---- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +typedef struct +{ + signed short (*m_func)(signed short *_args); + int m_argCount; +} FunctionDef; + + +/*---------------------------------------------------------------------- + Function Prototypes + ------------------- */ + +/*---------------------------------------------------------------------- + Vars + ---- */ + +static FunctionDef s_functionDefs[]= +{ +}; +static int s_numFunctionDefs=sizeof(s_functionDefs)/sizeof(FunctionDef); + + +/*---------------------------------------------------------------------- + Function: + Purpose: + Params: + Returns: + ---------------------------------------------------------------------- */ + +/*=========================================================================== + end */ diff --git a/source/script/function.h b/source/script/function.h new file mode 100644 index 000000000..700fb2375 --- /dev/null +++ b/source/script/function.h @@ -0,0 +1,45 @@ +/*========================================================================= + + function.h + + Author: PKG + Created: + Project: Spongebob + Purpose: + + Copyright (c) 2000 Climax Development Ltd + +===========================================================================*/ + +#ifndef __SCRIPT_FUNCTION_H__ +#define __SCRIPT_FUNCTION_H__ + +/*---------------------------------------------------------------------- + Includes + -------- */ + +/* Std Lib + ------- */ + +/*---------------------------------------------------------------------- + Tyepdefs && Defines + ------------------- */ + +/*---------------------------------------------------------------------- + Structure defintions + -------------------- */ + +/*---------------------------------------------------------------------- + Globals + ------- */ + +/*---------------------------------------------------------------------- + Functions + --------- */ + +/*---------------------------------------------------------------------- */ + +#endif /* __SCRIPT_FUNCTION_H__ */ + +/*=========================================================================== + end */