Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH] use vtable macros - next step

5 views
Skip to first unread message

Leopold Toetsch

unread,
May 15, 2003, 4:41:20 AM5/15/03
to P6I
I've done these steps here locally on my tree:

1) apply this patch:
--- ../parrot/classes/pmc2c.pl Thu Feb 6 21:55:26 2003
+++ classes/pmc2c.pl Thu May 15 09:45:26 2003
@@ -393,6 +393,9 @@
s/SELF/pmc/g;
s/INTERP/interpreter/g;

+ # now use macros for all rewritten stuff
+ s/\s(?:\w+)->vtable->(\w+)\(/ VTABLE_$1(/g;
+
return $_;
}

This uses VTABLE_meth - macros for simple generated .c code.

2) Run the attached script (after making a copy of the tree eventually):

sh ./use_vtable_macros.sh

This should substitute all|most occurance of xx->vtable->meth with
VTABLE_meth ... runs tests and deletes in case of success all bak-files.

Works for me(tm). But people might have bigger diffs WRT CVS so that the
hackiish substitutions might not work.

So please give it a try - on $arch with a decent $SHELL.

Thanks,
leo

use_vtable_1.sh
use_vtable_macros.sh
0 new messages