Craig A. Berry [Fri, 15 Jun 2001 18:39:42 +0000 (13:39 -0500)]
}
else {
$path =~ s-\]\[--g; $path =~ s/><//g; # foo.][bar ==> foo.bar
- $path =~ s/([\[<])000000\./$1/; # [000000.foo ==> foo
+ $path =~ s/([\[<])000000\./$1/; # [000000.foo ==> [foo
+ $path =~ s/([^-]+)\.000000([\]\>])/$1$2/; # foo.000000] ==> foo]
1 while $path =~ s{([\[<-])\.-}{$1-}; # [.-.- ==> [--
$path =~ s/\.[^\[<\.]+\.-([\]\>])/$1/; # bar.foo.-] ==> bar]
$path =~ s/([\[<])(-+)/$1 . "\cx" x length($2)/e; # encode leading '-'s
open FH, ">$header" or die "open >$header: $!\n";
print FH <<"EOT";
#define FIVE 5
-#define OK6 "ok 6\n"
+#define OK6 "ok 6\\n"
#define OK7 1
#define FARTHING 0.25
#define NOT_ZERO 1