From: Ian Jackson Date: Tue, 31 Mar 2020 14:56:15 +0000 (+0100) Subject: quacks-ingredients: fix syntax error X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=94626a602f2bb79103554cf3a6ddd5304963bf90 quacks-ingredients: fix syntax error Signed-off-by: Ian Jackson --- diff --git a/quacks-ingredients-counts b/quacks-ingredients-counts index 6f15df0..5c20fc8 100755 --- a/quacks-ingredients-counts +++ b/quacks-ingredients-counts @@ -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; diff --git a/quacks-ingredients-counts.scad b/quacks-ingredients-counts.scad index 87d311b..60c3878 100644 --- a/quacks-ingredients-counts.scad +++ b/quacks-ingredients-counts.scad @@ -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(){