File: cr-hl-api-function.texi

package info (click to toggle)
g-golf 0.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,160 kB
  • sloc: lisp: 24,361; sh: 1,213; ansic: 964; makefile: 469; xml: 7
file content (406 lines) | stat: -rw-r--r-- 8,500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
@c -*-texinfo-*-

@c This is part of the GNU G-Golf Reference Manual.
@c Copyright (C) 2019 - 2022 Free Software Foundation, Inc.
@c See the file g-golf.texi for copying conditions.


@c @defindex ei


@node Function
@subsection Function

G-Golf GI function and argument high level API.@*
The G-Golf GI function and argument high level API.


@subheading Classes

@indentedblock
@table @code
@item @ref{<function>}
@item @ref{<argument>}
@end table
@end indentedblock

@subheading Accessors and Methods

@indentedblock
@table @code

@c <function> accessors
@item @ref{!info_}
@item @ref{!namespace_}
@item @ref{!g-name____}
@item @ref{!name}
@item @ref{!override?}
@item @ref{!i-func}
@item @ref{!o-func}
@item @ref{!o-spec-pos}
@item @ref{!flags}
@item @ref{!is-method?}
@item @ref{!n-arg}
@item @ref{!caller-owns}
@item @ref{!return-type_}
@item @ref{!type-desc}
@item @ref{!may-return-null}
@item @ref{!arguments}
@item @ref{!n-gi-arg-in}
@item @ref{!args-in}
@item @ref{!gi-args-in}
@item @ref{!gi-args-in-bv}
@item @ref{!n-gi-arg-out}
@item @ref{!args-out}
@item @ref{!gi-args-out}
@item @ref{!gi-args-out-bv}
@item @ref{!gi-arg-result}

@c <argument> accessors
@item @ref{!g-name_____}
@item @ref{!name_}
@item @ref{!closure}
@item @ref{!destroy}
@item @ref{!direction}
@item @ref{!transfert}
@item @ref{!scope}
@item @ref{!type-tag}
@item @ref{!type-desc_}
@item @ref{!forced-type}
@item @ref{!string-pointer}
@item @ref{!is-pointer?}
@item @ref{!may-be-null?}
@item @ref{!is-caller-allocate?}
@item @ref{!is-optional?}
@item @ref{!is-return-value?}
@item @ref{!is-skip?}
@item @ref{!arg-pos}
@item @ref{!gi-argument-in}
@item @ref{!gi-argument-in-bv-pos}
@item @ref{!gi-argument-out}
@item @ref{!gi-argument-out-bv-pos}
@item @ref{!gi-argument-field}
@end table
@end indentedblock


@c @subheading Variables

@c @indentedblock
@c @table @code
@c @item @ref{%gi-strip-boolean-result}
@c @end table
@c @end indentedblock


@subheading Classes


@anchor{<function>}
@deftp Class <function>

Its slots are:

@indentedblock
@table @code

@item @emph{info}
#:accessor !info

@item @emph{namespace}
#:accessor !namespace

@item @emph{g-name}
#:accessor !g-name

@item @emph{name}
#:accessor !name

@item @emph{override?}
#:accessor !override?

@item @emph{i-func}
#:accessor !i-func

@item @emph{o-func}
#:accessor !o-func

@item @emph{o-spec-pos}
#:accessor !o-spec-pos

@item @emph{flags}
#:accessor !flags

@item @emph{is-method?}
#:accessor !is-method

@item @emph{n-arg}
#:accessor !n-arg

@item @emph{caller-owns}
#:accessor !caller-owns

@item @emph{return-type}
#:accessor !return-type

@item @emph{type-desc}
#:accessor !type-desc

@item @emph{may-return-null?}
#:accessor !may-return-null?

@item @emph{arguments}
#:accessor !arguments

@item @emph{n-gi-arg-in}
#:accessor !n-gi-arg-in

@item @emph{args-in}
#:accessor !args-in

@item @emph{gi-args-in}
#:accessor !gi-args-in

@item @emph{gi-args-in-bv}
#:accessor !gi-args-in-bv

@item @emph{n-gi-arg-out}
#:accessor !n-gi-arg-out

@item @emph{args-out}
#:accessor !args-out

@item @emph{gi-args-out}
#:accessor !gi-args-out

@item @emph{gi-args-out-bv}
#:accessor !gi-args-out-bv

@item @emph{gi-arg-result}
#:accessor !gi-arg-result

@end table
@end indentedblock

Instances of the @code{<function>} class are immutable (to be precise,
there are not meant to be mutated, see @ref{GOOPS Notes and
Conventions}, 'Slots are not Immutable').

@end deftp


@anchor{<argument>}
@deftp Class <argument>

Its slots are:

@indentedblock
@table @code

@item @emph{g-name}
#:accessor !g-name	@*
#:init-keyword #:g-name

@item @emph{name}
#:accessor !name	@*
#:init-keyword #:name

@item @emph{closure}
#:accessor !closure

@item @emph{destroy}
#:accessor !destroy

@item @emph{direction}
#:accessor !direction	@*
#:init-keyword #:direction

@item @emph{transfert}
#:accessor !transfert

@item @emph{scope}
#:accessor !scope

@item @emph{type-tag}
#:accessor !type-tag	@*
#:init-keyword #:type-tag

@item @emph{type-desc}
#:accessor !type-desc	@*
#:init-keyword #:type-desc

@item @emph{forced-type}
#:accessor !forced-type	@*
#:init-keyword #:forced-type

@item @emph{string-pointer}
#:accessor !string-pointer

@item @emph{is-pointer?}
#:accessor !is-pointer?	@*
#:init-keyword #:is-pointer?

@item @emph{may-be-null?}
#:accessor !may-be-nul?	@*
#:init-keyword #:may-be-null?

@item @emph{is-caller-allocate?}
#:accessor !is-caller-allocate?

@item @emph{is-optional?}
#:accessor !is-optional?

@item @emph{is-return-value?}
#:accessor !is-return-value?

@item @emph{is-skip?}
#:accessor !is-skip?

@item @emph{arg-pos}
#:accessor !arg-pos	@*
#:init-keyword #:arg-pos

@item @emph{gi-argument-in}
#:accessor !gi-argument-in	@*
#:init-value #f

@item @emph{gi-argument-in-bv-pos}
#:accessor !gi-argument-in-bv-pos	@*
#:init-value #f

@item @emph{gi-argument-out}
#:accessor !gi-argument-out	@*
#:init-value #f

@item @emph{gi-argument-out-bv-pos}
#:accessor !gi-argument-out-bv-pos	@*
#:init-value #f

@item @emph{name}
#:accessor !gi-argument-field	@*
#:init-keyword #:gi-argument-field

@end table
@end indentedblock

Instances of the @code{<argument>} class are immutable (to be precise,
there are not meant to be mutated, see @ref{GOOPS Notes and
Conventions}, 'Slots are not Immutable').

@end deftp



@subheading Accessors and Methods

Note: in this section, the @var{function} and @var{argument} arguments
are [must be] a @code{<function>} and an @code{<argument>} instance,
respectively.


@anchor{!info_}
@anchor{!namespace_}
@anchor{!g-name____}
@anchor{!name}
@anchor{!override?}
@anchor{!i-func}
@anchor{!o-func}
@anchor{!o-spec-pos}
@anchor{!flags}
@anchor{!is-method?}
@anchor{!n-arg}
@anchor{!caller-owns}
@anchor{!return-type_}
@anchor{!type-desc}
@anchor{!may-return-null}
@anchor{!arguments}
@anchor{!n-gi-arg-in}
@anchor{!args-in}
@anchor{!gi-args-in}
@anchor{!gi-args-in-bv}
@anchor{!n-gi-arg-out}
@anchor{!args-out}
@anchor{!gi-args-out}
@anchor{!gi-args-out-bv}
@anchor{!gi-arg-result}
@deffn Accessor !info function
@deffnx Accessor !namespace function
@deffnx Accessor !g-name function
@deffnx Accessor !name function
@deffnx Accessor !override? function
@deffnx Accessor !i-func function
@deffnx Accessor !o-func function
@deffnx Accessor !o-spec-pos function
@deffnx Accessor !flags function
@deffnx Accessor !is-method? function
@deffnx Accessor !n-arg function
@deffnx Accessor !caller-owns function
@deffnx Accessor !return-type function
@deffnx Accessor !type-desc function
@deffnx Accessor !may-return-null function
@deffnx Accessor !arguments function
@deffnx Accessor !n-gi-arg-in function
@deffnx Accessor !args-in function
@deffnx Accessor !gi-args-in function
@deffnx Accessor !gi-args-in-bv function
@deffnx Accessor !n-gi-arg-out function
@deffnx Accessor !args-out function
@deffnx Accessor !gi-args-out function
@deffnx Accessor !gi-args-out-bv function
@deffnx Accessor !gi-arg-result function

Returns the content of their respective slot for @var{function}.
@end deffn

@anchor{!g-name_____}
@anchor{!name_}
@anchor{!closure}
@anchor{!destroy}
@anchor{!direction}
@anchor{!transfert}
@anchor{!scope}
@anchor{!type-tag}
@anchor{!type-desc_}
@anchor{!forced-type}
@anchor{!string-pointer}
@anchor{!is-pointer?}
@anchor{!may-be-null?}
@anchor{!is-caller-allocate?}
@anchor{!is-optional?}
@anchor{!is-return-value?}
@anchor{!is-skip?}
@anchor{!arg-pos}
@anchor{!gi-argument-in}
@anchor{!gi-argument-in-bv-pos}
@anchor{!gi-argument-out}
@anchor{!gi-argument-out-bv-pos}
@anchor{!gi-argument-field}
@deffn Accessor !g-name argument
@deffnx Accessor !name argument
@deffnx Accessor !closure argument
@deffnx Accessor !destroy argument
@deffnx Accessor !direction argument
@deffnx Accessor !transfert argument
@deffnx Accessor !scope argument
@deffnx Accessor !type-tag argument
@deffnx Accessor !type-desc argument
@deffnx Accessor !forced-type argument
@deffnx Accessor !string-pointer argument
@deffnx Accessor !is-pointer? argument
@deffnx Accessor !may-be-null? argument
@deffnx Accessor !is-caller-allocate? argument
@deffnx Accessor !is-optional? argument
@deffnx Accessor !is-return-value? argument
@deffnx Accessor !is-skip? argument
@deffnx Accessor !arg-pos argument
@deffnx Accessor !gi-argument-in argument
@deffnx Accessor !gi-argument-in-bv-pos argument
@deffnx Accessor !gi-argument-out argument
@deffnx Accessor !gi-argument-out-bv-pos argument
@deffnx Accessor !gi-argument-field argument

Returns the content of their respective slot for @var{argument}.
@end deffn


@c @subheading Variables