https://github.com/torvalds/linux
Revision d7a60d50d7713b65a3fd88f11d5717b83a6b6a97 authored by Paolo 'Blaisorblade' Giarrusso on 26 August 2005, 14:57:44 UTC, committed by Linus Torvalds on 26 August 2005, 18:39:19 UTC
Update hppfs for the symlink functions prototype change.

Yes, I know the code I leave there is still _bogus_, see next patch for
this.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7c657f2
Raw File
Tip revision: d7a60d50d7713b65a3fd88f11d5717b83a6b6a97 authored by Paolo 'Blaisorblade' Giarrusso on 26 August 2005, 14:57:44 UTC
[PATCH] Fixup symlink function pointers for hppfs [for 2.6.13]
Tip revision: d7a60d5
checkincludes.pl
#!/usr/bin/perl
#
# checkincludes: Find files included more than once in (other) files.
# Copyright abandoned, 2000, Niels Kristian Bech Jensen <nkbj@image.dk>.

foreach $file (@ARGV) {
	open(FILE, $file) or die "Cannot open $file: $!.\n";

	my %includedfiles = ();

	while (<FILE>) {
		if (m/^\s*#\s*include\s*[<"](\S*)[>"]/o) {
			++$includedfiles{$1};
		}
	}
	
	foreach $filename (keys %includedfiles) {
		if ($includedfiles{$filename} > 1) {
			print "$file: $filename is included more than once.\n";
		}
	}

	close(FILE);
}
back to top