⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 what-defs.sh

📁 this is a mirrored site c-faq. thought might need offline
💻 SH
字号:
#!/bin/sh# what-defs: prints names of predefined cpp macros# tested on Sun3, Sun4, SGI, HP, Stellar, Convex, DECstation, Moto 1147# Apparently by Greg Roelofs, a.k.a "Cave Newt"# stupid, stupid Ultrix! I have a "which" function that I cannot use, because# the Ultrix /bin/sh does not understand shell functions! (try /bin/sh5!)# also, the Ultrix "test" command does not understand the -x flag!path="`echo $PATH | sed -e 's/:/ /g'`"cc=`for dir in $path ; do    if [ -r $dir/cc ] ; then	echo $dir/cc	exit    fidone`strings -a -2 /lib/cpp $cc |sed -e 's/^-D//' |sort -u |sed -n '/^[a-zA-Z_][a-zA-Z0-9_]*$/s//#ifdef &\"%&"\#endif/p' >/tmp/$$.ccc -E /tmp/$$.c |sed -n '/%/s/[%"]//gp'rm -f /tmp/$$.cexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -