summaryrefslogtreecommitdiffstats
path: root/src/doc.c
blob: 33a283eb69c5a7e785f0ef721ea49e79da39fb73 (plain) (blame)
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
/*
 * Doc/test generation. See doctest.h for more information.
 */
#include "doctest.h"

#ifdef DOCS
#include <stdio.h>

#include "doctest.declare"

struct docs {
	int dummy;
};

void docs_for( struct docs *doc, char *sig, char *name, char *params ) {
	printf("docs_for: %s %s (%s)\n", sig, name, params);
}

void docs_line( struct docs *doc, char *s ) {
	printf("docs_line: %s\n", s);
}

void docs_testline( struct docs *doc, int lineno, char *file, char *s) {
	printf("docs_testline: %s:%d: %s\n", file, lineno, s);
}

int main(int argc, char *argv[]) {
	struct docs doc = {0};
#include "doctest.include"
	return 0;
}
#endif