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

📄 unansi

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻
字号:
# The awk program cvt will convert the relatively sterotyped ansi c# in this troff distribution into older-style c, by munging function# declarations.# You will also have to edit fns.h, by#	sed 's/(.*)/()/g' fns.h >foo; mv foo fns.h# check this before doing the move!# you will also have to make some editing changes in# tdef.h in the Contab structure: s/(void)/()/# you may have to fix up some function declarations# in n4.c, the ones with (*f)(Tchar).# you will surely also have header files to deal with.# the most obvious cases are dealt with by the following# commands.  make sure you do this stuff on a copy!# function prototypes in n8.c probably belong in fns.h. readpats(void) must# be readpats() before cvt runs.sed \	-e 's/(void)/()/' \	-e 's/(Tchar[^)]*);/();/' \	-e 's/(char[^)]*);/();/' \	-e 's/(int[^)]*);/();/' \n8.c >foomv foo n8.cfor i in *.cdo	cvt $i >foo	mv foo $idonesed 's/(.*)/()/g' fns.h >foomv foo fns.hsed -e 's/(void)/()/g' -e '/stdlib/d' tdef.h >foomv foo tdef.h# Compliers may not approve of void *setbrk() in fns.h and n3.c.sed 's/^void\*[ 	]setbrk/char*	setbrk/' fns.h >foomv foo fns.hsed 's/^void \*setbrk/char *setbrk/' n3.c >foomv foo n3.c

⌨️ 快捷键说明

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