diff options
| author | Simon Tatham <anakin@pobox.com> | 2011-05-04 18:41:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2011-05-04 18:41:21 +0000 |
| commit | 89bfecaa5aa39469a3e368d44f517aff5c904354 (patch) | |
| tree | 13c801bb71dc7dc7a23b98c80d6d99858dd5a6d3 /penrose.c | |
| parent | e7b2a9dd8d8915802fb69ce2242b1f913b7f3172 (diff) | |
| download | puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.zip puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.gz puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.bz2 puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.xz | |
Portability fixes, mostly from James for Palm purposes. Mostly
additions of missing 'static' and explicit 'void' in parameter lists,
plus one or two other things like explicitly casting chars in variadic
argument lists to int and using DBL_MAX if HUGE_VAL isn't available.
[originally from svn r9166]
Diffstat (limited to 'penrose.c')
| -rw-r--r-- | penrose.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -96,7 +96,7 @@ struct vector { int a, b, c, d; }; -static vector v_origin() +static vector v_origin(void) { vector v; v.a = v.b = v.c = v.d = 0; @@ -107,7 +107,7 @@ static vector v_origin() * draw an isoceles triangle centred on the X axis. */ #ifdef TEST_VECTORS -static vector v_unit() +static vector v_unit(void) { vector v; @@ -219,7 +219,7 @@ static const char *v_debug(vector v) * Tiling routines. */ -vector xform_coord(vector vo, int shrink, vector vtrans, int ang) +static vector xform_coord(vector vo, int shrink, vector vtrans, int ang) { if (shrink < 0) vo = v_shrinkphi(vo); @@ -539,7 +539,7 @@ int test_cb(penrose_state *state, vector *vs, int n, int depth) return 0; } -void usage_exit() +void usage_exit(void) { fprintf(stderr, "Usage: penrose-test [--recursion] P2|P3 SIZE DEPTH\n"); exit(1); |