aboutsummaryrefslogtreecommitdiff
path: root/fenders_offsets.pl
diff options
context:
space:
mode:
Diffstat (limited to 'fenders_offsets.pl')
-rw-r--r--fenders_offsets.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/fenders_offsets.pl b/fenders_offsets.pl
new file mode 100644
index 0000000..8ecce64
--- /dev/null
+++ b/fenders_offsets.pl
@@ -0,0 +1,6 @@
+#!/usr/bin/perl -w
+
+while(<>) {
+ chomp;
+ print "#define $1 0x$2\n" while(/(OFFSET_\w+):?\s+([0-9a-f]+)/g);
+}