[gtk-doc] gtkdoc-mkdb: add a warning if section name is not used in -section.txt
- From: Stefan Kost <stefkost src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-doc] gtkdoc-mkdb: add a warning if section name is not used in -section.txt
- Date: Tue, 29 Sep 2009 14:11:48 +0000 (UTC)
commit 314b61f6ca5d3b23f1bd15ea21816b202b224857
Author: Stefan Kost <ensonic users sf net>
Date: Tue Sep 29 17:07:41 2009 +0300
gtkdoc-mkdb: add a warning if section name is not used in -section.txt
This check can only be used in we don't autogenenrate the sections.txt file.
gtkdoc-mkdb.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index f300a6c..fea19c5 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -3429,6 +3429,12 @@ sub ScanSourceFile {
my $real_symbol=$1;
my $key;
+ if (scalar %KnownSymbols) {
+ if ((! defined($KnownSymbols{"$TMPL_DIR/$real_symbol:Long_Description"})) || $KnownSymbols{"$TMPL_DIR/$real_symbol:Long_Description"} != 1) {
+ &LogWarning ($file, $., "Section $real_symbol is not defined in the $MODULE-section.txt file.");
+ }
+ }
+
#print "SECTION DOCS found in source for : '$real_symbol'\n";
$ignore_broken_returns = 1;
for ($k = 0; $k <= $#params; $k += $PARAM_FIELD_COUNT) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]