[geany/geany] 91daa9: Fix handling of some GtkDoc annotations
Colomban Wendling
git-noreply at xxxxx
Thu Feb 18 23:03:30 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Thu, 18 Feb 2016 23:03:30 UTC
Commit: 91daa9f9db0b83f069388c954bf985a4436f42fa
https://github.com/geany/geany/commit/91daa9f9db0b83f069388c954bf985a4436f42fa
Log Message:
-----------
Fix handling of some GtkDoc annotations
Modified Paths:
--------------
scripts/gen-api-gtkdoc.py
Modified: scripts/gen-api-gtkdoc.py
17 lines changed, 7 insertions(+), 10 deletions(-)
===================================================================
@@ -58,17 +58,14 @@ def cb(self, type, str):
self.annot = []
elif (type == "since"):
self.since = str.rstrip()
- elif (type == "geany:skip"):
- self.annot.append("skip")
- elif (type == "geany:nullable") or (type == "geany:skip"):
+ elif type in ("geany:nullable",
+ "geany:skip",
+ "geany:closure",
+ "geany:destroy"):
self.annot.append(type.split(":")[1])
- elif (type == "geany:cb"):
- self.annot.append("scope notified")
- elif (type == "geany:cbdata"):
- self.annot.append("closure")
- elif (type == "geany:cbfree"):
- self.annot.append("destroy")
- elif (type == "geany:transfer") or (type == "geany:element-type") or (type == "geany:scope"):
+ elif type in ("geany:transfer",
+ "geany:element-type",
+ "geany:scope"):
type = type.split(":")[1]
self.annot.append("%s %s" % (type, str))
elif (type == "see"):
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list