a tool to inject prototypes into header from c files
Project description
hgen
Introduction
Injects c function prototypes(BSD-style) into header.
limitations
- cannot capture multi-line function prototypes
- cannot capture K&R style definitions
- breaks when function does not work with norminette
Usage
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 ==
)
examples
// @func
// @end
#ifndef HEAD_H
# define HEAD_H
// ===== @functions =====
#endif
Plans
- refactors
- json based configuration
- support K&R style function definitions
- support multiline function definitions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hgen-1.0.2.tar.gz
(8.0 kB
view hashes)
Built Distribution
hgen-1.0.2-py3-none-any.whl
(9.6 kB
view hashes)