chiark / gitweb /
commitid.scad.pl: Simply gentextmodule_demo_start_batch
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 19:16:19 +0000 (19:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 19:16:19 +0000 (19:16 +0000)
commitid.scad.pl

index 9b344e2..6d7459e 100755 (executable)
@@ -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();