"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libsn/sn-util.h" between
xfe-1.42.tar.gz and xfe-1.43.tar.gz

About: Xfe (X File Explorer) is a file manager and browser (using the FOX toolkit).

sn-util.h  (xfe-1.42):sn-util.h  (xfe-1.43)
skipping to change at line 71 skipping to change at line 71
((struct_type *) sn_malloc0 (((sn_size_t) sizeof (struct_type)) * ((sn_size_ t) (n_structs)))) ((struct_type *) sn_malloc0 (((sn_size_t) sizeof (struct_type)) * ((sn_size_ t) (n_structs))))
#define sn_renew(struct_type, mem, n_structs) \ #define sn_renew(struct_type, mem, n_structs) \
((struct_type *) sn_realloc ((mem), ((sn_size_t) sizeof (struct_type)) * ((s n_size_t) (n_structs)))) ((struct_type *) sn_realloc ((mem), ((sn_size_t) sizeof (struct_type)) * ((s n_size_t) (n_structs))))
/* Memory allocation virtualization, so you can override memory /* Memory allocation virtualization, so you can override memory
* allocation behavior. sn_mem_set_vtable() has to be the very first * allocation behavior. sn_mem_set_vtable() has to be the very first
* libsn function called if being used * libsn function called if being used
*/ */
typedef struct typedef struct
{ {
void* (*malloc) (sn_size_t n_bytes); void* (*malloc) (sn_size_t n_bytes);
void* (*realloc) (void *mem, void* (*realloc) (void *mem,
sn_size_t n_bytes); sn_size_t n_bytes);
void (*free) (void *mem); void (*free) (void *mem);
/* optional */ /* optional */
void* (*calloc) (sn_size_t n_blocks, void* (*calloc) (sn_size_t n_blocks,
sn_size_t n_block_bytes); sn_size_t n_block_bytes);
void* (*try_malloc) (sn_size_t n_bytes); void* (*try_malloc) (sn_size_t n_bytes);
void* (*try_realloc) (void *mem, void* (*try_realloc) (void *mem,
sn_size_t n_bytes); sn_size_t n_bytes);
SnPaddingFunc padding1; SnPaddingFunc padding1;
SnPaddingFunc padding2; SnPaddingFunc padding2;
} SnMemVTable; } SnMemVTable;
void sn_mem_set_vtable (SnMemVTable *vtable); void sn_mem_set_vtable (SnMemVTable *vtable);
sn_bool_t sn_mem_is_system_malloc (void); sn_bool_t sn_mem_is_system_malloc (void);
typedef sn_bool_t (* SnUtf8ValidateFunc) (const char *str, typedef sn_bool_t (* SnUtf8ValidateFunc) (const char *str,
int max_len); int max_len);
void sn_set_utf8_validator (SnUtf8ValidateFunc validate_func); void sn_set_utf8_validator (SnUtf8ValidateFunc validate_func);
SN_END_DECLS SN_END_DECLS
#endif /* __SN_UTIL_H__ */ #endif /* __SN_UTIL_H__ */
 End of changes. 2 change blocks. 
13 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)