X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/bf7ebf5a97854868ba2cf36e8478e91d25555741..056405ec880bda78929d5a163c9de0adfc31341b:/puzzles.h diff --git a/puzzles.h b/puzzles.h index c5eabc2..4762c7c 100644 --- a/puzzles.h +++ b/puzzles.h @@ -235,6 +235,12 @@ void draw_rect_outline(frontend *fe, int x, int y, int w, int h, int colour); /* + * dsf.c + */ +int dsf_canonify(int *dsf, int val); +void dsf_merge(int *dsf, int v1, int v2); + +/* * version.c */ extern char ver[]; @@ -243,6 +249,7 @@ extern char ver[]; * random.c */ random_state *random_init(char *seed, int len); +random_state *random_copy(random_state *tocopy); unsigned long random_bits(random_state *state, int bits); unsigned long random_upto(random_state *state, unsigned long limit); void random_free(random_state *state);