option.h | option.h | |||
---|---|---|---|---|
skipping to change at line 14 | skipping to change at line 14 | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
# include <cstdio> | # include <cstdio> | |||
#else | #else | |||
# include <stdio.h> | # include <stdio.h> | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#ifndef __libhx_internal_hmc_t_defined | #ifndef __libhx_internal_hxmc_t_defined | |||
#define __libhx_internal_hmc_t_defined 1 | #define __libhx_internal_hxmc_t_defined 1 | |||
typedef char hmc_t; | typedef char hxmc_t; | |||
#endif | #endif | |||
struct HXbtree; | struct HXbtree; | |||
struct HXoption; | struct HXoption; | |||
/* | /* | |||
* FORMAT.C | * FORMAT.C | |||
*/ | */ | |||
extern struct HXbtree *HXformat_init(void); | extern struct HXbtree *HXformat_init(void); | |||
extern void HXformat_free(struct HXbtree *); | extern void HXformat_free(struct HXbtree *); | |||
extern int HXformat_add(struct HXbtree *, const char *, const void *, | extern int HXformat_add(struct HXbtree *, const char *, const void *, | |||
unsigned int); | unsigned int); | |||
extern int HXformat_aprintf(const struct HXbtree *, hmc_t **, const char *) ; | extern int HXformat_aprintf(const struct HXbtree *, hxmc_t **, const char * ); | |||
extern int HXformat_sprintf(const struct HXbtree *, char *, size_t, const c har *); | extern int HXformat_sprintf(const struct HXbtree *, char *, size_t, const c har *); | |||
extern int HXformat_fprintf(const struct HXbtree *, FILE *, const char *); | extern int HXformat_fprintf(const struct HXbtree *, FILE *, const char *); | |||
/* | /* | |||
* OPT.C | * OPT.C | |||
*/ | */ | |||
enum { | enum { | |||
/* .type */ | /* .type */ | |||
HXTYPE_NONE = 0, | HXTYPE_NONE = 0, | |||
/* for opt: set specific integer value */ | /* for opt: set specific integer value */ | |||
End of changes. 2 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added | |||
string.h | string.h | |||
---|---|---|---|---|
skipping to change at line 19 | skipping to change at line 19 | |||
#else | #else | |||
# include <stdio.h> | # include <stdio.h> | |||
# include <stdlib.h> | # include <stdlib.h> | |||
# include <string.h> | # include <string.h> | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#ifndef __libhx_internal_hmc_t_defined | #ifndef __libhx_internal_hxmc_t_defined | |||
#define __libhx_internal_hmc_t_defined 1 | #define __libhx_internal_hxmc_t_defined 1 | |||
typedef char hmc_t; | typedef char hxmc_t; | |||
#endif | #endif | |||
/* | /* | |||
* HMC.C | * HMC.C | |||
*/ | */ | |||
extern hmc_t *hmc_dup(const void *); | extern hxmc_t *HXmc_dup(const void *); | |||
extern hmc_t *hmc_sinit(const char *); | extern hxmc_t *HXmc_strinit(const char *); | |||
extern hmc_t *hmc_minit(const void *, size_t); | extern hxmc_t *HXmc_meminit(const void *, size_t); | |||
extern hmc_t *hmc_strasg(hmc_t **, const char *); | extern hxmc_t *HXmc_strcpy(hxmc_t **, const char *); | |||
extern hmc_t *hmc_memasg(hmc_t **, const void *, size_t); | extern hxmc_t *HXmc_memcpy(hxmc_t **, const void *, size_t); | |||
extern size_t hmc_length(const hmc_t *); | extern size_t HXmc_length(const hxmc_t *); | |||
extern hmc_t *hmc_trunc(hmc_t **, size_t); | extern hxmc_t *HXmc_trunc(hxmc_t **, size_t); | |||
extern hmc_t *hmc_strcat(hmc_t **, const char *); | extern hxmc_t *HXmc_strcat(hxmc_t **, const char *); | |||
extern hmc_t *hmc_memcat(hmc_t **, const void *, size_t); | extern hxmc_t *HXmc_memcat(hxmc_t **, const void *, size_t); | |||
extern hmc_t *hmc_strpcat(hmc_t **, const char *); | extern hxmc_t *HXmc_strpcat(hxmc_t **, const char *); | |||
extern hmc_t *hmc_mempcat(hmc_t **, const void *, size_t); | extern hxmc_t *HXmc_mempcat(hxmc_t **, const void *, size_t); | |||
extern hmc_t *hmc_strins(hmc_t **, size_t, const char *); | extern hxmc_t *HXmc_strins(hxmc_t **, size_t, const char *); | |||
extern hmc_t *hmc_memins(hmc_t **, size_t, const void *, size_t); | extern hxmc_t *HXmc_memins(hxmc_t **, size_t, const void *, size_t); | |||
extern hmc_t *hmc_memdel(hmc_t *, size_t, size_t); | extern hxmc_t *HXmc_memdel(hxmc_t *, size_t, size_t); | |||
extern void hmc_free(hmc_t *); | extern void HXmc_free(hxmc_t *); | |||
/* | /* | |||
* STRING.C | * STRING.C | |||
*/ | */ | |||
extern char *HX_basename(const char *); | extern char *HX_basename(const char *); | |||
extern char *HX_chomp(char *); | extern char *HX_chomp(char *); | |||
extern char *HX_dirname(const char *); | extern char *HX_dirname(const char *); | |||
extern hmc_t *HX_getl(hmc_t **, FILE *); | extern hxmc_t *HX_getl(hxmc_t **, FILE *); | |||
extern char **HX_split(const char *, const char *, int *, int); | extern char **HX_split(const char *, const char *, int *, int); | |||
extern int HX_split5(char *, const char *, int, char **); | extern int HX_split5(char *, const char *, int, char **); | |||
extern char *HX_strbchr(const char *, const char *, char); | extern char *HX_strbchr(const char *, const char *, char); | |||
extern char *HX_strclone(char **, const char *); | extern char *HX_strclone(char **, const char *); | |||
extern char *HX_strlower(char *); | extern char *HX_strlower(char *); | |||
extern size_t HX_strltrim(char *); | extern size_t HX_strltrim(char *); | |||
extern char *HX_strmid(const char *, long, long); | extern char *HX_strmid(const char *, long, long); | |||
extern size_t HX_strrcspn(const char *, const char *); | extern size_t HX_strrcspn(const char *, const char *); | |||
extern char *HX_strrev(char *); | extern char *HX_strrev(char *); | |||
extern size_t HX_strrtrim(char *); | extern size_t HX_strrtrim(char *); | |||
End of changes. 3 change blocks. | ||||
19 lines changed or deleted | 19 lines changed or added | |||