Generate .c
and .h
declarations files
-
scoop:
- run
scoop bucket add marcosbozzani https://github.com/marcosbozzani/scoop
- run
scoop install headsup
- run
-
manual:
- download the latest release
- move the
headsup.exe
to the $PATH
headsup (-h|-c) <output> <input.c> [<input.h>]
- options:
-h
: generate declarations for header-c
: generate declarations for source
- arguments
output
: generated file, e.g.file.decl.c
orfile.decl.h
input.c
: source file with the definitions, e.g.file.c
input.h
: header file with the definitions, e.g.file.h
(optional)
- examples:
headsup -c file.decl.c file.c
headsup -h file.decl.h file.c
headsup -c file.decl.c file.c file.h
headsup -h file.decl.h file.c file.h
- prerequisites:
ninja
,gcc
,cdecl
:- if you use scoop:
scoop bucket add marcosbozzani https://github.com/marcosbozzani/scoop
scoop install gcc ninja cdecl
- if you use scoop:
- clone
git clone https://github.com/marcosbozzani/headsup.git
- run
./configure.ps1 release
or./configure.ps1 debug
- run
ninja
- run
./configure.ps1 release
or./configure.ps1 debug
- run
ninja test