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 ...] [-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-0.1.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
hgen-0.1.0-py3-none-any.whl
(9.4 kB
view hashes)