arbtree.h | arbtree.h | |||
---|---|---|---|---|
skipping to change at line 68 | skipping to change at line 68 | |||
extern struct HXbtree *HXbtree_init(unsigned int, ...); | extern struct HXbtree *HXbtree_init(unsigned int, ...); | |||
extern struct HXbtree *HXbtree_init2(unsigned int, | extern struct HXbtree *HXbtree_init2(unsigned int, | |||
int (*)(const void *, const void *, size_t), | int (*)(const void *, const void *, size_t), | |||
void *(*)(const void *, size_t), void (*)(void *), | void *(*)(const void *, size_t), void (*)(void *), | |||
void *(*)(const void *, size_t), void (*)(void *), | void *(*)(const void *, size_t), void (*)(void *), | |||
size_t, size_t); | size_t, size_t); | |||
extern struct HXbtree_node *HXbtree_add(struct HXbtree *, const void *, ... ); | extern struct HXbtree_node *HXbtree_add(struct HXbtree *, const void *, ... ); | |||
extern struct HXbtree_node *HXbtree_find(const struct HXbtree *, const void *); | extern struct HXbtree_node *HXbtree_find(const struct HXbtree *, const void *); | |||
extern void *HXbtree_get(const struct HXbtree *, const void *); | extern void *HXbtree_get(const struct HXbtree *, const void *); | |||
extern const struct HXbtree_node **HXbtree_flatten(const struct HXbtree *); | ||||
extern void *HXbtree_del(struct HXbtree *, const void *); | extern void *HXbtree_del(struct HXbtree *, const void *); | |||
extern void HXbtree_free(struct HXbtree *); | extern void HXbtree_free(struct HXbtree *); | |||
extern void *HXbtrav_init(const struct HXbtree *); | extern void *HXbtrav_init(const struct HXbtree *); | |||
extern struct HXbtree_node *HXbtraverse(void *); | extern struct HXbtree_node *HXbtraverse(void *); | |||
extern void HXbtrav_free(void *); | extern void HXbtrav_free(void *); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} /* extern "C" */ | } /* extern "C" */ | |||
extern "C++" { | extern "C++" { | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
libxml_helper.h | libxml_helper.h | |||
---|---|---|---|---|
skipping to change at line 25 | skipping to change at line 25 | |||
static inline int xml_strcmp(const xmlChar *a, const char *b) | static inline int xml_strcmp(const xmlChar *a, const char *b) | |||
{ | { | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
return strcmp(signed_cast<const char *>(a), b); | return strcmp(signed_cast<const char *>(a), b); | |||
#else | #else | |||
return strcmp(signed_cast(const char *, a), b); | return strcmp(signed_cast(const char *, a), b); | |||
#endif | #endif | |||
} | } | |||
static inline int xml_strcasecmp(const xmlChar *a, const char *b) | ||||
{ | ||||
#ifdef __cplusplus | ||||
return strcasecmp(signed_cast<const char *>(a), b); | ||||
#else | ||||
return strcasecmp(signed_cast(const char *, a), b); | ||||
#endif | ||||
} | ||||
static inline char *xml_getprop(xmlNode *node, const char *attr) | static inline char *xml_getprop(xmlNode *node, const char *attr) | |||
{ | { | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
return signed_cast<char *>(xmlGetProp(node, | return signed_cast<char *>(xmlGetProp(node, | |||
signed_cast<const xmlChar *>(attr))); | signed_cast<const xmlChar *>(attr))); | |||
#else | #else | |||
return signed_cast(char *, xmlGetProp(node, | return signed_cast(char *, xmlGetProp(node, | |||
signed_cast(const xmlChar *, attr))); | signed_cast(const xmlChar *, attr))); | |||
#endif | #endif | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added | |||
misc.h | misc.h | |||
---|---|---|---|---|
skipping to change at line 53 | skipping to change at line 53 | |||
/* | /* | |||
* MISC.C | * MISC.C | |||
*/ | */ | |||
enum { | enum { | |||
HX_FSYSTEM_ARGV = 1 << 0, | HX_FSYSTEM_ARGV = 1 << 0, | |||
HX_FSYSTEM_EXEC = 1 << 1, | HX_FSYSTEM_EXEC = 1 << 1, | |||
HX_FSYSTEM_ARGV1 = 1 << 2, | HX_FSYSTEM_ARGV1 = 1 << 2, | |||
}; | }; | |||
extern int HX_ffs(unsigned long); | extern int HX_ffs(unsigned long); | |||
extern int HX_fls(unsigned long); | ||||
extern void HX_hexdump(FILE *, const void *, unsigned int); | extern void HX_hexdump(FILE *, const void *, unsigned int); | |||
extern long HX_time_compare(const struct stat *, const struct stat *, char) ; | extern long HX_time_compare(const struct stat *, const struct stat *, char) ; | |||
extern void HX_zvecfree(char **); | extern void HX_zvecfree(char **); | |||
/* | /* | |||
* RAND.C | * RAND.C | |||
*/ | */ | |||
extern int HX_rand(void); | extern int HX_rand(void); | |||
extern unsigned int HX_irand(unsigned int, unsigned int); | extern unsigned int HX_irand(unsigned int, unsigned int); | |||
/* | /* | |||
* INLINE FUNCTIONS | * INLINE FUNCTIONS | |||
*/ | */ | |||
static inline int HX_zveclen(const char **args) | static inline int HX_zveclen(const char *const *args) | |||
{ | { | |||
int argk = 0; | int argk = 0; | |||
while (*args++ != NULL) | while (*args++ != NULL) | |||
++argk; | ++argk; | |||
return argk; | return argk; | |||
} | } | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} /* extern "C" */ | } /* extern "C" */ | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||