diff options
author | Hagen Moebius <hagen.moebius@starschiffchen.de> | 2004-03-07 22:09:32 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2004-03-07 22:09:32 +0000 |
commit | 6d320e27c709a4b43009064585561d0d4af8df8a (patch) | |
tree | 03b4288693b79eeeb3c575cb23c91fb583c418c0 | |
parent | 33b836cf49befc2607fc11e88930a84eee2a8893 (diff) | |
download | pygtk-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | codegen/docextract.py | 10 |
2 files changed, 14 insertions, 2 deletions
@@ -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() |