fb-doc
0.4.0
FreeBASIC documentation tool
empty.bas
Go to the documentation of this file.
1
75
76
#INCLUDE ONCE
"../fbdoc_options.bi"
77
78
79
86
SUB
empty_declare
CDECL
(
BYVAL
P
AS
Parser
PTR
)
87
Code(NL &
__FUNCTION__
&
": "
& P->LineNo &
" "
& P->
SubStr
(P->NamTok))
88
END SUB
89
90
91
98
SUB
empty_function
CDECL
(
BYVAL
P
AS
Parser
PTR
)
99
WITH
*P
'&Parser* P;
100
VAR
nam = .
SubStr
(
IIF
(.NamTok[3] = .TOK_DOT, .NamTok + 6, .NamTok))
101
Code(NL &
__FUNCTION__
&
": "
& .LineNo &
" "
& nam)
102
END WITH
103
END SUB
104
105
106
113
SUB
empty_enum
CDECL
(
BYVAL
P
AS
Parser
PTR
)
114
Code(NL &
__FUNCTION__
)
115
END SUB
116
117
118
125
SUB
empty_union
CDECL
(
BYVAL
P
AS
Parser
PTR
)
126
Code(NL &
__FUNCTION__
)
127
END SUB
128
129
130
137
SUB
empty_class
CDECL
(
BYVAL
P
AS
Parser
PTR
)
138
Code(NL &
__FUNCTION__
)
139
END SUB
140
141
142
149
SUB
empty_define
CDECL
(
BYVAL
P
AS
Parser
PTR
)
150
Code(NL &
__FUNCTION__
)
151
END SUB
152
153
154
161
SUB
empty_include
CDECL
(
BYVAL
P
AS
Parser
PTR
)
162
WITH
*P
'&Parser* P;
163
VAR
nam = .
SubStr
(.NamTok)
164
Code(NL &
__FUNCTION__
&
": "
& .LineNo &
" "
& nam)
165
IF
.InTree
THEN
.
Include
(
TRIM
(nam,
""""
))
166
END WITH
167
END SUB
168
169
170
177
SUB
empty_init
CDECL
(
BYVAL
P
AS
Parser
PTR
)
178
Code(NL &
__FUNCTION__
)
179
END SUB
180
181
182
189
SUB
empty_error
CDECL
(
BYVAL
P
AS
Parser
PTR
)
190
Code(NL &
__FUNCTION__
)
191
END SUB
192
193
194
201
SUB
empty_empty
CDECL
(
BYVAL
P
AS
Parser
PTR
)
202
Code(NL &
__FUNCTION__
)
203
END SUB
204
205
206
213
SUB
empty_exit
CDECL
(
BYVAL
P
AS
Parser
PTR
)
214
Code(NL &
__FUNCTION__
)
215
END SUB
216
217
218
225
SUB
empty_CTOR
CDECL
(
BYVAL
O
AS
Options
PTR
)
226
PRINT
NL &
__FUNCTION__
227
END SUB
228
229
230
237
SUB
empty_DTOR
CDECL
(
BYVAL
O
AS
Options
PTR
)
238
PRINT
NL &
__FUNCTION__
& NL
239
END SUB
240
241
242
261
SUB
EmitterInit
CDECL
(
BYVAL
Emi
AS
EmitterIF
PTR
,
BYREF
Par
AS STRING
)
EXPORT
262
WITH
*Emi
263
.CTOR_ = @
empty_CTOR
()
264
.DTOR_ = @
empty_DTOR
()
265
266
.Decl_ = @
empty_declare
()
267
.Func_ = @
empty_function
()
268
.Enum_ = @
empty_enum
()
269
.Unio_ = @
empty_union
()
270
.Clas_ = @
empty_class
()
271
.Defi_ = @
empty_define
()
272
.Incl_ = @
empty_include
()
273
.Init_ = @
empty_init
()
274
.Error_ = @
empty_error
()
275
.Empty_ = @
empty_empty
()
276
.Exit_ = @
empty_exit
()
277
END WITH
278
279
VAR
a =
INSTR
(Par, !
"\t-empty="
)
' get out parameter, if any
280
IF
a
THEN
281
a += 8
282
VAR
e =
INSTR
(a, Par, !
"\t"
)
283
IF 0
= e
THEN
e =
LEN
(Par) + 1
284
PRINT
"parameter is '"
&
MID
(Par, a, e - a) &
"'"
285
Par =
LEFT
(Par, a - 9) &
MID
(Par, e)
286
END IF
287
END SUB
288
src
bas
plugins
empty.bas
Generated on Tue Nov 22 2016 17:50:33 for fb-doc by
1.8.11