summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHagen Moebius <hagen.moebius@starschiffchen.de>2004-03-07 22:09:32 +0000
committerMurray Cumming <murrayc@src.gnome.org>2004-03-07 22:09:32 +0000
commit6d320e27c709a4b43009064585561d0d4af8df8a (patch)
tree03b4288693b79eeeb3c575cb23c91fb583c418c0
parent33b836cf49befc2607fc11e88930a84eee2a8893 (diff)
downloadpygtk-6d320e27c709a4b43009064585561d0d4af8df8a.tar.gz
avoid the non-uniform behavior of gtk-doc to have an imaginary returns
2004-03-07 Hagen Moebius <hagen.moebius@starschiffchen.de> * codegen/docextract.py: avoid the non-uniform behavior of gtk-doc to have an imaginary returns parameter. it is converted into the <return>-tag.
-rw-r--r--ChangeLog6
-rw-r--r--codegen/docextract.py10
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0579967b..ac366526 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-07 Hagen Moebius <hagen.moebius@starschiffchen.de>
+
+ * codegen/docextract.py: avoid the non-uniform behavior of gtk-doc
+ to have an imaginary "returns" parameter. it is converted into the
+ <return>-tag.
+
2004-03-07 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
* examples/pygtk-demo/gtk-logo-rgb.gif,
diff --git a/codegen/docextract.py b/codegen/docextract.py
index d52a8fd1..1de45678 100644
--- a/codegen/docextract.py
+++ b/codegen/docextract.py
@@ -107,11 +107,17 @@ def parse_file(fp, doc_dict):
if match:
param = match.group(1)
desc = match.group(2)
- cur_doc.add_param(param, desc)
+ if param == 'returns':
+ cur_doc.ret = desc
+ else:
+ cur_doc.add_param(param, desc)
else:
# must be continuation
try:
- cur_doc.append_to_last_param(line)
+ if param == 'returns':
+ cur_doc.append_return(line)
+ else:
+ cur_doc.append_to_last_param(line)
except:
sys.stderr.write('something weird while reading param\n')
line = fp.readline()