fb-doc  0.4.0
FreeBASIC documentation tool
fbdoc_emitters.bi
Go to the documentation of this file.
1 
7 
8 
9 #IFDEF __FB_UNIX__
10  CONST _
11  SLASH = "/" _
12  , NL = !"\n"
13 '&/*
14 #ELSE
15  CONST _
16  SLASH = "\" _
17  , NL = !"\r\n"
18 '&*/
19 #ENDIF
20 
21 
22 CONST _
23 COMM_END = NL & "'/" & NL, _
24  TOFIX = "FIXME"
25 
26 
27 
35 ENUM EmitterTypes
36  C_SOURCE
41  EXTERNAL
42 END ENUM
43 
44 
45 TYPE AS Parser Parser_
46 
47 
49 TYPE EmitFunc AS SUB CDECL(BYVAL P AS Parser_ PTR)
50 
51 
52 TYPE AS Options Options_
53 
54 
56 TYPE TorFunc AS SUB CDECL(BYVAL O AS Options_ PTR)
57 
58 
59 '&typedef EmitterIF* EmitterIF_PTR; //!< Doxygen internal (ignore this).
60 
86 TYPE EmitterIF
87 ' This is tricky code to make Doxygen document an interface:
88 '&/* Doxygen shouldn't parse this ...
89  AS TorFunc _
90  CTOR_ = 0 _
91  , DTOR_ = 0
92  AS EmitFunc _
93  Init_ = 0 _
94  , Decl_ = 0 _
95  , Func_ = 0 _
96  , Enum_ = 0 _
97  , Unio_ = 0 _
98  , Clas_ = 0 _
99  , Defi_ = 0 _
100  , Incl_ = 0 _
101  , Error_ = 0 _
102  , Empty_ = 0 _
103  , Exit_ = 0
104 '&... but the following pseudo inline members instead */
105 
106 
107 '&inline void CTOR_ (void){c_CTOR();};
108 
109 
110 '&inline void DTOR_ (void){};
111 
112 
113 '&inline void Init_ (void){c_Init(); geany_init(); synt_init();};
114 
115 
116 '&inline void Exit_ (void){c_exit(); geany_exit(); synt_exit();};
117 
118 
119 '&inline void Decl_ (void){c_decl_(); gtk_decl_(); doxy_decl_(); lfn_decl_();};
120 
121 
122 '&inline void Func_ (void){c_func_(); gtk_func_(); doxy_func_(); lfn_func_(); synt_func_();};
123 
124 
125 '&inline void Enum_ (void){c_Block(); gtk_Block(); doxy_Block();};
126 
127 
128 '&inline void Unio_ (void){c_Block(); gtk_Block(); doxy_Block(); lfn_class_();};
129 
130 
131 '&inline void Clas_ (void){c_Block(); gtk_Block(); doxy_Block(); lfn_class_();};
132 
133 
134 '&inline void Defi_ (void){c_defi_(); gtk_defi_(); doxy_defi_();};
135 
136 
137 '&inline void Incl_ (void){c_include(); lfn_include(); synt_incl();};
138 
139 
140 '&inline void Error_ (void){emit_error();};
141 
142 
143 '&inline void Empty_ (void){gtk_empty(); doxy_empty(); synt_empty();};
144 END TYPE
145 
146 '&/*
147 DECLARE SUB geany_init CDECL(BYVAL AS Parser_ PTR)
148 DECLARE SUB geany_exit CDECL(BYVAL AS Parser_ PTR)
149 DECLARE SUB emit_comments CDECL(BYVAL AS Parser_ PTR, BYVAL AS INTEGER)
150 DECLARE SUB emit_source CDECL(BYVAL AS Parser_ PTR, BYVAL AS INTEGER)
151 DECLARE SUB emit_error CDECL(BYVAL AS Parser_ PTR)
152 DECLARE SUB cNam CDECL(BYVAL AS Parser_ PTR)
153 DECLARE SUB CreateIni CDECL(BYVAL AS Parser_ PTR)
154 DECLARE SUB cppCreateFunction CDECL(BYVAL AS Parser_ PTR)
155 DECLARE SUB cCreateFunction CDECL(BYVAL AS Parser_ PTR)
156 DECLARE SUB cppCreateTypNam CDECL(BYVAL AS Parser_ PTR)
157 DECLARE SUB cCreateTypNam CDECL(BYVAL AS Parser_ PTR)
158 '&*/
159 
160