📄 find_cc
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -