Actually make DSF an opaque structure type.

This makes good on all the previous preparatory commits, which I did
separately so that each one individually has a reasonably readable
diff, and all the mechanical changes are separated out from the
rewrites that needed actual thought.

Still no functional change, however: the DSF type wraps nothing but
the same int pointer that 'DSF *' used to store directly.
This commit is contained in:
Simon Tatham
2023-04-20 14:12:11 +01:00
parent 89c438e149
commit 095224d571
2 changed files with 26 additions and 19 deletions

View File

@ -426,7 +426,7 @@ char *button2label(int button);
/*
* dsf.c
*/
typedef int DSF;
typedef struct DSF DSF;
DSF *snew_dsf(int size);
void dsf_free(DSF *dsf);