Closed yshui closed 4 months ago
Attention: 61 lines
in your changes are missing coverage. Please review.
Comparison is base (
7f3f8b3
) 36.24% compared to head (2d98518
) 36.10%.
wait, i am having second thoughts.
i think instead of
typedef struct {
void *p;
} image_handle;
it would be better to have:
typedef struct {
/* intentionally left blank */
} *image_handle;
It's quite confusing what should be passed into what because too many things are
void *
. So give images a type to make things a bit clearer. Because of C's limited type system, we lose the ability to annotate them as nonnull or const, well you win some you lose some.Also while doing this I noticed error handling around this is a bit lacking.