]> Git Repo - linux.git/blobdiff - scripts/kernel-doc
Merge tag 'kvm-ppc-fixes-4.20-1' of https://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / scripts / kernel-doc
index 8f0f508a78e9be78aa57a57de5a9e58e18496f0b..ffbe901a37b5126c60ba402638e21606e0161c35 100755 (executable)
@@ -1904,13 +1904,13 @@ sub process_name($$) {
            ++$warnings;
        }
 
-       if ($identifier =~ m/^struct/) {
+       if ($identifier =~ m/^struct\b/) {
            $decl_type = 'struct';
-       } elsif ($identifier =~ m/^union/) {
+       } elsif ($identifier =~ m/^union\b/) {
            $decl_type = 'union';
-       } elsif ($identifier =~ m/^enum/) {
+       } elsif ($identifier =~ m/^enum\b/) {
            $decl_type = 'enum';
-       } elsif ($identifier =~ m/^typedef/) {
+       } elsif ($identifier =~ m/^typedef\b/) {
            $decl_type = 'typedef';
        } else {
            $decl_type = 'function';
This page took 0.030668 seconds and 4 git commands to generate.