[gtk-doc] fixxref: check for "-" in link and not "_". FIxes #604992
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-doc] fixxref: check for "-" in link and not "_". FIxes #604992
- Date: Sat, 19 Dec 2009 20:21:09 +0000 (UTC)
commit 3ea589b993279620937e828aa44724c7b1e87bc8
Author: David NeÄ?as <yeti physics muni cz>
Date: Sat Dec 19 22:18:58 2009 +0200
fixxref: check for "-" in link and not "_". FIxes #604992
The warning is not issued if the function name does not contain underscore.
But since the link target is checked, that contains underscores transofrmed to
dashes, the warning is never issued.
gtkdoc-fixxref.in | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gtkdoc-fixxref.in b/gtkdoc-fixxref.in
index db56804..8f166ef 100755
--- a/gtkdoc-fixxref.in
+++ b/gtkdoc-fixxref.in
@@ -355,13 +355,14 @@ sub MakeXRef {
# don't warn multiple times and also skip blacklisted (ctypes)
$warn = 0 if exists $NoLinks{$id};
- # if its a function, don't warn if it does not contain a "_"
+ # if it's a function, don't warn if it does not contain a "_"
+ # (transformed to "-")
# - gnome coding style would use '_'
# - will avoid wrong warnings for ansi c functions
- $warn = 0 if ($text =~ m/ class=\"function\"/ && $id !~ m/_/);
- # if its a 'return value', don't warn (implizitely created link)
+ $warn = 0 if ($text =~ m/ class=\"function\"/ && $id !~ m/-/);
+ # if it's a 'return value', don't warn (implicitly created link)
$warn = 0 if ($text =~ m/ class=\"returnvalue\"/);
- # if its a 'type', don't warn if it starts with lowercase
+ # if it's a 'type', don't warn if it starts with lowercase
# - gnome coding style would use CamelCase
$warn = 0 if ($text =~ m/ class=\"type\"/ && ($id =~ m/^[a-z]/));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]