@@ -22,20 +22,20 @@ typedef struct {
22
22
#define EXAMPLES_RES (res ) ((examples_res_t*)res->data.raw)
23
23
24
24
void delete_example_res (example_res_t * example_res ) {
25
- // deallocate everything again through s3dat_free_func
26
- s3dat_free_func ( example_res -> parent , example_res );
25
+ // deallocate everything again through s3util_free_func
26
+ s3util_free_func ( s3dat_memset ( example_res -> parent ) , example_res );
27
27
}
28
28
29
- example_res_t * create_example_res (s3dat_t * handle , s3dat_exception_t * * throws ) {
30
- // allocate everything through s3dat_alloc_func
29
+ example_res_t * create_example_res (s3dat_t * handle , s3util_exception_t * * throws ) {
30
+ // allocate everything through s3util_alloc_func
31
31
example_res_t * eres = s3util_alloc_func (s3dat_memset (handle ), sizeof (example_res_t ), throws );
32
32
33
33
// it wont do anything, if *throws == null (there is no exception)
34
34
s3util_add_to_stack (s3dat_memset (handle ), throws , __FILE__ , __func__ , __LINE__ );
35
35
return eres ;
36
36
}
37
37
38
- s3dat_restype_t example_restype = {"example_res" , (void (* ) (void * )) delete_example_res , (void * (* ) (void * , s3dat_exception_t * * )) create_example_res };
38
+ s3dat_restype_t example_restype = {"example_res" , (void (* ) (void * )) delete_example_res , (void * (* ) (void * , s3util_exception_t * * )) create_example_res };
39
39
40
40
bool is_example_res (s3dat_ref_t * res ) {
41
41
return res -> type == & example_restype ;
0 commit comments