-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
42 lines (36 loc) · 1.33 KB
/
README
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
cdoc -- like godoc but worse and for c
Synopsis:
cdoc allows you to embed documentation into C files and extract the
docs out of the file, search for docs in a file, and search for
functions in a file.
Usage: cdoc [-h] [-S [-t n]] [-s search term] [-f output] [files...]
-s search term
search for a function definition and print the documentation
-f output file
pipe the output to a file
-h
print this message
-S
prefer spaces over tabs
-t n
use n spaces for tabulation (with -S)
Problems:
* The parser is pretty ad-hoc and could be significantly improved
* The formatting of generated documentation is pretty limited and
could be significantly improved by (possibly) having cdoc do
the tabulations itself instead of using \t and the terminal.
This would also enforce some standardized tab size.
* Everything is really vulnerable to buffer overflows.
* It's pretty fragile.
* Lex kinda sucks.
* It's pretty quick and dirty. Could use some refactoring I think.
Contributing:
Submit patches by getting in touch or via bitbucket. Be sure not to
include config.mk if you've made any changes to it. I suggest adding
these lines to you .hg/hgrc:
[defaults]
commit = -X config.mk
status = -X config.mk
diff = -X config.mk
Bugs:
yes.