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

📄 mkolddoc.sh

📁 seismic software,very useful
💻 SH
字号:
#! /bin/sh# mkolddoc - change self-docs from ANSI to pre-ANSI# Usage: mkolddoc file(s)## $Author: jkc $# $Source$# $Revision$ ; $Date$# this is for emergency use if porting to pre-ANSI C system that# doesn't support "..." "..." string concatenation, etc.# works only with Dave's coding style and conventions# changes sdoc string to pre-ANSI style# changes declaration of main to pre-ANSI style# does NOT change declarations of any embedded subs!savedir=/usr/tmptmpfile=$$.mkoldfor ido	cp $i $savedir/$$.$i	sed -n '1,/^$/p' $i |	sed '		s/char \*sdoc =/&"\\/		/^"\\n";$/s//";/		/^".*\\n"$/s/\\n"/\\n\\/		/\\n\\$/s/^"//	' >$tmpfile	sed -n '/^$/,$p' $i |	sed '		s/^{/int argc; char **argv; {/		s/main (int argc, char \*\*argv)/main(argc, **argv)/		s/main(int argc, char \*\*argv)/main(argc, **argv)/	' >>$tmpfile	mv $tmpfile $idoneexit 0

⌨️ 快捷键说明

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