2023-01-29 20:19:29 +01:00
# ifndef WHY2_MEMORY_H
# define WHY2_MEMORY_H
2023-01-29 20:25:32 +01:00
void * why2_malloc ( unsigned long size ) ;
2023-01-29 20:33:51 +01:00
void * why2_calloc ( unsigned long element , unsigned long size ) ;
2023-01-31 15:51:02 +01:00
void * why2_realloc ( void * pointer , unsigned long size ) ;
2023-02-01 15:07:07 +01:00
char * why2_strdup ( char * string ) ;
2023-02-05 18:23:03 +01:00
void * why2_fopen ( char * name , char * modes ) ;
void * why2_fdopen ( int file , char * modes ) ;
int why2_open ( char * name , int flags , . . . ) ;
void * why2_opendir ( char * name ) ;
2023-01-29 20:33:51 +01:00
void why2_free ( void * pointer ) ;
2023-01-29 20:19:29 +01:00
2023-02-03 16:37:00 +01:00
void why2_clean_memory ( char * identifier ) ; //identifier SPECIFIES WHICH NODES TO DEALLOCATE | THIS IS BASICALLY GARBAGE COLLECTOR | PASS why2_get_default_memory_identifier() FOR DEALLOCATING EVERYTHING
2023-02-02 16:40:24 +01:00
2023-01-29 20:19:29 +01:00
# endif