-GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(sysdep, gros, "System dependency");
-
-/****
- **** Memory management
- ****/
-
-void* gras_malloc (long int bytes) {
- return bytes == 0 ? NULL : (void*) malloc ((size_t) bytes);
-}
-void* gras_malloc0 (long int bytes) {
- return bytes == 0 ? NULL : (void*) calloc ((size_t) bytes, 1);
-}
-
-void* gras_realloc (void *memory, long int bytes) {
- if (bytes == 0) {
- gras_free(memory);
- return NULL;
- } else {
- return (void*) realloc (memory, (size_t) bytes);
- }
-}
-
-void gras_free (void *memory) {
- if (memory) {
- free (memory);
- }
-}