The c2hsc package

[ Tags: bsd3, development, program ] [ Propose Tags ]

Convert C API header files to .hsc and .hsc.helper.c files


[Skip to Readme]

Properties

Versions 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.5.0, 0.5.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5
Dependencies base (==4.*), containers, directory, filepath, HStringTemplate, language-c, mtl, pretty, transformers [details]
License BSD3
Author John Wiegley
Maintainer John Wiegley <johnw@newartisans.com>
Category Utilities
Home page https://github.com/jwiegley/c2hsc
Source repository head: git clone https://github.com/jwiegley/c2hsc
Uploaded Tue Sep 4 18:44:32 UTC 2012 by JohnWiegley
Distributions NixOS:0.6.5
Executables c2hsc
Downloads 3429 total (46 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2016-12-24 [all 8 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for c2hsc-0.2.0

[back to package description]

Converts C API header files to .hsc and .hsc.helper.c files

Usage: c2hsc <Lib Prefix> [cpp options...] <FILE>.h

This will create <FILE>.hsc, and <FILE>.hsc.helper.c if the header file contains inline functions.

For example, in hlibgit2 on the Mac I'm using:

c2hsc Bindings.Libgit2 -U__BLOCKS__ libgit2/include/git2/tree.h