国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

nginx 源碼頭文件包含為什么是 < >, 而不是" "
巴扎黑
巴扎黑 2017-05-16 17:18:11
0
1
529

在看nginx 源碼是看到頭文件包含都是 使用 #include <ngx_core.h> #include <nginx.h> 類似格式, 在 IDE 中會(huì)報(bào)錯(cuò)找不到文件
這些文件不是在系統(tǒng)目錄里,為什么要使用 "<>"

巴扎黑
巴扎黑

全部回復(fù)(1)
巴扎黑

以下節(jié)選自ISO/IEC 9899:1999原文:

# include <h-char-sequence> new-line
searches a sequence of implementation-defined places for a header identified uniquely by the specified sequence between the < and > delimiters, and causes the replacement of that directive by the entire contents of the header.

How the places are specified or the header identified is implementation-defined.

注意到最后了嗎,implementation-defined——沒(méi)人規(guī)定說(shuō)就是系統(tǒng)目錄,而且很多編譯器的默認(rèn)行為也不是僅查找系統(tǒng)目錄。即使是同一種編譯器,具體的行為尚且可能取決于你提供的選項(xiàng)呢,何況C語(yǔ)言編譯器五花八門。

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板