[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Very complicated m4 stuff



On Tue, 14 Sep 1999, Xose Manoel Ramos wrote:

[...]
> My problem is, the files I insert if they are inserted in Pass 2,
> Pass 3 or Pass 4, they will not work fine because certain expansions
> will not work (like the #include and #use they have inside) or any
> $(var) expansion. For example, making this in M4 is quite terrible,
> because all the MH and eP macros will never be executed.
[...]

Hi Xose Manoel,

[i will have a look at your xbox macro]

Below is a patch to change pass order, when appending an exclamation
mark to the pass specification, e.g.
   wml -p1-4,1-9! foo.wml

But take care that pass 9 must be the last one.

Denis

--- wml_frontend/wml.src     1999/09/10 10:05:46     1.28
+++ wml_frontend/wml.src     1999/09/18 21:11:19
@@ -926,7 +926,14 @@
     return $x;
 }
 $p =~ s|(\d)-(\d)|&expandrange($1, $2)|sge;
-@p = sort {$a <=> $b} (split('', $p));
+@p = split('', $p);
+if ($p =~ m/!$/) {
+    $p =~ s/!$//;
+    @p = split('', $p);
+}
+else {
+    @p = sort {$a <=> $b} (split('', $p));
+}
 
 #   only pre-processing if -M option specified
 @p = ( '1' ) if $opt_M ne '-';




______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com