扩展名为"h.in"的文件是什么意思? [英] What mean file with extension "h.in"?

查看:2156
本文介绍了扩展名为"h.in"的文件是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习C语言,并且看到了一个以前从未见过的新扩展.

I am studying the C language, and I saw a new extension that I had not seen before.

扩展名为library.h.in的文件是什么意思?

What do files with the extension like library.h.in mean?

它是扩展名为".h"的简单标头吗?有什么区别?

Is it as the simple header with extension ".h"? What's the difference?

推荐答案

这些文件通常是的输入autoconf ,它将生成最终的.h文件.

These files are usually the input for autoconf which will generate final .h files.

这是PCRE的一个例子:

Here's an example from PCRE:

#define PCRE_MAJOR          @PCRE_MAJOR@
#define PCRE_MINOR          @PCRE_MINOR@
#define PCRE_PRERELEASE     @PCRE_PRERELEASE@
#define PCRE_DATE           @PCRE_DATE@

Autoconf将用各自的值替换所有变量(@…@),结果将是.h文件.

Autoconf will replace all variables (@…@) with the respective values and the result will be a .h file.

这篇关于扩展名为"h.in"的文件是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆