globle int EnvDefineFunction( void *theEnv, const char *name, int returnType, int (*pointer)(void *), const char *actualName) { return(DefineFunction3(theEnv,name,returnType,pointer,actualName,NULL,TRUE,NULL)); }
globle int EnvDefineFunction2( void *theEnv, char *name, int returnType, int (*pointer)(void *), char *actualName, char *restrictions) { return(DefineFunction3(theEnv,name,returnType,pointer,actualName,restrictions,TRUE,NULL)); }
globle int EnvDefineFunctionWithContext( void *theEnv, char *name, int returnType, int (*pointer)(void *), char *actualName, void *context) { return(DefineFunction3(theEnv,name,returnType,pointer,actualName,NULL,TRUE,context)); }
bool EnvDefineFunction( void *theEnv, const char *name, int returnType, int (*pointer)(void *), const char *actualName) { return(DefineFunction3(theEnv,name,returnType,0, (void (*)(UDFContext *,CLIPSValue *)) pointer, actualName,UNBOUNDED,UNBOUNDED,NULL,NULL)); }
bool EnvDefineFunction2WithContext( void *theEnv, const char *name, int returnType, int (*pointer)(void *), const char *actualName, const char *restrictions, void *context) { return(DefineFunction3(theEnv,name,returnType,0, (void (*)(UDFContext *,CLIPSValue *)) pointer, actualName,UNBOUNDED,UNBOUNDED,restrictions,context)); }
globle int DefineFunction( const char *name, int returnType, int (*pointer)(void), const char *actualName) { void *theEnv; theEnv = GetCurrentEnvironment(); return(DefineFunction3(theEnv,name,returnType, (int (*)(void *)) pointer, actualName,NULL,FALSE,NULL)); }
bool EnvAddUDF( Environment *theEnv, const char *clipsFunctionName, const char *returnTypes, void (*cFunctionPointer)(UDFContext *,CLIPSValue *), const char *cFunctionName, int minArgs, int maxArgs, const char *argumentTypes, void *context) { unsigned returnTypeBits; PopulateRestriction(theEnv,&returnTypeBits,ANY_TYPE,returnTypes,0); return(DefineFunction3(theEnv,clipsFunctionName,'z',returnTypeBits,cFunctionPointer, cFunctionName,minArgs,maxArgs,argumentTypes,context)); }