Injects c function prototypes(BSD-style) into header.
limitations
- breaks when function does not work with norminette
- that means a function must not have any whitespace before its return type
- and exactly one tab must seperate its return type and name
hgen [-h] -I header.h src.c [src/ ...] [-c path]
your header should have flags that
- begins with:
@func
or@function(s)
at your comment - ends with:
#endif
or@end
or multiple=
(ex:== some identifier ==
)
// @func
// @end
#ifndef HEAD_H
# define HEAD_H
// ===== @functions =====
#endif
- refactors
- json based configuration
- support K&R style function definitions
- support multiline function definitions