added automatic native registration

added string include file
renamed typeutil and its functions
redid a bunch of the string natives
string natives now register

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40238
This commit is contained in:
David Anderson
2006-12-30 07:23:17 +00:00
parent 17af34bba5
commit 388c062c96
14 changed files with 242 additions and 71 deletions
@@ -3,11 +3,11 @@
#include "sp_vm_types.h"
inline cell_t ftoc(float val)
inline cell_t sp_ftoc(float val)
{
return *(cell_t *)&val;
}
inline float ctof(cell_t val)
inline float sp_ctof(cell_t val)
{
return *(float *)&val;
}
+2
View File
@@ -7,6 +7,8 @@ typedef uint32_t ucell_t;
typedef int32_t cell_t;
typedef uint32_t funcid_t;
#include "sp_typeutil.h"
#define SP_MAX_EXEC_PARAMS 32 /* Maximum number of parameters in a function */
/**