[geany/geany] 2b8cfb: Use `%NULL`, `%FALSE` and `%TRUE` in the GtkDoc output

Colomban Wendling git-noreply at xxxxx
Sun Feb 28 00:02:52 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 28 Feb 2016 00:02:52 UTC
Commit:      2b8cfb3f840a165ac7b001d9efcd23349523c78a
             https://github.com/geany/geany/commit/2b8cfb3f840a165ac7b001d9efcd23349523c78a

Log Message:
-----------
Use `%NULL`, `%FALSE` and `%TRUE` in the GtkDoc output


Modified Paths:
--------------
    scripts/gen-api-gtkdoc.py

Modified: scripts/gen-api-gtkdoc.py
8 lines changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -70,11 +70,11 @@ def cb(self, type, str):
             self.annot.append("%s %s" % (type, str))
         elif (type ==  "see"):
             return "See " + str
+        elif type in ("a", "c") and str in ("NULL", "TRUE", "FALSE"):
+            # FIXME: some of Geany does @a NULL instead of @c NULL
+            return "%" + str
         elif (type ==  "a"):
-            if (str != "NULL"): # FIXME: some of geany does @a NULL
-                return "@" + str
-            else:
-                return str
+            return "@" + str
         else:
             return str
 



--------------
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