📄 testincl
字号:
#!/bin/sh## call:# COMPILE=...; export COMPILE# if ./testincl [-q] "foo.h" ...#echo=echocase $1 in -q) echo=":" shift ;;esacIFILE="<$1>"echo "#include $IFILEmain(){ exit(0); }" > conftest.ceval $COMPILE# Brian Murphy asks not to run conftest since that fails on cross-compilation.# Maybe just testing for the existence of conftest suffices.# if test -s conftest && ./conftest 2>/dev/null; thenif test -s conftest 2>/dev/null; then res=0 $echo "You have $IFILE"else res=1 $echo "You don't have $IFILE"firm -f conftest conftest.cexit $res
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -