Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (29 loc) · 879 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 879 Bytes

hgen

Introduction

showcase

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

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