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

📄 ref.1

📁 操作系统设计与实现源码
💻 1
字号:
%!PS-Adobe-1.0%%Creator: devps (Pipeline Associates, Inc.)%%CreationDate: Fri Sep 13 13:04:20 1996%%Pages: (atend)%%DocumentFonts: (atend)/devps 180 dict def devps begin/res 10.000000 def/y_offset 843 def/X{exch}bind def/mm {transform round X round X itransform} bind def/r{rmoveto}bind def/m{moveto}bind def/l{lineto}bind def/rl{rlineto}bind def/st{stroke}bind def/gs{gsave}bind def/gr{grestore}bind def/cp{currentpoint}bind def/np{newpath}bind def/ct{curveto}bind defsystemdict /setpacking known { /savepacking currentpacking def true setpacking } if/m0{0 0 moveto}bind def/xc{//res div}bind def/yc{//res neg div //y_offset add}bind def/lc{yc X xc X l st}bind def/mc{yc X xc X m}bind def/el{gs /a X def a div 1 X scale cp np a xc 2 div 0 360 arc st gr}bind def/ar{cp 7 2 roll np xc 5 1 roll atan 3 1 roll atan X arc st}bind def/sp{yc X xc X 6 2 roll yc X xc X 6 2 roll yc X xc X 6 2 roll ct}bind def/V{//res neg div //y_offset addcurrentpoint pop Xm}bind def/H{//res div0 transform X round X itransform popcurrentpoint X popmoveto}bind def/h{//res div 0 r}bind def/v{//res neg div 0 X r}bind def/S{X H show}bind def/A{H //res div 1 index stringwidth pop sub 1 index length div 0 3 2 roll ashow}bind def/psize 10 def/height 0 def/cheight { height 0 ne { height } { psize } ifelse } bind def/slant 0 def/FF{findfont X dup 30 div 0 mm pop setlinewidth /psize X def    [psize 0 cheight slant sin slant cos div mul cheight 0 0]    makefont setfont}bind def/shade{gs /dy X def /dx X def np m 0 /dy rl /dx 0 rl 0 /dy neg rl /dx neg 0 rl closepath .9 setgray fillgr}bind def1 setlinecap/resolution res 72 mul def/startFig {	/SavedState save def	userdict maxlength dict begin	currentpoint transform	DocumentInitState setmiterlimit setgray setdash setlinejoin setlinecap		setlinewidth setmatrix	itransform moveto	/ury exch def	/urx exch def	/lly exch def	/llx exch def	/y exch 72 mul resolution div def	/x exch 72 mul resolution div def		currentpoint /cy exch def /cx exch def	/sx x urx llx sub div def	/sy y ury lly sub div def	sx sy scale	cx sx div llx sub	cy sy div ury sub translate		/DefFigCTM matrix currentmatrix def	/initmatrix {		DefFigCTM setmatrix	} def	/defaultmatrix {		DefFigCTM exch copy	} def	/initgraphics {		DocumentInitState setmiterlimit setgray setdash 			setlinejoin setlinecap setlinewidth setmatrix		DefFigCTM setmatrix	} def	/showpage {		initgraphics	} def}bind  def/clipFig {	currentpoint 6 2 roll	newpath 4 copy	4 2 roll moveto	6 -1 roll exch lineto	exch lineto	exch lineto	closepath clip	newpath	moveto}bind  def/doclip { llx lly urx ury clipFig } def/endFig {	end SavedState restore}bind  def/globalstart {	fontnum psize slant height resolution currentpoint 	pagesave restore gsave }bind  def/globalend {	grestore moveto	/resolution exch def /height exch def	/slant exch def /psize exch def /fontnum exch def	F	/pagesave save def}bind  def/fontnum 1 def systemdict /setpacking known { savepacking setpacking} ifend/BP{save mark devps begin m0/DocumentInitState [ matrix currentmatrix currentlinewidth currentlinecapcurrentlinejoin currentdash currentgray currentmiterlimit ] cvx def}bind def/EP{end cleartomark restore showpage}def/R{/Times-Roman FF}def/B{/Times-Bold FF}def/I{/Times-Italic FF}def%%EndProlog%%Page: 1 1BP/slant 0 def/height 0 def480 V10 R720(REF)S913(\()S955(1)S1013(\))S2696(Eighth)S(Edition)296 2989 A4934(REF)S5127(\()S5169(1)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(ref)S1218(-)S1277(Display)S1615(a)S1685(C)S1777(function)S2137(header)S1248 V9 R720(S)S722(SY)S774(YN)S842(NO)S910(OP)S978(PS)S1030(SI)S1082(IS)S1115(S)S1368 V10 B1080(ref)S10 R1242([-t])S1410([-c)S10 I1561(class)S10 R(]...)109 1762 A([-f)102 1909 A10 I2049(\256le)S10 R(]...)109 2172 A10 I2319(tag)S1536 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1656 V10 I1080(ref)S10 R1221(quickly)S1551(locates)S1860(and)S2034(displays)S2392(the)S2544(header)S2842(of)S2955(a)S3029(function.)S3443(To)S3584(do)S3713(this,)S10 I3912(ref)S10 R(looks)217 4053 A4299(in)S4406(the)S4558("tags")S4831(\256le)S4990(for)S5138(the)S1776 V1080(line)S1269(that)S1458(describes)S1871(the)S2032(function,)S2430(and)S2613(then)S2824(scans)S3080(the)S3241(source)S3542(\256le)S3709(for)S3865(the)S4026(function.)S4449(When)S4727(it)S4821(locates)S5138(the)S1896 V1080(function,)S1484(it)S1585(displays)S1959(an)S(introductory)497 2099 A2641(comment)S3060(\(if)S3201(there)S3448(is)S3560(one\),)S3809(the)S3977(function's)S4430(declaration,)S4948(and)S5138(the)S2016 V1080(declarations)S1592(of)S1701(all)S1827(arguments.)S2184 V9 R720(S)S722(SE)S774(EA)S832(AR)S900(RC)S962(CH)S1024(H)S1115(M)S1117(ME)S1199(ET)S1257(TH)S1315(HO)S1383(OD)S1451(D)S2304 V10 I1080(ref)S10 R1219(uses)S1419(a)S1491(fairly)S(sophisticated)525 1737 A2289(tag)S(look-up)312 2439 A2778(algorithm.)S3246(If)S(you)150 3341 A(supply)267 3519 A3814(a)S3887(\256lename)S4262(via)S10 B4413(-f)S10 I4509(\256le)S10 R4632(,)S4685(then)S4886(elvis)S5104(\256rst)S2424 V1080(scans)S1334(the)S1493(tags)S1691(\256le)S1856(for)S2010(a)S2091(static)S2340(tag)S2499(from)S2731(that)S2918(\256le.)S3133(This)S3348(search)S3642(is)S3745(limited)S4066(to)S4180(the)S4339(tags)S4537(\256le)S4702(in)S4816(the)S4975(current)S2544 V1080(directory.)S2712 V1080(If)S(you)150 1177 A(supply)267 1356 A1652(a)S1726(classname)S2169(via)S10 B2321(-c)S10 I2429(class)S10 R2630(,)S2685(then)S2888(elvis)S3108(searches)S3480(for)S3628(a)S3703(tag)S3856(from)S4082(that)S4263(class.)S4539(This)S4748(search)S5036(is)S5133(not)S2832 V1080(limited)S1397(to)S1507(the)S1662(current)S1980(directory;)S2403(You)S2607(can)S(supply)267 2778 A3076(a)S3152(list)S3306(of)S3421(directories)S3878(in)S3987(the)S4141(environment)S4680(variable)S10 I5036(TAG-)S2952 V1080(PATH)S10 R1333(,)S1394(and)S10 I1575(ref)S10 R(will)157 1724 A1918(search)S(through)312 2213 A2562(the)S2722("tags")S3003(\256le)S3169(in)S(each)185 3284 A3506(directory)S(until)184 3907 A4128(it)S4221(\256nds)S4453(a)S4535(tag)S4695(in)S4810(the)S4970(desired)S3072 V1080(class.)S3240 V1080(If)S1175(that)S1353(fails,)S10 I1579(ref)S10 R(will)157 1718 A1902(then)S2102(try)S2241(to)S(look)178 2346 A2551(up)S2678(an)S2800(ordinary)S3168(global)S3447(tag.)S3648(This)S3855(search)S4141(checks)S4443(all)S4572(of)S4684(the)S4835(directories)S3360 V1080(listed)S1323(in)S10 I1426(TAGPATH)S10 R1870(,)S1920(too.)S3528 V1080(If)S(you've)279 1176 A1483(given)S1734(the)S10 B1885(-t)S10 R1981(\257ag,)S2185(then)S10 I2386(ref)S10 R(will)157 2526 A2711(simply)S3012(output)S3296(the)S3447(tag)S3598(line)S3777(that)S3956(it)S(found,)259 4040 A4327(and)S4500(then)S4702(exit.)S(Without)329 4932 A3648 V10 B1080(-t)S10 R1148(,)S(though,)303 1209 A10 I1548(ref)S10 R(will)157 1696 A1889(search)S2183(for)S2336(the)S2494(tag)S2652(line.)S2888(It)S(will)157 2985 A3177(try)S3324(to)S3437(open)S3667(the)S3825(source)S4123(\256le,)S4312(which)S(should)267 4593 A4895(be)S5025(in)S5138(the)S3768 V1080(same)S1327(directory)S1731(as)S1855(the)S2018(tags)S2220(\256le)S2389(where)S2676(the)S2840(tag)S3004(was)S3202(discovered.)S3729(If)S3838(the)S4002(source)S4306(\256le)S4476(doesn't)S4813(exist,)S5069(or)S5194(is)S3888 V1080(unreadable,)S1584(then)S10 I1794(ref)S10 R(will)157 1943 A2137(try)S2286(to)S2401(open)S2633(a)S2715(\256le)S2881(called)S3159(")S10 I3200(refs)S10 R3351(")S3429(in)S3544(that)S3732(directory.)S4182(Either)S4465(way,)S10 I4694(ref)S10 R(will)157 4842 A5035(try)S5183(to)S4008 V1080(locate)S1346(the)S1494(tag,)S1667(and)S1837(display)S2152(whatever)S2547(it)S2628(\256nds.)S4176 V9 R720(I)S722(IN)S755(NT)S823(TE)S881(ER)S939(RA)S1001(AC)S1069(CT)S1131(TI)S1189(IO)S1222(ON)S1290(N)S1381(W)S1383(WI)S1471(IT)S1504(TH)S1562(H)S1653(E)S1655(EL)S1713(LV)S1771(VI)S1839(IS)S1872(S)S4296 V10 I1080(ref)S10 R1227(is)S1330(used)S1550(by)S10 I1686(elvis)S10 R1871(')S1941(shift-K)S2263(command.)S2745(If)S2849(the)S3008(cursor)S3296(is)S3399(located)S3726(on)S3862(a)S3943(word)S4186(such)S4406(as)S4526("splat",)S4859(in)S4973(the)S5132(\256le)S4416 V1080("foo.c",)S1416(then)S10 I1614(elvis)S10 R(will)157 1824 A(invoke)273 2006 A10 I2304(ref)S10 R2441(with)S2645(the)S2793(command)S3214("ref)S3393(-f)S3486(foo.c)S3715(splat".)S4584 V1080(If)S10 I1177(elvis)S10 R1391(has)S1554(been)S1773(compiled)S2176(with)S2384(the)S2536(-DEXTERNAL_TAGS)S3520(\257ag,)S3725(then)S10 I3927(elvis)S10 R(will)157 4141 A4327(use)S10 I4490(ref)S10 R4631(to)S4738(scan)S4946(the)S5099(tags)S4704 V1080(\256les.)S1328(This)S1537(is)S1634(slower)S1933(than)S2136(the)S(built-in)296 2289 A2614(tag)S2766(searching,)S3206(but)S3363(it)S3448(allows)S10 I3740(elvis)S10 R3954(to)S(access)258 4061 A4348(the)S4500(more)S(sophisticated)525 4736 A4824 V1080(tag)S(lookup)278 1228 A1531(provided)S1913(by)S10 I2038(ref)S10 R2150(.)S2225(Other)S2480(than)S2678(that,)S2879(external)S3229(tags)S(should)267 3416 A3708(act)S3851(exactly)S4167(like)S4343(internal)S4676(tags.)S4992 V9 R720(O)S722(OP)S790(PT)S842(TI)S900(IO)S933(ON)S1001(NS)S1069(S)S5112 V10 B1080(-t)S10 R1440(Output)S1744(tag)S1892(info,)S2104(instead)S2414(of)S2523(the)S2671(function)S3031(header.)S5280 V10 B1080(-f)S10 I(file)129 1173 A10 R1440(The)S1633(tag)S1792(might)S2062(be)S2193(a)S2274(static)S2523(function)S2894(in)S10 I3008(\256le)S10 R3131(.)S3217(You)S3426(can)S3603(use)S3774(several)S4097(-f)S4202(\257ags)S4429(to)S4544(have)S10 I4771(ref)S10 R4920(consider)S5400 V1440(static)S1678(tags)S1865(from)S2086(more)S2318(than)S2516(one)S2686(\256le.)S5568 V10 B1080(-c)S10 I1184(class)S10 R1440(The)S1629(tag)S1784(might)S2050(be)S2177(a)S2254(member)S2616(of)S2732(class)S10 I2960(class)S10 R3161(.)S3243(You)S3448(can)S3620(use)S3787(several)S4106(-c)S4218(\257ags)S4441(to)S4552(have)S10 I4775(ref)S10 R4920(consider)S5688 V1440(tags)S1627(from)S1848(more)S2080(than)S2278(one)S2448(class.)S5856 V9 R720(F)S722(FI)S774(IL)S807(LE)S865(ES)S923(S)S5976 V10 B1080(tags)S10 R1440(List)S1622(of)S1731(function)S2091(names)S2373(and)S2543(their)S2753(locations,)S3166(generated)S3583(by)S10 I3708(ctags)S10 R3920(.)S6144 V10 B1080(refs)S10 R1440(Function)S1822(headers)S2155(extracted)S2550(from)S2771(source)S3059(\256les)S3252(\(optional\).)S6312 V9 R720(E)S722(EN)S780(NV)S848(VI)S916(IR)S949(RO)S1011(ON)S1079(NM)S1147(ME)S1229(EN)S1287(NT)S1355(T)S6432 V10 B1080(TAGPATH)S6552 V10 R1440(List)S1627(of)S1741(directories)S2197(to)S2305(be)S2430(searched.)S2863(The)S3050(elements)S3438(in)S3546(the)S3699(list)S3852(are)S4006(separated)S4417(by)S4548(either)S4809(semicolons)S6672 V1440(\(for)S1624(MS-DOS,)S2062(Atari)S2301(TOS,)S2548(and)S2724(AmigaDos\),)S3250(or)S3365(by)S3496(colons)S3789(\(every)S4078(other)S4316(operating)S4727(system\).)S5121(For)S6792 V(each)185 1440 A1650(operating)S2055(system,)S10 I2384(ref)S10 R2521(has)S2680(a)S(built-in)296 2750 A3071(default)S3376(which)S3647(is)S3739(probably)S4121(adequate.)S6960 V9 R720(N)S722(NO)S790(OT)S858(TE)S916(ES)S974(S)S7080 V10 R1080(You)S1292(might)S1565(want)S1800(to)S1917(generate)S2298(a)S2382("tags")S2665(\256le)S2833(the)S2995(directory)S3398(that)S3588(contains)S3962(the)S4124(source)S4426(code)S4655(for)S4813(standard)S5194(C)S7200 V1080(library)S1383(on)S(your)184 1517 A1735(system.)S2098(If)S2200(licensing)S2597(restrictions)S3079(prevent)S(you)150 3415 A3599(from)S3829(making)S4164(the)S4321(library)S4623(source)S4919(readable)S7320 V1080(by)S(everybody,)449 1205 A1679(then)S(you)150 1877 A2052(can)S2217(have)S10 I2432(ctags)S10 R2669(generate)S3036(a)S3106("refs")S3365(\256le,)S3544(and)S3714(make)S3957("refs")S4216(readable)S4583(by)S(everybody.)449 4708 A7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 2 2BP/slant 0 def/height 0 def480 V10 R720(REF)S913(\()S955(1)S1013(\))S2696(Eighth)S(Edition)296 2989 A4934(REF)S5127(\()S5169(1)S5227(\))S960 V1080(If)S(your)184 1185 A1407(system)S1724(doesn't)S2058(come)S2314(with)S2531(the)S2692(library)S2999(source)S3300(code,)S3553(then)S3764(perhaps)S(you)150 4115 A4303(can)S(produce)324 4481 A4843(something)S1080 V1080(workable)S1480(from)S1701(the)S10 I1849(lint)S10 R2008(libraries.)S1248 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S1368 V10 R1080(elvis\(1\),)S1438(ctags\(1\))S1536 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S1656 V10 R1080(Steve)S1329(Kirkendall)S1776 V(kirkenda@cs.pdx.edu)874 1080 A7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(2)S8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 2

⌨️ 快捷键说明

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