File: function-description.txt

package info (click to toggle)
gb 0.0.20-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,676 kB
  • ctags: 2,897
  • sloc: ansic: 22,647; sh: 8,730; yacc: 634; makefile: 431; sed: 93
file content (26 lines) | stat: -rw-r--r-- 736 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
Documentation of function and subroutine argument descriptions
Ariel Rios 2000.

The argument description string will be:
"type;name;(types...).(type...);[type;]level"

Eg.
"func;add;a,double;b,double;c,double;double;FWX"
  1        2          3            4        5    6

1) Type 'func' or 'sub'
2) The name of the function that will be copied into the name member of
the struct
3) This part (as well as part four) are the arguments the basic function
will always be taking.
4) The same as (3) with the difference that any type after the dot is
optional
5) the basic function return type ( NB. for a sub this is ommitted )
6) security flags ( see gbrun/gbrun.h ).

A type is made up of:

;name,type,[byval,byref, [default_value]];