shithub: puzzles

Download patch

ref: 1304e07d7460aee9994f05bb5dc718e157ca07d6
parent: 58eb0551d46679036293a10f5a1e508c3ef467ef
author: Simon Tatham <anakin@pobox.com>
date: Wed May 18 04:34:01 EDT 2005

Standalone solvers were broken by my recent API changes.

[originally from svn r5800]

--- a/pattern.c
+++ b/pattern.c
@@ -1206,7 +1206,8 @@
     }
     *desc++ = '\0';
 
-    p = decode_params(id);
+    p = default_params();
+    decode_params(p, id);
     err = validate_desc(p, desc);
     if (err) {
         fprintf(stderr, "%s: %s\n", argv[0], err);
--- a/solo.c
+++ b/solo.c
@@ -2145,7 +2145,8 @@
     }
     *desc++ = '\0';
 
-    p = decode_params(id);
+    p = default_params();
+    decode_params(p, id);
     err = validate_desc(p, desc);
     if (err) {
         fprintf(stderr, "%s: %s\n", argv[0], err);