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

scarf005/hgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published