|
3 lat temu | |
---|---|---|
.. | ||
.gitignore | 3 lat temu | |
Makefile | 3 lat temu | |
README.md | 3 lat temu | |
gen-zstd-manual.sh | 3 lat temu | |
gen_html.cpp | 3 lat temu |
This simple C++ program generates a single-page HTML manual from zstd.h
.
The format of recognized comment blocks is following:
/*!
mean: this is a function declaration; switch comments with declarations/**
and /*-
mean: this is a comment; use a <H2>
header for the first line/*=
and /**=
mean: use a <H3>
header and show also all functions until first empty line/*X
where X
is different from above-mentioned are ignoredMoreover:
ZSTDLIB_API
is removed to improve readabilitytypedef
are detected and included even if uncommented/**<
and /*!<
are detected and only function declaration is highlighted (bold)The program requires 3 parameters:
gen_html [zstd_version] [input_file] [output_html]
To compile program and generate zstd manual we have used:
make
./gen_html.exe 1.1.1 ../../lib/zstd.h zstd_manual.html