Zach Welch <zw@superlucidity.net> fix warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@1589 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
2fb13f9b65
commit
e69b222d53
|
@ -89,7 +89,7 @@
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
#endif /* JIM_DYNLIB */
|
#endif /* JIM_DYNLIB */
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ static void JimChangeCallFrameId(Jim_Interp *interp, Jim_CallFrame *cf);
|
||||||
static void JimFreeCallFrame(Jim_Interp *interp, Jim_CallFrame *cf, int flags);
|
static void JimFreeCallFrame(Jim_Interp *interp, Jim_CallFrame *cf, int flags);
|
||||||
static void JimRegisterCoreApi(Jim_Interp *interp);
|
static void JimRegisterCoreApi(Jim_Interp *interp);
|
||||||
|
|
||||||
static Jim_HashTableType JimVariablesHashTableType;
|
static Jim_HashTableType *getJimVariablesHashTableType(void);
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Utility functions
|
* Utility functions
|
||||||
|
@ -3237,7 +3237,7 @@ int Jim_CreateProcedure(Jim_Interp *interp, const char *cmdName,
|
||||||
Jim_ListLength(interp, staticsListObjPtr, &len);
|
Jim_ListLength(interp, staticsListObjPtr, &len);
|
||||||
if (len != 0) {
|
if (len != 0) {
|
||||||
cmdPtr->staticVars = Jim_Alloc(sizeof(Jim_HashTable));
|
cmdPtr->staticVars = Jim_Alloc(sizeof(Jim_HashTable));
|
||||||
Jim_InitHashTable(cmdPtr->staticVars, &JimVariablesHashTableType,
|
Jim_InitHashTable(cmdPtr->staticVars, getJimVariablesHashTableType(),
|
||||||
interp);
|
interp);
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
Jim_Obj *objPtr, *initObjPtr, *nameObjPtr;
|
Jim_Obj *objPtr, *initObjPtr, *nameObjPtr;
|
||||||
|
@ -3440,6 +3440,11 @@ static Jim_HashTableType JimVariablesHashTableType = {
|
||||||
JimVariablesHTValDestructor /* val destructor */
|
JimVariablesHTValDestructor /* val destructor */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static Jim_HashTableType *getJimVariablesHashTableType(void)
|
||||||
|
{
|
||||||
|
return &JimVariablesHashTableType;
|
||||||
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Variable object
|
* Variable object
|
||||||
* ---------------------------------------------------------------------------*/
|
* ---------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in New Issue