linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jani Monoses <jani@virtualro.ic.ro>
To: twaugh@redhat.com
Cc: linux-kernel@vger.kernel.org
Subject: kernel-doc minor fix
Date: Sat, 16 Dec 2000 16:41:44 +0200 (EET)	[thread overview]
Message-ID: <Pine.LNX.4.10.10012161636480.10851-100000@virtualro.ic.ro> (raw)


Hi 

	inline docs are not generated for functions which return a 'const'
because this modifier is not checked for (only inline extern and static)
when verifying the function prototype.
This patch fixes it and hopefully doesn't break anything else(I am
Perl----)

Jani.

--- /usr/src/linux/scripts/kernel-doc	Tue Dec 12 11:25:59 2000
+++ kernel-doc	Sat Dec 16 15:53:17 2000
@@ -664,10 +664,11 @@
 
 ##
 # takes a function prototype and spits out all the details
-# stored in the global arrays/hsahes.
+# stored in the global arrays/hashes.
 sub dump_function {
     my $prototype = shift @_;
 
+    $prototype =~ s/^const+ //;
     $prototype =~ s/^static+ //;
     $prototype =~ s/^extern+ //;
     $prototype =~ s/^inline+ //;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2000-12-16 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-16 14:41 Jani Monoses [this message]
2000-12-17 16:22 ` kernel-doc minor fix Simon Huggins
2000-12-18  9:04   ` Jani Monoses

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.10.10012161636480.10851-100000@virtualro.ic.ro \
    --to=jani@virtualro.ic.ro \
    --cc=linux-kernel@vger.kernel.org \
    --cc=twaugh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).