summaryrefslogtreecommitdiff
path: root/gtkdoc-fixxref.in
diff options
context:
space:
mode:
authorDavid Nečas <yeti@physics.muni.cz>2009-12-19 22:18:58 +0200
committerStefan Kost <ensonic@users.sf.net>2009-12-19 22:18:58 +0200
commit3ea589b993279620937e828aa44724c7b1e87bc8 (patch)
tree5bbc3d5ce6e68b2a259781edb57c9e1ef28cde63 /gtkdoc-fixxref.in
parentfae445031a99417737c7efdede6967d87789b242 (diff)
downloadgtk-doc-3ea589b993279620937e828aa44724c7b1e87bc8.tar.gz
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.
Diffstat (limited to 'gtkdoc-fixxref.in')
-rwxr-xr-xgtkdoc-fixxref.in9
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]/));