40 } |
40 } |
41 |
41 |
42 void test_map_generics_step_2(CxMap *map) { |
42 void test_map_generics_step_2(CxMap *map) { |
43 // note: we don't have a destructor here, so remove and detach are the same |
43 // note: we don't have a destructor here, so remove and detach are the same |
44 cxMapRemove(map, cx_str("test")); |
44 cxMapRemove(map, cx_str("test")); |
45 cxMapDetach(map, "hallo"); |
45 char const* hallo = "hallo"; |
|
46 cxMapDetach(map, hallo); |
46 cxMapPut(map, cx_hash_key_str("key"), "value"); |
47 cxMapPut(map, cx_hash_key_str("key"), "value"); |
47 } |
48 } |
48 |
49 |
49 void test_map_generics_step_3(CxMap *map) { |
50 void test_map_generics_step_3(CxMap *map) { |
50 void *r; |
51 void *r; |