Skip to main content

a tool to inject prototypes into header from c files

Project description

hgen

Introduction

showcase

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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hgen-1.0.3.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

hgen-1.0.3-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page