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.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hgen-1.0.5-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file hgen-1.0.5.tar.gz.

File metadata

  • Download URL: hgen-1.0.5.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for hgen-1.0.5.tar.gz
Algorithm Hash digest
SHA256 efcef96d0518e68f779018e2a1e2e1340f1b9dfc347975d8cec3914bd8cdd3c1
MD5 8bd8588513c28d3c7f3f035e9ef9c5ae
BLAKE2b-256 9c831392b128d618e187c09f646b11858a0b610f5ff6fbd99b5b62703a53a9cd

See more details on using hashes here.

File details

Details for the file hgen-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: hgen-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1

File hashes

Hashes for hgen-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1e2daa6964beb4412d4156799b1a9652d755ce65cf017ef0d0bb756e8d247e38
MD5 7ac42f22aa1ef5ee92a2a9d0c96c7320
BLAKE2b-256 8fae675f870ce5f8c76db3cd769d3a1578c65b6356e31361834a702d2ec06645

See more details on using hashes here.

Supported by

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