#! /usr/bin/perl

# this script generats a header-file from `mm/slab.c'

while (<>) {
	if (/^#include/) {
		chomp;
		print "/* $_ */\n";
		next;
	}
	last if (/^static\s.*\w\s*=\s*{$/ || /\b__initdata\b/ || /^struct\s.*=\s{$/);
	print $_;
}
printf "\n\n/* CUT CUT CUT */\n";
