diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-01-06 10:37:22 +0100 |
|---|---|---|
| committer | Christian Franke <nobody@nowhere.ws> | 2016-09-19 18:35:50 +0200 |
| commit | fc7948fafee457874a21aa955c56a617b563f85c (patch) | |
| tree | 919884f8b46b3b7ddbd6137d89dc8990e0739316 /lib/memtypes.pl | |
| parent | 3b4cd7837562cd78fe80bde94f5aa6729b2f755d (diff) | |
lib: migrate to new memory-type handling
Move over to the new allocation counting added in the previous commit.
(This commit is mostly mechanical.)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
Diffstat (limited to 'lib/memtypes.pl')
| -rwxr-xr-x | lib/memtypes.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/memtypes.pl b/lib/memtypes.pl new file mode 100755 index 0000000000..0955161b18 --- /dev/null +++ b/lib/memtypes.pl @@ -0,0 +1,6 @@ +#!/usr/bin/perl +while (<STDIN>) { + $_ =~ s/DEFINE_MTYPE\([^,]+,\s*([^,]+)\s*,.*\)/DECLARE_MTYPE\($1\)/; + $_ =~ s/DEFINE_MGROUP\(([^,]+),.*\)/DECLARE_MGROUP\($1\)/; + print $_; +} |
