src/map.c

changeset 1618
ef7cab6eb131
parent 1616
bdc04a8e0dd3
equal deleted inserted replaced
1617:d4385f35f8b0 1618:ef7cab6eb131
68 }; 68 };
69 69
70 CxMap cx_empty_map = { 70 CxMap cx_empty_map = {
71 { 71 {
72 NULL, 72 NULL,
73 NULL,
74 0, 73 0,
75 0, 74 0,
75 NULL,
76 NULL,
77 NULL,
76 NULL, 78 NULL,
77 NULL, 79 NULL,
78 NULL, 80 NULL,
79 false, 81 false,
80 true 82 true
347 // if the other map does not have the key, we are done 349 // if the other map does not have the key, we are done
348 if (value_right == NULL) { 350 if (value_right == NULL) {
349 return -1; 351 return -1;
350 } 352 }
351 // compare the values 353 // compare the values
352 const int d = map->collection.cmpfunc(value_left, value_right); 354 const int d = cx_invoke_compare_func(map, value_left, value_right);
353 if (d != 0) { 355 if (d != 0) {
354 return d; 356 return d;
355 } 357 }
356 } 358 }
357 359

mercurial