forked from PolMine/RcppCWB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI-documentation-examples
More file actions
72 lines (47 loc) · 1.61 KB
/
API-documentation-examples
File metadata and controls
72 lines (47 loc) · 1.61 KB
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
Examples of the formatting of code comments that are intended to become part of the autogenerated API documentation.
A FUNCTION:
/**
* Count the number of arguments on the attribute's dynamic argument list.
*
* (a detailed description could go here)
*
* @param attribute pointer to the Attribute object to analyse
* @return int specifying the number of arguments;
* a negative integer is returned if for any argument
* on dyn.arglist, the type is equal to ATTAT_VAR
*/
int
nr_of_arguments(Attribute *attribute)
{
(...)
A STRUCTURE:
/**
* Underlying structure for the CorpusProperty object-pointer type.
* The structure takes the form of a linked-list entry.
*/
typedef struct TCorpusProperty {
/**
* A string specifying the property in question.
*/
char *property;
/**
* A string containing the value of the property in question.
*/
char *value;
/**
* Pointer to the next entry in the linked list.
*/
struct TCorpusProperty *next;
(...)
A STRUCTURE, USING THE ALTERNATIVE SAME-LINE FORMAT FOR MEMBERS
/**
* Contains information on a loaded corpus.
*
*/
struct TCorpus {
char *id; /**< a unique ID (i.e., the registry name identifying the corpus to the CWB) */
char *name; /**< the full name of the corpus (descriptive, for information only) */
char *path; /**< the ``home directory'' of the corpus */
char *info_file; /**< the path of the info file of the corpus */
CorpusCharset charset; /**< a special corpus property: internal support for 'latin1' to 'latin9' planned */
(...)