chiark / gitweb /
quacks-ingredients: fix syntax error
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Mar 2020 14:56:15 +0000 (15:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Mar 2020 14:56:39 +0000 (15:56 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
quacks-ingredients-counts
quacks-ingredients-counts.scad

index 6f15df0a87ea40749deb6b88e72177aec7d42dd9..5c20fc8ffa5c689d96c2941494f76c906f8d4b0e 100755 (executable)
@@ -57,10 +57,10 @@ our $max_nrows=0;
 our $max_rowsz=0;
 
 sub wrtoplevel () {
-    print "module ${which}_$name(){ ////toplevel\n";
     my $cs = $count{$name};
     my $total = 0; $total += $_ foreach values %$cs;
     return unless $total;
+    print "module ${which}_$name(){ ////toplevel\n";
     my $rowsz = ceil(sqrt($total));
     my $nrows = ceil($total / $rowsz);
     $total_count += $total;
index 87d311bf8ff2455aabeead0455364fe1360e575c..60c3878718b524dd8b4a15d1b71dd39ae493ccf6 100644 (file)
@@ -1372,7 +1372,6 @@ module Witches_White(){ ////toplevel
     $nspots = 4;
   };
 }
-module Witches_WhiteSpare(){ ////toplevel
 module Witches_Yellow(){ ////toplevel
 // Witches  Yellow      total=16  rowsz=4  nrows=4
   union(){