diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | nissy-2.0beta3.tar.gz | bin | 53230 -> 0 bytes | |||
| -rw-r--r-- | nissy-2.0beta4.tar.gz | bin | 0 -> 53130 bytes | |||
| -rwxr-xr-x | nissy.exe | bin | 633301 -> 633813 bytes | |||
| -rw-r--r-- | src/alg.c | 15 |
5 files changed, 14 insertions, 3 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | # See LICENSE file for copyright and license details. | 1 | # See LICENSE file for copyright and license details. |
| 2 | 2 | ||
| 3 | VERSION = 2.0beta3 | 3 | VERSION = 2.0beta4 |
| 4 | 4 | ||
| 5 | PREFIX = /usr/local | 5 | PREFIX = /usr/local |
| 6 | MANPREFIX = ${PREFIX}/share/man | 6 | MANPREFIX = ${PREFIX}/share/man |
diff --git a/nissy-2.0beta3.tar.gz b/nissy-2.0beta3.tar.gz deleted file mode 100644 index 91c9e5e..0000000 --- a/nissy-2.0beta3.tar.gz +++ /dev/null | |||
| Binary files differ | |||
diff --git a/nissy-2.0beta4.tar.gz b/nissy-2.0beta4.tar.gz new file mode 100644 index 0000000..4de4695 --- /dev/null +++ b/nissy-2.0beta4.tar.gz | |||
| Binary files differ | |||
| Binary files differ | |||
| @@ -230,6 +230,17 @@ new_alg(char *str) | |||
| 230 | continue; | 230 | continue; |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | /* Single slash for comments */ | ||
| 234 | if (str[i] == '/') { | ||
| 235 | while (str[i] && str[i] != '\n') | ||
| 236 | i++; | ||
| 237 | |||
| 238 | if (!str[i]) | ||
| 239 | i--; | ||
| 240 | |||
| 241 | continue; | ||
| 242 | } | ||
| 243 | |||
| 233 | move_read = false; | 244 | move_read = false; |
| 234 | for (j = U; j < NMOVES; j++) { | 245 | for (j = U; j < NMOVES; j++) { |
| 235 | if (str[i] == move_string(j)[0] || | 246 | if (str[i] == move_string(j)[0] || |
| @@ -270,8 +281,8 @@ new_alg(char *str) | |||
| 270 | } | 281 | } |
| 271 | 282 | ||
| 272 | if (!move_read) { | 283 | if (!move_read) { |
| 273 | alg = new_alg(""); | 284 | free(alg); |
| 274 | return alg; | 285 | return new_alg(""); |
| 275 | } | 286 | } |
| 276 | } | 287 | } |
| 277 | 288 | ||
