how to

auto-generate-headers-from-c

Jan 15, 2024
langsc
1 Minutes
78 Words

Sol 1

https://github.com/taylordotfish/autoheaders

使用 git clone + pip 安装(建议虚拟环境),用法:

1
autoheaders src/lib.c -o include/tmp.h

有一些 bug,比如无法解析 lib.c 引用其他头文件的 typedef struct 类型,直接会报错。所以大概对简单的源文件才能使用。并且这仓库已经几年没更新了。

Article title:auto-generate-headers-from-c
Article author:Julyfun
Release time:Jan 15, 2024
Copyright 2025
Sitemap