/genheader

A tool to inject prototypes into header from C files.

Primary LanguagePythonThe UnlicenseUnlicense

genheader

Introduction

showcase

Injects c function prototypes(BSD-style) into header.

Usage

genheader [-h] -I header.h [dir/ ... file.c]

You need to have a .h file with

  • A line comment containing: @functions or @func
  • End with #endif or @end

examples

#ifndef HEAD_H
# define HEAD_H

//	===== @functions =====
#endif
//	@func
//	@end