find_cc
来自「一个很不错的程序切片工具,希望大家来讨论以下,对测试人员很有帮助」· 代码 · 共 29 行
TXT
29 行
#!/bin/csh -f## find a path to a C pre processor#foreach dir ($path) if ($dir != "." ) then if (-e $dir) then cd $dir if (-e acc && ! $?accpath) then set accpath = $dir else if (-e gcc && ! $?gccpath) then set gccpath = $dir else if (-e cc && ! $?ccpath) then set ccpath = $dir endif endif endifend if ($?accpath) then echo "# define CC " \""$accpath/acc"\" else if ($?gccpath) then echo "# define CC " \""$gccpath/gcc"\" else if ($?ccpath) then echo "# define CC " \""$ccpath/cc"\" else echo no C compiler found endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?