- use build in data types
git-svn-id: http://moon:8086/svn/mips@35 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+7
-7
@@ -47,7 +47,7 @@ void VarListFree(var_list_t *pObj)
|
||||
}
|
||||
|
||||
// finds variable by its name
|
||||
ri_var_t* VarListFindByName(var_list_t *pObj, UINT8 *name)
|
||||
ri_var_t* VarListFindByName(var_list_t *pObj, uint8_t *name)
|
||||
{
|
||||
linkedlist_t *pFirst, *pVarList;
|
||||
ri_var_t *pVar;
|
||||
@@ -105,12 +105,12 @@ void VarListPrint(var_list_t *pObj)
|
||||
|
||||
|
||||
// Declare empty variable and add it to list of variables
|
||||
ri_var_t* VarListDeclare(var_list_t *pObj, UINT8 *name, UINT8 *cls, UINT8 *type)
|
||||
ri_var_t* VarListDeclare(var_list_t *pObj, uint8_t *name, uint8_t *cls, uint8_t *type)
|
||||
{
|
||||
RtToken *pToken;
|
||||
RtInt *pSize;
|
||||
UINT32 *pEtypes;
|
||||
UINT32 *pEclasses;
|
||||
uint32_t *pEtypes;
|
||||
uint32_t *pEclasses;
|
||||
|
||||
ri_var_t var;
|
||||
|
||||
@@ -183,7 +183,7 @@ ri_var_t* VarListAdd(var_list_t *pObj, ri_var_t *pVar)
|
||||
|
||||
}
|
||||
|
||||
void VarListDelByName(var_list_t *pObj, UINT8 *name)
|
||||
void VarListDelByName(var_list_t *pObj, uint8_t *name)
|
||||
{
|
||||
VarListDel(pObj, VarListFindByName(pObj, name));
|
||||
}
|
||||
@@ -214,7 +214,7 @@ void VarListDel(var_list_t *pObj, ri_var_t *pVar)
|
||||
}
|
||||
|
||||
// Allocs empty variable
|
||||
RtPointer VarAlloc(ri_var_t *pObj, UINT32 nvalues)
|
||||
RtPointer VarAlloc(ri_var_t *pObj, uint32_t nvalues)
|
||||
{
|
||||
if (!nvalues)
|
||||
return NULL;
|
||||
@@ -235,7 +235,7 @@ RtPointer VarAlloc(ri_var_t *pObj, UINT32 nvalues)
|
||||
}
|
||||
|
||||
// Allocs empty variable and copy data into it
|
||||
RtPointer VarSet(ri_var_t *pObj, RtPointer pValue, UINT32 nvalues)
|
||||
RtPointer VarSet(ri_var_t *pObj, RtPointer pValue, uint32_t nvalues)
|
||||
{
|
||||
RtPointer pData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user