diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-08-03 12:44:51 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-08-03 12:44:51 +0000 |
| commit | 414330d9ad00e3b788d48b1d928e46ad7698c508 (patch) | |
| tree | 5b8d4185b832f4bc248ffeca46fe444e1276937f /untangle.c | |
| parent | c212a1b5ebc69cb4818053474aa7fea9043f70fd (diff) | |
| download | puzzles-414330d9ad00e3b788d48b1d928e46ad7698c508.zip puzzles-414330d9ad00e3b788d48b1d928e46ad7698c508.tar.gz puzzles-414330d9ad00e3b788d48b1d928e46ad7698c508.tar.bz2 puzzles-414330d9ad00e3b788d48b1d928e46ad7698c508.tar.xz | |
Cleanups from James H: a few missing statics, a precautionary cast
or two, a debugging fix, a couple of explicit initialisations of
variables that were previously read uninitialised, and a fix for a
whopping great big memory leak in Slant owing to me having
completely forgotten to write free_game().
[originally from svn r6159]
Diffstat (limited to 'untangle.c')
| -rw-r--r-- | untangle.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -218,7 +218,7 @@ typedef struct { #define greater64(i,j) ( (i).hi>(j).hi || ((i).hi==(j).hi && (i).lo>(j).lo)) #define sign64(i) ((i).hi < 0 ? -1 : (i).hi==0 && (i).lo==0 ? 0 : +1) -int64 mulu32to64(unsigned long x, unsigned long y) +static int64 mulu32to64(unsigned long x, unsigned long y) { unsigned long a, b, c, d, t; int64 ret; @@ -247,7 +247,7 @@ int64 mulu32to64(unsigned long x, unsigned long y) return ret; } -int64 mul32to64(long x, long y) +static int64 mul32to64(long x, long y) { int sign = +1; int64 ret; @@ -276,7 +276,7 @@ int64 mul32to64(long x, long y) return ret; } -int64 dotprod64(long a, long b, long p, long q) +static int64 dotprod64(long a, long b, long p, long q) { int64 ab, pq; |