From: Ian Jackson Date: Fri, 5 Feb 2016 19:16:19 +0000 (+0000) Subject: commitid.scad.pl: Simply gentextmodule_demo_start_batch X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=07cbfbf7662bcc767da1ae02b27518f8484ca2ed commitid.scad.pl: Simply gentextmodule_demo_start_batch --- diff --git a/commitid.scad.pl b/commitid.scad.pl index 9b344e2..6d7459e 100755 --- a/commitid.scad.pl +++ b/commitid.scad.pl @@ -141,9 +141,9 @@ our $gtm_demo_i = -1; our $gtm_demo_j; our @gtm_demo_o; -sub gentextmodule_demo_start_batch ($;$) { - ($gtm_demo_i, $gtm_demo_j) = @_; - $gtm_demo_j //= 0; +sub gentextmodule_demo_start_batch () { + $gtm_demo_j = 0; + $gtm_demo_i++; } sub gentextmodule ($@) { @@ -356,7 +356,7 @@ sub do_git () { } foreach my $sz (3..10) { - gentextmodule_demo_start_batch($sz-3); + gentextmodule_demo_start_batch(); gentextmodule_plusq("Small$sz", rjustt($sz, $git_count, $git_dirty)) if defined $git_count; @@ -402,7 +402,7 @@ while (@ARGV) { $do_git //= defined($argcounter) ? '' : 'co'; -gentextmodule_demo_start_batch(-1); +gentextmodule_demo_start_batch(); gentextmodule('FontDemo', @demo); do_git();