Ver Fonte

Support @class, fix execution failure

Tatsuhiro Tsujikawa há 12 anos atrás
pai
commit
f2c2f08585
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      doc/manual-src/en/mkapiref.py

+ 4 - 2
doc/manual-src/en/mkapiref.py

@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+#
 # aria2 - The high speed download utility
 #
 # Copyright (C) 2013 Tatsuhiro Tsujikawa
@@ -107,7 +109,7 @@ def make_api_ref(infiles):
                     functions.append(process_function('function', infile))
                 elif doctype == '@typedef':
                     types.append(process_typedef(infile))
-                elif doctype in ['@struct', '@union']:
+                elif doctype in ['@class', '@struct', '@union']:
                     types.append(process_struct(infile))
                 elif doctype == '@enum':
                     enums.append(process_enum(infile))
@@ -115,7 +117,7 @@ def make_api_ref(infiles):
                     macros.append(process_macro(infile))
     alldocs = [('Macros', macros),
                ('Enums', enums),
-               ('Types (structs, unions and typedefs)', types),
+               ('Types (classes, structs, unions and typedefs)', types),
                ('Functions', functions)]
     for title, docs in alldocs:
         if not docs: