extern "C" {
#endif
-PRIVATE S16 cmHashFuncBCD8 ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncBCD8 ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncConId ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncConId ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncUInt32Mod ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncU32Mod ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncString ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncString ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncDefault ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncDefault ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncAnyKey ARGS((CmHashListCp *hashListCp, uint8_t *key,
+static S16 cmHashFuncAnyKey ARGS((CmHashListCp *hashListCp, uint8_t *key,
uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashMatchKey ARGS((uint8_t *key1, uint16_t keyLen1, uint8_t *key2, uint16_t keyLen2));
+static S16 cmHashMatchKey ARGS((uint8_t *key1, uint16_t keyLen1, uint8_t *key2, uint16_t keyLen2));
-PRIVATE S16 cmListInsert ARGS((CmListEnt *oldEntry, CmListEnt *newEntry));
+static S16 cmListInsert ARGS((CmListEnt *oldEntry, CmListEnt *newEntry));
-PRIVATE S16 cmListDelete ARGS((CmListEnt *entry));
+static S16 cmListDelete ARGS((CmListEnt *entry));
/* cm_hash_c_001.main_22: Fixing warnings on GCC compiler */
-PRIVATE S16 cmHashFuncMult24 ARGS((CmHashListCp *hashListCp, uint8_t *key, uint16_t keyLen, uint16_t *idx));
+static S16 cmHashFuncMult24 ARGS((CmHashListCp *hashListCp, uint8_t *key, uint16_t keyLen, uint16_t *idx));
-PRIVATE S16 cmHashFuncDirIdx ARGS((CmHashListCp *hashListCp, uint8_t *key, uint16_t keyLen, uint16_t *idx));
+static S16 cmHashFuncDirIdx ARGS((CmHashListCp *hashListCp, uint8_t *key, uint16_t keyLen, uint16_t *idx));
#ifdef __cplusplus
}
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncAnyKey
+static S16 cmHashFuncAnyKey
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* idx to return */
)
#else
-PRIVATE S16 cmHashFuncAnyKey (hashListCp, key, keyLen, idx)
+static S16 cmHashFuncAnyKey (hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
/*
*
-* Fun: cmHashFuncUInt32Mod
+* Fun: cmHashFuncU32Mod
*
* Desc: Computes the hash list index (bin number) for a specified
* key of type CM_HASH_KEYTYPE_MOD.
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncUInt32Mod
+static S16 cmHashFuncU32Mod
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* idx to return */
)
#else
-PRIVATE S16 cmHashFuncUInt32Mod (hashListCp, key, keyLen, idx)
+static S16 cmHashFuncU32Mod (hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
return ROK;
-} /* end of cmHashFuncUInt32Mod () */
+} /* end of cmHashFuncU32Mod () */
/*
*
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncBCD8
+static S16 cmHashFuncBCD8
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* idx to return */
)
#else
-PRIVATE S16 cmHashFuncBCD8 (hashListCp, key, keyLen, idx)
+static S16 cmHashFuncBCD8 (hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncString
+static S16 cmHashFuncString
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* idx to return */
)
#else
-PRIVATE S16 cmHashFuncString (hashListCp, key, keyLen, idx)
+static S16 cmHashFuncString (hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncDefault
+static S16 cmHashFuncDefault
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* index to return */
)
#else
-PRIVATE S16 cmHashFuncDefault(hashListCp, key, keyLen, idx)
+static S16 cmHashFuncDefault(hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncMult24
+static S16 cmHashFuncMult24
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* index to return */
)
#else
-PRIVATE S16 cmHashFuncMult24(hashListCp, key, keyLen, idx)
+static S16 cmHashFuncMult24(hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncConId
+static S16 cmHashFuncConId
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* index to return */
)
#else
-PRIVATE S16 cmHashFuncConId(hashListCp, key, keyLen, idx)
+static S16 cmHashFuncConId(hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashFuncDirIdx
+static S16 cmHashFuncDirIdx
(
CmHashListCp *hashListCp, /* hash list control point */
uint8_t *key, /* key string */
uint16_t *idx /* index to return */
)
#else
-PRIVATE S16 cmHashFuncDirIdx(hashListCp, key, keyLen, idx)
+static S16 cmHashFuncDirIdx(hashListCp, key, keyLen, idx)
CmHashListCp *hashListCp; /* hash list control point */
uint8_t *key; /* key string */
uint16_t keyLen; /* length of key string */
*/
#ifdef ANSI
-PRIVATE S16 cmHashMatchKey
+static S16 cmHashMatchKey
(
uint8_t *key1, /* first key string */
uint16_t keyLen1, /* length of first key string */
uint16_t keyLen2 /* length of second key string */
)
#else
-PRIVATE S16 cmHashMatchKey(key1, keyLen1, key2, keyLen2)
+static S16 cmHashMatchKey(key1, keyLen1, key2, keyLen2)
uint8_t *key1; /* first key string */
uint16_t keyLen1; /* length of first key string */
uint8_t *key2; /* second key string */
*/
#ifdef ANSI
-PRIVATE S16 cmListInsert
+static S16 cmListInsert
(
CmListEnt *oldEntry, /* add new entry after this entry */
CmListEnt *newEntry /* new entry to add */
)
#else
-PRIVATE S16 cmListInsert(oldEntry, newEntry)
+static S16 cmListInsert(oldEntry, newEntry)
CmListEnt *oldEntry; /* add new entry after this entry */
CmListEnt *newEntry; /* new entry to add */
#endif
*/
#ifdef ANSI
-PRIVATE S16 cmListDelete
+static S16 cmListDelete
(
CmListEnt *entry /* entry to delete */
)
#else
-PRIVATE S16 cmListDelete(entry)
+static S16 cmListDelete(entry)
CmListEnt *entry; /* entry to delete */
#endif
{
break;
case CM_HASH_KEYTYPE_UINT32_MOD:
- hashListCp->hashFunc = cmHashFuncUInt32Mod;
+ hashListCp->hashFunc = cmHashFuncU32Mod;
break;
case CM_HASH_KEYTYPE_BCD8: