ChangeSet 1.2065.3.59, 2005/03/12 08:36:44-08:00, [EMAIL PROTECTED]
[PATCH] docbook: allow preprocessor directives between kernel-doc and
function
Allow preprocessor directives between kernel-doc and function
Signed-off-by: Martin Waitz <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
kernel-doc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -Nru a/scripts/kernel-doc b/scripts/kernel-doc
--- a/scripts/kernel-doc 2005-03-12 21:37:21 -08:00
+++ b/scripts/kernel-doc 2005-03-12 21:37:21 -08:00
@@ -1578,13 +1578,13 @@
my $x = shift;
my $file = shift;
- if ($x =~ m#\s*/\*\s+MACDOC\s*#io) {
+ if ($x =~ m#\s*/\*\s+MACDOC\s*#io || ($x =~ /^#/ && $x !~ /^#define/)) {
# do nothing
}
elsif ($x =~ /([^\{]*)/) {
$prototype .= $1;
}
- if (($x =~ /\{/) || ($x =~ /\#/) || ($x =~ /;/)) {
+ if (($x =~ /\{/) || ($x =~ /\#define/) || ($x =~ /;/)) {
$prototype =~ s@/\*.*?\*/@@gos; # strip comments.
$prototype =~ [EMAIL PROTECTED]@ @gos; # strip newlines/cr's.
$prototype =~ [EMAIL PROTECTED]@@gos; # strip leading spaces
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html