home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| DOOM Save Game (other/doomSaveGame)
| magic
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| default
| |
100%
| TrID
| Doom SaveGame
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/rfc822
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 30 36 69 31 30 |Subject:| v06i10|
|00000010| 33 3a 20 20 4e 65 77 20 | 76 65 72 73 69 6f 6e 20 |3: New |version |
|00000020| 6f 66 20 6c 65 73 73 20 | 28 6c 65 73 73 32 29 2c |of less |(less2),|
|00000030| 20 50 61 72 74 30 32 2f | 30 32 0a 4e 65 77 73 67 | Part02/|02.Newsg|
|00000040| 72 6f 75 70 73 3a 20 6d | 6f 64 2e 73 6f 75 72 63 |roups: m|od.sourc|
|00000050| 65 73 0a 41 70 70 72 6f | 76 65 64 3a 20 72 73 40 |es.Appro|ved: rs@|
|00000060| 6d 69 72 72 6f 72 2e 55 | 55 43 50 0a 0a 53 75 62 |mirror.U|UCP..Sub|
|00000070| 6d 69 74 74 65 64 20 62 | 79 3a 20 73 65 69 73 6d |mitted b|y: seism|
|00000080| 6f 21 6c 6c 6c 2d 63 72 | 67 21 63 73 75 73 74 61 |o!lll-cr|g!csusta|
|00000090| 6e 21 63 61 73 65 79 0a | 4d 6f 64 2e 73 6f 75 72 |n!casey.|Mod.sour|
|000000a0| 63 65 73 3a 20 56 6f 6c | 75 6d 65 20 36 2c 20 49 |ces: Vol|ume 6, I|
|000000b0| 73 73 75 65 20 31 30 33 | 0a 41 72 63 68 69 76 65 |ssue 103|.Archive|
|000000c0| 2d 6e 61 6d 65 3a 20 6c | 65 73 73 32 2f 50 61 72 |-name: l|ess2/Par|
|000000d0| 74 30 32 0a 0a 23 21 20 | 2f 62 69 6e 2f 73 68 0a |t02..#! |/bin/sh.|
|000000e0| 23 20 54 68 69 73 20 69 | 73 20 61 20 73 68 65 6c |# This i|s a shel|
|000000f0| 6c 20 61 72 63 68 69 76 | 65 2c 20 6d 65 61 6e 69 |l archiv|e, meani|
|00000100| 6e 67 3a 0a 23 20 31 2e | 20 52 65 6d 6f 76 65 20 |ng:.# 1.| Remove |
|00000110| 65 76 65 72 79 74 68 69 | 6e 67 20 61 62 6f 76 65 |everythi|ng above|
|00000120| 20 74 68 65 20 23 21 20 | 2f 62 69 6e 2f 73 68 20 | the #! |/bin/sh |
|00000130| 6c 69 6e 65 2e 0a 23 20 | 32 2e 20 53 61 76 65 20 |line..# |2. Save |
|00000140| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 74 65 |the resu|lting te|
|00000150| 78 74 20 69 6e 20 61 20 | 66 69 6c 65 2e 0a 23 20 |xt in a |file..# |
|00000160| 33 2e 20 45 78 65 63 75 | 74 65 20 74 68 65 20 66 |3. Execu|te the f|
|00000170| 69 6c 65 20 77 69 74 68 | 20 2f 62 69 6e 2f 73 68 |ile with| /bin/sh|
|00000180| 20 28 6e 6f 74 20 63 73 | 68 29 20 74 6f 20 63 72 | (not cs|h) to cr|
|00000190| 65 61 74 65 3a 0a 23 09 | 6d 61 6b 65 66 69 6c 65 |eate:.#.|makefile|
|000001a0| 2e 73 79 73 35 0a 23 09 | 6d 61 6b 65 66 69 6c 65 |.sys5.#.|makefile|
|000001b0| 2e 78 65 6e 0a 23 09 6d | 6b 66 75 6e 63 73 2e 61 |.xen.#.m|kfuncs.a|
|000001c0| 77 6b 0a 23 09 6e 31 30 | 2d 64 69 66 66 0a 23 09 |wk.#.n10|-diff.#.|
|000001d0| 6f 70 74 69 6f 6e 2e 63 | 0a 23 09 6f 75 74 70 75 |option.c|.#.outpu|
|000001e0| 74 2e 63 0a 23 09 70 61 | 67 65 72 5f 70 61 74 63 |t.c.#.pa|ger_patc|
|000001f0| 68 2e 63 0a 23 09 70 6f | 73 69 74 69 6f 6e 2e 63 |h.c.#.po|sition.c|
|00000200| 0a 23 09 70 6f 73 69 74 | 69 6f 6e 2e 68 0a 23 09 |.#.posit|ion.h.#.|
|00000210| 70 72 69 6d 2e 63 0a 23 | 09 70 72 6f 6d 70 74 2e |prim.c.#|.prompt.|
|00000220| 63 0a 23 09 73 63 72 65 | 65 6e 2e 63 0a 23 09 73 |c.#.scre|en.c.#.s|
|00000230| 69 67 6e 61 6c 2e 63 0a | 23 09 74 74 79 69 6e 2e |ignal.c.|#.ttyin.|
|00000240| 63 0a 23 09 76 65 72 73 | 69 6f 6e 2e 63 0a 65 78 |c.#.vers|ion.c.ex|
|00000250| 70 6f 72 74 20 50 41 54 | 48 3b 20 50 41 54 48 3d |port PAT|H; PATH=|
|00000260| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 24 50 |/bin:/us|r/bin:$P|
|00000270| 41 54 48 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |ATH.if t|est -f '|
|00000280| 6d 61 6b 65 66 69 6c 65 | 2e 73 79 73 35 27 0a 74 |makefile|.sys5'.t|
|00000290| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|000002a0| 22 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 |"will no|t over-w|
|000002b0| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|000002c0| 6c 65 20 27 6d 61 6b 65 | 66 69 6c 65 2e 73 79 73 |le 'make|file.sys|
|000002d0| 35 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |5'".else|.cat << |
|000002e0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6d 61 6b |\SHAR_EO|F > 'mak|
|000002f0| 65 66 69 6c 65 2e 73 79 | 73 35 27 0a 23 20 4d 61 |efile.sy|s5'.# Ma|
|00000300| 6b 65 66 69 6c 65 20 66 | 6f 72 20 22 6c 65 73 73 |kefile f|or "less|
|00000310| 22 0a 23 0a 23 20 49 6e | 76 6f 6b 65 64 20 61 73 |".#.# In|voked as|
|00000320| 3a 0a 23 09 6d 61 6b 65 | 20 61 6c 6c 0a 23 20 20 |:.#.make| all.# |
|00000330| 20 6f 72 09 6d 61 6b 65 | 20 69 6e 73 74 61 6c 6c | or.make| install|
|00000340| 0a 23 20 50 6c 61 69 6e | 20 22 6d 61 6b 65 22 20 |.# Plain| "make" |
|00000350| 69 73 20 65 71 75 69 76 | 61 6c 65 6e 74 20 74 6f |is equiv|alent to|
|00000360| 20 22 6d 61 6b 65 20 61 | 6c 6c 22 2e 0a 23 0a 23 | "make a|ll"..#.#|
|00000370| 20 49 66 20 79 6f 75 20 | 61 64 64 20 6f 72 20 64 | If you |add or d|
|00000380| 65 6c 65 74 65 20 66 75 | 6e 63 74 69 6f 6e 73 2c |elete fu|nctions,|
|00000390| 20 72 65 6d 61 6b 65 20 | 66 75 6e 63 73 2e 68 20 | remake |funcs.h |
|000003a0| 62 79 20 64 6f 69 6e 67 | 3a 0a 23 09 6d 61 6b 65 |by doing|:.#.make|
|000003b0| 20 6e 65 77 66 75 6e 63 | 73 0a 23 20 54 68 69 73 | newfunc|s.# This|
|000003c0| 20 64 65 70 65 6e 64 73 | 20 6f 6e 20 74 68 65 20 | depends| on the |
|000003d0| 63 6f 64 69 6e 67 20 63 | 6f 6e 76 65 6e 74 69 6f |coding c|onventio|
|000003e0| 6e 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 20 68 65 |n of fun|ction he|
|000003f0| 61 64 65 72 73 20 6c 6f | 6f 6b 69 6e 67 20 6c 69 |aders lo|oking li|
|00000400| 6b 65 3a 0a 23 09 22 20 | 5c 74 20 70 75 62 6c 69 |ke:.#." |\t publi|
|00000410| 63 20 3c 66 75 6e 63 74 | 69 6f 6e 2d 74 79 70 65 |c <funct|ion-type|
|00000420| 3e 20 5c 6e 20 3c 66 75 | 6e 63 74 69 6f 6e 2d 6e |> \n <fu|nction-n|
|00000430| 61 6d 65 3e 20 28 20 2e | 2e 2e 20 29 20 22 0a 23 |ame> ( .|.. ) ".#|
|00000440| 0a 23 20 41 6c 73 6f 20 | 70 72 6f 76 69 64 65 64 |.# Also |provided|
|00000450| 3a 0a 23 09 6d 61 6b 65 | 20 6c 69 6e 74 09 23 20 |:.#.make| lint.# |
|00000460| 52 75 6e 73 20 22 6c 69 | 6e 74 22 20 6f 6e 20 61 |Runs "li|nt" on a|
|00000470| 6c 6c 20 74 68 65 20 73 | 6f 75 72 63 65 73 2e 0a |ll the s|ources..|
|00000480| 23 09 6d 61 6b 65 20 63 | 6c 65 61 6e 09 23 20 52 |#.make c|lean.# R|
|00000490| 65 6d 6f 76 65 73 20 22 | 6c 65 73 73 22 20 61 6e |emoves "|less" an|
|000004a0| 64 20 74 68 65 20 2e 6f | 20 66 69 6c 65 73 2e 0a |d the .o| files..|
|000004b0| 23 09 6d 61 6b 65 20 63 | 6c 6f 62 62 65 72 09 23 |#.make c|lobber.#|
|000004c0| 20 50 72 65 74 74 79 20 | 6d 75 63 68 20 74 68 65 | Pretty |much the|
|000004d0| 20 73 61 6d 65 20 61 73 | 20 6d 61 6b 65 20 22 63 | same as| make "c|
|000004e0| 6c 65 61 6e 22 2e 0a 23 | 0a 23 09 6d 61 6b 65 20 |lean"..#|.#.make |
|000004f0| 70 61 67 65 72 5f 70 61 | 74 63 68 09 09 23 20 6d |pager_pa|tch..# m|
|00000500| 61 6b 65 73 20 50 41 47 | 45 52 20 65 6e 76 69 72 |akes PAG|ER envir|
|00000510| 6f 6e 6d 65 6e 74 20 76 | 61 72 69 61 62 6c 65 0a |onment v|ariable.|
|00000520| 23 09 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 5f 70 |#.make i|nstall_p|
|00000530| 61 67 65 72 5f 70 61 74 | 63 68 09 23 20 63 61 74 |ager_pat|ch.# cat|
|00000540| 63 68 65 72 20 61 6e 64 | 20 69 6e 73 74 61 6c 6c |cher and| install|
|00000550| 73 20 69 74 20 28 73 65 | 65 20 62 65 6c 6f 77 29 |s it (se|e below)|
|00000560| 0a 0a 0a 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |...#####|########|
|00000570| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000580| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000590| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 0a 23 20 |########|#####.# |
|000005b0| 53 79 73 74 65 6d 2d 73 | 70 65 63 69 66 69 63 20 |System-s|pecific |
|000005c0| 70 61 72 61 6d 65 74 65 | 72 73 0a 23 23 23 23 23 |paramete|rs.#####|
|000005d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000005f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000600| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000610| 23 23 23 23 23 0a 0a 23 | 20 44 65 66 69 6e 65 20 |#####..#| Define |
|00000620| 58 45 4e 49 58 20 69 66 | 20 72 75 6e 6e 69 6e 67 |XENIX if| running|
|00000630| 20 75 6e 64 65 72 20 58 | 45 4e 49 58 20 33 2e 30 | under X|ENIX 3.0|
|00000640| 0a 58 45 4e 49 58 20 3d | 20 30 0a 0a 23 20 56 4f |.XENIX =| 0..# VO|
|00000650| 49 44 20 69 73 20 31 20 | 69 66 20 79 6f 75 72 20 |ID is 1 |if your |
|00000660| 43 20 63 6f 6d 70 69 6c | 65 72 20 73 75 70 70 6f |C compil|er suppo|
|00000670| 72 74 73 20 74 68 65 20 | 22 76 6f 69 64 22 20 74 |rts the |"void" t|
|00000680| 79 70 65 2c 0a 23 20 30 | 20 69 66 20 69 74 20 64 |ype,.# 0| if it d|
|00000690| 6f 65 73 20 6e 6f 74 2e | 0a 56 4f 49 44 20 3d 20 |oes not.|.VOID = |
|000006a0| 31 0a 0a 23 20 6f 66 66 | 5f 74 20 69 73 20 74 68 |1..# off|_t is th|
|000006b0| 65 20 74 79 70 65 20 77 | 68 69 63 68 20 6c 73 65 |e type w|hich lse|
|000006c0| 65 6b 28 29 20 72 65 74 | 75 72 6e 73 2e 0a 23 20 |ek() ret|urns..# |
|000006d0| 49 74 20 69 73 20 61 6c | 73 6f 20 74 68 65 20 74 |It is al|so the t|
|000006e0| 79 70 65 20 6f 66 20 6c | 73 65 65 6b 28 29 27 73 |ype of l|seek()'s|
|000006f0| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00000700| 2e 0a 6f 66 66 5f 74 20 | 3d 20 6c 6f 6e 67 0a 0a |..off_t |= long..|
|00000710| 23 20 54 45 52 4d 49 4f | 20 69 73 20 31 20 69 66 |# TERMIO| is 1 if|
|00000720| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 20 68 61 73 | your sy|stem has|
|00000730| 20 2f 75 73 72 2f 69 6e | 63 6c 75 64 65 2f 74 65 | /usr/in|clude/te|
|00000740| 72 6d 69 6f 2e 68 2e 0a | 23 20 54 68 69 73 20 69 |rmio.h..|# This i|
|00000750| 73 20 6e 6f 72 6d 61 6c | 6c 79 20 74 68 65 20 63 |s normal|ly the c|
|00000760| 61 73 65 20 66 6f 72 20 | 53 79 73 74 65 6d 20 35 |ase for |System 5|
|00000770| 2e 0a 23 20 49 66 20 54 | 45 52 4d 49 4f 20 69 73 |..# If T|ERMIO is|
|00000780| 20 30 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 6d | 0 your |system m|
|00000790| 75 73 74 20 68 61 76 65 | 20 2f 75 73 72 2f 69 6e |ust have| /usr/in|
|000007a0| 63 6c 75 64 65 2f 73 67 | 74 74 79 2e 68 2e 0a 23 |clude/sg|tty.h..#|
|000007b0| 20 54 68 69 73 20 69 73 | 20 6e 6f 72 6d 61 6c 6c | This is| normall|
|000007c0| 79 20 74 68 65 20 63 61 | 73 65 20 66 6f 72 20 42 |y the ca|se for B|
|000007d0| 53 44 2e 0a 54 45 52 4d | 49 4f 20 3d 20 31 0a 0a |SD..TERM|IO = 1..|
|000007e0| 23 20 53 49 47 53 45 54 | 4d 41 53 4b 20 69 73 20 |# SIGSET|MASK is |
|000007f0| 31 20 69 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |1 if you|r system|
|00000800| 20 68 61 73 20 74 68 65 | 20 73 69 67 73 65 74 6d | has the| sigsetm|
|00000810| 61 73 6b 28 29 20 63 61 | 6c 6c 2e 0a 23 20 54 68 |ask() ca|ll..# Th|
|00000820| 69 73 20 69 73 20 6e 6f | 72 6d 61 6c 6c 79 20 74 |is is no|rmally t|
|00000830| 68 65 20 63 61 73 65 20 | 6f 6e 6c 79 20 66 6f 72 |he case |only for|
|00000840| 20 42 53 44 20 34 2e 32 | 2c 0a 23 20 6e 6f 74 20 | BSD 4.2|,.# not |
|00000850| 66 6f 72 20 42 53 44 20 | 34 2e 31 20 6f 72 20 53 |for BSD |4.1 or S|
|00000860| 79 73 74 65 6d 20 35 2e | 0a 53 49 47 53 45 54 4d |ystem 5.|.SIGSETM|
|00000870| 41 53 4b 20 3d 20 30 0a | 0a 0a 23 23 23 23 23 23 |ASK = 0.|..######|
|00000880| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000890| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000008c0| 23 23 23 23 0a 23 20 4f | 70 74 69 6f 6e 61 6c 20 |####.# O|ptional |
|000008d0| 61 6e 64 20 73 65 6d 69 | 2d 6f 70 74 69 6f 6e 61 |and semi|-optiona|
|000008e0| 6c 20 66 65 61 74 75 72 | 65 73 0a 23 23 23 23 23 |l featur|es.#####|
|000008f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000900| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000910| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000920| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000930| 23 23 23 23 23 0a 0a 23 | 20 52 45 47 43 4d 50 20 |#####..#| REGCMP |
|00000940| 69 73 20 31 20 69 66 20 | 79 6f 75 72 20 73 79 73 |is 1 if |your sys|
|00000950| 74 65 6d 20 68 61 73 20 | 74 68 65 20 72 65 67 63 |tem has |the regc|
|00000960| 6d 70 28 29 20 66 75 6e | 63 74 69 6f 6e 2e 0a 23 |mp() fun|ction..#|
|00000970| 20 54 68 69 73 20 69 73 | 20 6e 6f 72 6d 61 6c 6c | This is| normall|
|00000980| 79 20 74 68 65 20 63 61 | 73 65 20 66 6f 72 20 53 |y the ca|se for S|
|00000990| 79 73 74 65 6d 20 35 2e | 0a 23 20 52 45 43 4f 4d |ystem 5.|.# RECOM|
|000009a0| 50 20 69 73 20 31 20 69 | 66 20 79 6f 75 72 20 73 |P is 1 i|f your s|
|000009b0| 79 73 74 65 6d 20 68 61 | 73 20 74 68 65 20 72 65 |ystem ha|s the re|
|000009c0| 5f 63 6f 6d 70 28 29 20 | 66 75 6e 63 74 69 6f 6e |_comp() |function|
|000009d0| 2e 0a 23 20 54 68 69 73 | 20 69 73 20 6e 6f 72 6d |..# This| is norm|
|000009e0| 61 6c 6c 79 20 74 68 65 | 20 63 61 73 65 20 66 6f |ally the| case fo|
|000009f0| 72 20 42 53 44 2e 0a 23 | 20 49 66 20 6e 65 69 74 |r BSD..#| If neit|
|00000a00| 68 65 72 20 69 73 20 31 | 2c 20 70 61 74 74 65 72 |her is 1|, patter|
|00000a10| 6e 20 6d 61 74 63 68 69 | 6e 67 20 69 73 20 73 75 |n matchi|ng is su|
|00000a20| 70 70 6f 72 74 65 64 2c | 20 62 75 74 20 77 69 74 |pported,| but wit|
|00000a30| 68 6f 75 74 20 6d 65 74 | 61 63 68 61 72 61 63 74 |hout met|acharact|
|00000a40| 65 72 73 2e 0a 52 45 47 | 43 4d 50 20 3d 20 31 0a |ers..REG|CMP = 1.|
|00000a50| 52 45 43 4f 4d 50 20 3d | 20 30 0a 0a 23 20 53 48 |RECOMP =| 0..# SH|
|00000a60| 45 4c 4c 5f 45 53 43 41 | 50 45 20 69 73 20 31 20 |ELL_ESCA|PE is 1 |
|00000a70| 69 66 20 79 6f 75 20 77 | 69 73 68 20 74 6f 20 61 |if you w|ish to a|
|00000a80| 6c 6c 6f 77 20 73 68 65 | 6c 6c 20 65 73 63 61 70 |llow she|ll escap|
|00000a90| 65 73 2e 0a 23 20 28 54 | 68 69 73 20 69 73 20 70 |es..# (T|his is p|
|00000aa0| 6f 73 73 69 62 6c 65 20 | 6f 6e 6c 79 20 69 66 20 |ossible |only if |
|00000ab0| 79 6f 75 72 20 73 79 73 | 74 65 6d 20 73 75 70 70 |your sys|tem supp|
|00000ac0| 6c 69 65 73 20 74 68 65 | 20 73 79 73 74 65 6d 28 |lies the| system(|
|00000ad0| 29 20 66 75 6e 63 74 69 | 6f 6e 2e 29 0a 53 48 45 |) functi|on.).SHE|
|00000ae0| 4c 4c 5f 45 53 43 41 50 | 45 20 3d 20 30 0a 0a 23 |LL_ESCAP|E = 0..#|
|00000af0| 20 45 44 49 54 4f 52 20 | 69 73 20 31 20 69 66 20 | EDITOR |is 1 if |
|00000b00| 79 6f 75 20 77 69 73 68 | 20 74 6f 20 61 6c 6c 6f |you wish| to allo|
|00000b10| 77 20 65 64 69 74 6f 72 | 20 69 6e 76 6f 63 61 74 |w editor| invocat|
|00000b20| 69 6f 6e 20 28 74 68 65 | 20 22 76 22 20 63 6f 6d |ion (the| "v" com|
|00000b30| 6d 61 6e 64 29 2e 0a 23 | 20 28 54 68 69 73 20 69 |mand)..#| (This i|
|00000b40| 73 20 70 6f 73 73 69 62 | 6c 65 20 6f 6e 6c 79 20 |s possib|le only |
|00000b50| 69 66 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 73 |if your |system s|
|00000b60| 75 70 70 6c 69 65 73 20 | 74 68 65 20 73 79 73 74 |upplies |the syst|
|00000b70| 65 6d 28 29 20 66 75 6e | 63 74 69 6f 6e 2e 29 0a |em() fun|ction.).|
|00000b80| 23 20 45 44 49 54 5f 50 | 47 4d 20 69 73 20 74 68 |# EDIT_P|GM is th|
|00000b90| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 28 64 |e name o|f the (d|
|00000ba0| 65 66 61 75 6c 74 29 20 | 65 64 69 74 6f 72 20 74 |efault) |editor t|
|00000bb0| 6f 20 62 65 20 69 6e 76 | 6f 6b 65 64 2e 0a 45 44 |o be inv|oked..ED|
|00000bc0| 49 54 4f 52 20 3d 20 30 | 0a 45 44 49 54 5f 50 47 |ITOR = 0|.EDIT_PG|
|00000bd0| 4d 20 3d 20 2f 75 73 72 | 2f 75 63 62 2f 76 69 0a |M = /usr|/ucb/vi.|
|00000be0| 0a 23 20 70 61 72 61 6d | 65 74 65 72 73 20 74 6f |.# param|eters to|
|00000bf0| 20 22 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 5f 70 | "make i|nstall_p|
|00000c00| 61 67 65 72 5f 70 61 74 | 63 68 22 2e 20 20 4f 4c |ager_pat|ch". OL|
|00000c10| 44 5f 50 41 47 45 52 20 | 77 69 6c 6c 20 62 65 20 |D_PAGER |will be |
|00000c20| 6d 6f 76 65 64 20 74 6f | 0a 23 20 4f 4c 44 5f 50 |moved to|.# OLD_P|
|00000c30| 41 47 45 52 5f 4e 45 57 | 5f 4c 4f 43 41 54 49 4f |AGER_NEW|_LOCATIO|
|00000c40| 4e 20 61 6e 64 20 70 61 | 67 65 72 5f 70 61 74 63 |N and pa|ger_patc|
|00000c50| 68 20 28 69 6e 20 74 68 | 69 73 20 64 69 72 65 63 |h (in th|is direc|
|00000c60| 74 6f 72 79 29 20 77 69 | 6c 6c 20 62 65 20 69 6e |tory) wi|ll be in|
|00000c70| 73 74 61 6c 6c 65 64 0a | 23 20 61 73 20 4f 4c 44 |stalled.|# as OLD|
|00000c80| 5f 50 41 47 45 52 2e 20 | 20 54 68 69 73 20 70 61 |_PAGER. | This pa|
|00000c90| 74 63 68 20 77 69 6c 6c | 20 61 6c 6c 6f 77 20 79 |tch will| allow y|
|00000ca0| 6f 75 20 74 6f 20 73 65 | 74 20 74 68 65 20 65 6e |ou to se|t the en|
|00000cb0| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|00000cc0| 6c 65 0a 23 20 50 41 47 | 45 52 20 74 6f 20 73 70 |le.# PAG|ER to sp|
|00000cd0| 65 63 69 66 79 20 79 6f | 75 72 20 70 65 72 73 6f |ecify yo|ur perso|
|00000ce0| 6e 61 6c 20 70 61 67 65 | 72 20 70 72 65 66 65 72 |nal page|r prefer|
|00000cf0| 65 6e 63 65 20 28 69 73 | 20 74 68 69 73 20 61 20 |ence (is| this a |
|00000d00| 73 65 63 75 72 69 74 79 | 20 68 6f 6c 65 3f 29 0a |security| hole?).|
|00000d10| 4f 4c 44 5f 50 41 47 45 | 52 20 3d 20 2f 75 73 72 |OLD_PAGE|R = /usr|
|00000d20| 2f 75 63 62 2f 6d 6f 72 | 65 0a 4f 4c 44 5f 50 41 |/ucb/mor|e.OLD_PA|
|00000d30| 47 45 52 5f 4e 45 57 5f | 4c 4f 43 41 54 49 4f 4e |GER_NEW_|LOCATION|
|00000d40| 20 3d 20 2f 75 73 72 2f | 75 63 62 2f 4d 6f 72 65 | = /usr/|ucb/More|
|00000d50| 0a 0a 23 20 4f 4e 4c 59 | 5f 52 45 54 55 52 4e 20 |..# ONLY|_RETURN |
|00000d60| 69 73 20 31 20 69 66 20 | 79 6f 75 20 77 61 6e 74 |is 1 if |you want|
|00000d70| 20 52 45 54 55 52 4e 20 | 74 6f 20 62 65 20 74 68 | RETURN |to be th|
|00000d80| 65 20 6f 6e 6c 79 20 69 | 6e 70 75 74 20 77 68 69 |e only i|nput whi|
|00000d90| 63 68 0a 23 20 77 69 6c | 6c 20 63 6f 6e 74 69 6e |ch.# wil|l contin|
|00000da0| 75 65 20 70 61 73 74 20 | 61 6e 20 65 72 72 6f 72 |ue past |an error|
|00000db0| 20 6d 65 73 73 61 67 65 | 2e 0a 23 20 4f 74 68 65 | message|..# Othe|
|00000dc0| 72 77 69 73 65 2c 20 61 | 6e 79 20 6b 65 79 20 77 |rwise, a|ny key w|
|00000dd0| 69 6c 6c 20 63 6f 6e 74 | 69 6e 75 65 20 70 61 73 |ill cont|inue pas|
|00000de0| 74 20 61 6e 20 65 72 72 | 6f 72 20 6d 65 73 73 61 |t an err|or messa|
|00000df0| 67 65 2e 0a 4f 4e 4c 59 | 5f 52 45 54 55 52 4e 20 |ge..ONLY|_RETURN |
|00000e00| 3d 20 30 0a 0a 0a 23 23 | 23 23 23 23 23 23 23 23 |= 0...##|########|
|00000e10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e50| 0a 23 20 43 6f 6d 70 69 | 6c 61 74 69 6f 6e 20 65 |.# Compi|lation e|
|00000e60| 6e 76 69 72 6f 6e 6d 65 | 6e 74 2e 0a 23 23 23 23 |nvironme|nt..####|
|00000e70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000e90| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ea0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000eb0| 23 23 23 23 23 23 0a 0a | 23 20 4c 49 42 53 20 69 |######..|# LIBS i|
|00000ec0| 73 20 74 68 65 20 6c 69 | 73 74 20 6f 66 20 6c 69 |s the li|st of li|
|00000ed0| 62 72 61 72 69 65 73 20 | 6e 65 65 64 65 64 2e 0a |braries |needed..|
|00000ee0| 4c 49 42 53 20 3d 20 2d | 6c 63 75 72 73 65 73 20 |LIBS = -|lcurses |
|00000ef0| 2d 6c 50 57 0a 0a 23 20 | 49 4e 53 54 41 4c 4c 5f |-lPW..# |INSTALL_|
|00000f00| 4c 45 53 53 20 69 73 20 | 61 20 6c 69 73 74 20 6f |LESS is |a list o|
|00000f10| 66 20 74 68 65 20 70 75 | 62 6c 69 63 20 76 65 72 |f the pu|blic ver|
|00000f20| 73 69 6f 6e 73 20 6f 66 | 20 6c 65 73 73 2e 0a 23 |sions of| less..#|
|00000f30| 20 49 4e 53 54 41 4c 4c | 5f 4d 41 4e 20 69 73 20 | INSTALL|_MAN is |
|00000f40| 61 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 70 75 |a list o|f the pu|
|00000f50| 62 6c 69 63 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |blic ver|sions of|
|00000f60| 20 74 68 65 20 6d 61 6e | 75 61 6c 20 70 61 67 65 | the man|ual page|
|00000f70| 2e 0a 49 4e 53 54 41 4c | 4c 5f 4c 45 53 53 20 3d |..INSTAL|L_LESS =|
|00000f80| 09 2f 75 73 72 2f 6c 62 | 69 6e 2f 6c 65 73 73 0a |./usr/lb|in/less.|
|00000f90| 49 4e 53 54 41 4c 4c 5f | 4d 41 4e 20 3d 09 2f 75 |INSTALL_|MAN =./u|
|00000fa0| 73 72 2f 6d 61 6e 2f 6d | 61 6e 6c 2f 6c 65 73 73 |sr/man/m|anl/less|
|00000fb0| 2e 6c 0a 0a 23 20 4f 50 | 54 49 4d 20 69 73 20 70 |.l..# OP|TIM is p|
|00000fc0| 61 73 73 65 64 20 74 6f | 20 74 68 65 20 63 6f 6d |assed to| the com|
|00000fd0| 70 69 6c 65 72 20 61 6e | 64 20 74 68 65 20 6c 6f |piler an|d the lo|
|00000fe0| 61 64 65 72 2e 0a 23 20 | 49 74 20 69 73 20 6e 6f |ader..# |It is no|
|00000ff0| 72 6d 61 6c 6c 79 20 22 | 2d 4f 22 20 62 75 74 20 |rmally "|-O" but |
|00001000| 6d 61 79 20 62 65 2c 20 | 66 6f 72 20 65 78 61 6d |may be, |for exam|
|00001010| 70 6c 65 2c 20 22 2d 67 | 22 2e 0a 4f 50 54 49 4d |ple, "-g|"..OPTIM|
|00001020| 20 3d 20 2d 4f 0a 0a 0a | 23 23 23 23 23 23 23 23 | = -O...|########|
|00001030| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001040| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001050| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001060| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001070| 23 23 0a 23 20 46 69 6c | 65 73 0a 23 23 23 23 23 |##.# Fil|es.#####|
|00001080| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001090| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000010a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000010b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000010c0| 23 23 23 23 23 0a 0a 53 | 52 43 31 20 3d 09 6d 61 |#####..S|RC1 =.ma|
|000010d0| 69 6e 2e 63 20 6f 70 74 | 69 6f 6e 2e 63 20 70 72 |in.c opt|ion.c pr|
|000010e0| 69 6d 2e 63 20 0a 53 52 | 43 32 20 3d 09 63 68 2e |im.c .SR|C2 =.ch.|
|000010f0| 63 20 70 6f 73 69 74 69 | 6f 6e 2e 63 20 69 6e 70 |c positi|on.c inp|
|00001100| 75 74 2e 63 20 6f 75 74 | 70 75 74 2e 63 20 73 63 |ut.c out|put.c sc|
|00001110| 72 65 65 6e 2e 63 20 5c | 0a 09 70 72 6f 6d 70 74 |reen.c \|..prompt|
|00001120| 2e 63 20 6c 69 6e 65 2e | 63 20 73 69 67 6e 61 6c |.c line.|c signal|
|00001130| 2e 63 20 68 65 6c 70 2e | 63 20 74 74 79 69 6e 2e |.c help.|c ttyin.|
|00001140| 63 20 63 6f 6d 6d 61 6e | 64 2e 63 20 76 65 72 73 |c comman|d.c vers|
|00001150| 69 6f 6e 2e 63 0a 53 52 | 43 20 3d 09 24 28 53 52 |ion.c.SR|C =.$(SR|
|00001160| 43 31 29 20 24 28 53 52 | 43 32 29 0a 4f 42 4a 20 |C1) $(SR|C2).OBJ |
|00001170| 3d 09 6d 61 69 6e 2e 6f | 20 6f 70 74 69 6f 6e 2e |=.main.o| option.|
|00001180| 6f 20 70 72 69 6d 2e 6f | 20 63 68 2e 6f 20 70 6f |o prim.o| ch.o po|
|00001190| 73 69 74 69 6f 6e 2e 6f | 20 69 6e 70 75 74 2e 6f |sition.o| input.o|
|000011a0| 20 6f 75 74 70 75 74 2e | 6f 20 73 63 72 65 65 6e | output.|o screen|
|000011b0| 2e 6f 20 5c 0a 09 70 72 | 6f 6d 70 74 2e 6f 20 6c |.o \..pr|ompt.o l|
|000011c0| 69 6e 65 2e 6f 20 73 69 | 67 6e 61 6c 2e 6f 20 68 |ine.o si|gnal.o h|
|000011d0| 65 6c 70 2e 6f 20 74 74 | 79 69 6e 2e 6f 20 63 6f |elp.o tt|yin.o co|
|000011e0| 6d 6d 61 6e 64 2e 6f 20 | 76 65 72 73 69 6f 6e 2e |mmand.o |version.|
|000011f0| 6f 0a 0a 0a 23 23 23 23 | 23 23 23 23 23 23 23 23 |o...####|########|
|00001200| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001210| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001220| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001230| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 0a 23 |########|######.#|
|00001240| 20 52 75 6c 65 73 0a 23 | 23 23 23 23 23 23 23 23 | Rules.#|########|
|00001250| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001260| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001270| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001280| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001290| 23 0a 0a 44 45 46 53 20 | 3d 09 22 2d 44 54 45 52 |#..DEFS |=."-DTER|
|000012a0| 4d 49 4f 3d 24 28 54 45 | 52 4d 49 4f 29 22 20 5c |MIO=$(TE|RMIO)" \|
|000012b0| 0a 09 22 2d 44 53 49 47 | 53 45 54 4d 41 53 4b 3d |.."-DSIG|SETMASK=|
|000012c0| 24 28 53 49 47 53 45 54 | 4d 41 53 4b 29 22 20 5c |$(SIGSET|MASK)" \|
|000012d0| 0a 09 22 2d 44 6f 66 66 | 5f 74 3d 24 28 6f 66 66 |.."-Doff|_t=$(off|
|000012e0| 5f 74 29 22 20 22 2d 44 | 56 4f 49 44 3d 24 28 56 |_t)" "-D|VOID=$(V|
|000012f0| 4f 49 44 29 22 20 5c 0a | 09 22 2d 44 52 45 47 43 |OID)" \.|."-DREGC|
|00001300| 4d 50 3d 24 28 52 45 47 | 43 4d 50 29 22 20 22 2d |MP=$(REG|CMP)" "-|
|00001310| 44 52 45 43 4f 4d 50 3d | 24 28 52 45 43 4f 4d 50 |DRECOMP=|$(RECOMP|
|00001320| 29 22 20 5c 0a 09 22 2d | 44 53 48 45 4c 4c 5f 45 |)" \.."-|DSHELL_E|
|00001330| 53 43 41 50 45 3d 24 28 | 53 48 45 4c 4c 5f 45 53 |SCAPE=$(|SHELL_ES|
|00001340| 43 41 50 45 29 22 20 5c | 0a 09 22 2d 44 45 44 49 |CAPE)" \|.."-DEDI|
|00001350| 54 4f 52 3d 24 28 45 44 | 49 54 4f 52 29 22 20 22 |TOR=$(ED|ITOR)" "|
|00001360| 2d 44 45 44 49 54 5f 50 | 47 4d 3d 5c 22 24 28 45 |-DEDIT_P|GM=\"$(E|
|00001370| 44 49 54 5f 50 47 4d 29 | 5c 22 22 20 5c 0a 09 22 |DIT_PGM)|\"" \.."|
|00001380| 2d 44 4f 4e 4c 59 5f 52 | 45 54 55 52 4e 3d 24 28 |-DONLY_R|ETURN=$(|
|00001390| 4f 4e 4c 59 5f 52 45 54 | 55 52 4e 29 22 20 5c 0a |ONLY_RET|URN)" \.|
|000013a0| 09 22 2d 44 58 45 4e 49 | 58 3d 24 28 58 45 4e 49 |."-DXENI|X=$(XENI|
|000013b0| 58 29 22 20 5c 0a 09 22 | 2d 44 4f 4c 44 5f 50 41 |X)" \.."|-DOLD_PA|
|000013c0| 47 45 52 5f 4e 45 57 5f | 4c 4f 43 41 54 49 4f 4e |GER_NEW_|LOCATION|
|000013d0| 3d 5c 22 24 28 4f 4c 44 | 5f 50 41 47 45 52 5f 4e |=\"$(OLD|_PAGER_N|
|000013e0| 45 57 5f 4c 4f 43 41 54 | 49 4f 4e 29 5c 22 22 0a |EW_LOCAT|ION)\"".|
|000013f0| 0a 43 46 4c 41 47 53 20 | 3d 20 24 28 4f 50 54 49 |.CFLAGS |= $(OPTI|
|00001400| 4d 29 20 24 28 44 45 46 | 53 29 0a 0a 0a 61 6c 6c |M) $(DEF|S)...all|
|00001410| 3a 20 6c 65 73 73 0a 0a | 6c 65 73 73 3a 20 24 28 |: less..|less: $(|
|00001420| 4f 42 4a 29 0a 09 63 63 | 20 24 28 4f 50 54 49 4d |OBJ)..cc| $(OPTIM|
|00001430| 29 20 2d 6f 20 6c 65 73 | 73 20 24 28 4f 42 4a 29 |) -o les|s $(OBJ)|
|00001440| 20 24 28 4c 49 42 53 29 | 0a 0a 69 6e 73 74 61 6c | $(LIBS)|..instal|
|00001450| 6c 3a 20 69 6e 73 74 61 | 6c 6c 5f 6d 61 6e 20 69 |l: insta|ll_man i|
|00001460| 6e 73 74 61 6c 6c 5f 6c | 65 73 73 0a 0a 69 6e 73 |nstall_l|ess..ins|
|00001470| 74 61 6c 6c 5f 6d 61 6e | 3a 20 6c 65 73 73 2e 6c |tall_man|: less.l|
|00001480| 0a 09 66 6f 72 20 66 20 | 69 6e 20 24 28 49 4e 53 |..for f |in $(INS|
|00001490| 54 41 4c 4c 5f 4d 41 4e | 29 3b 20 64 6f 20 20 72 |TALL_MAN|); do r|
|000014a0| 6d 20 2d 66 20 24 24 66 | 3b 20 63 70 20 6c 65 73 |m -f $$f|; cp les|
|000014b0| 73 2e 6c 20 24 24 66 3b | 20 20 64 6f 6e 65 0a 09 |s.l $$f;| done..|
|000014c0| 74 6f 75 63 68 20 69 6e | 73 74 61 6c 6c 5f 6d 61 |touch in|stall_ma|
|000014d0| 6e 0a 09 0a 69 6e 73 74 | 61 6c 6c 5f 6c 65 73 73 |n...inst|all_less|
|000014e0| 3a 20 6c 65 73 73 0a 09 | 66 6f 72 20 66 20 69 6e |: less..|for f in|
|000014f0| 20 24 28 49 4e 53 54 41 | 4c 4c 5f 4c 45 53 53 29 | $(INSTA|LL_LESS)|
|00001500| 3b 20 64 6f 20 20 72 6d | 20 2d 66 20 24 24 66 3b |; do rm| -f $$f;|
|00001510| 20 63 70 20 6c 65 73 73 | 20 24 24 66 3b 20 20 64 | cp less| $$f; d|
|00001520| 6f 6e 65 0a 09 74 6f 75 | 63 68 20 69 6e 73 74 61 |one..tou|ch insta|
|00001530| 6c 6c 5f 6c 65 73 73 0a | 0a 70 61 67 65 72 5f 70 |ll_less.|.pager_p|
|00001540| 61 74 63 68 3a 20 70 61 | 67 65 72 5f 70 61 74 63 |atch: pa|ger_patc|
|00001550| 68 2e 63 0a 09 63 63 20 | 24 28 43 46 4c 41 47 53 |h.c..cc |$(CFLAGS|
|00001560| 29 20 2d 73 20 2d 6f 20 | 70 61 67 65 72 5f 70 61 |) -s -o |pager_pa|
|00001570| 74 63 68 20 70 61 67 65 | 72 5f 70 61 74 63 68 2e |tch page|r_patch.|
|00001580| 63 0a 0a 69 6e 73 74 61 | 6c 6c 5f 70 61 67 65 72 |c..insta|ll_pager|
|00001590| 5f 70 61 74 63 68 3a 20 | 70 61 67 65 72 5f 70 61 |_patch: |pager_pa|
|000015a0| 74 63 68 0a 09 69 66 20 | 5b 20 2d 73 20 24 28 4f |tch..if |[ -s $(O|
|000015b0| 4c 44 5f 50 41 47 45 52 | 29 20 2d 61 20 21 20 2d |LD_PAGER|) -a ! -|
|000015c0| 73 20 24 28 4f 4c 44 5f | 50 41 47 45 52 5f 4e 45 |s $(OLD_|PAGER_NE|
|000015d0| 57 5f 4c 4f 43 41 54 49 | 4f 4e 29 20 5d 3b 20 74 |W_LOCATI|ON) ]; t|
|000015e0| 68 65 6e 20 5c 0a 09 09 | 6d 76 20 24 28 4f 4c 44 |hen \...|mv $(OLD|
|000015f0| 5f 50 41 47 45 52 29 20 | 24 28 4f 4c 44 5f 50 41 |_PAGER) |$(OLD_PA|
|00001600| 47 45 52 5f 4e 45 57 5f | 4c 4f 43 41 54 49 4f 4e |GER_NEW_|LOCATION|
|00001610| 29 3b 20 5c 0a 09 09 63 | 70 20 70 61 67 65 72 5f |); \...c|p pager_|
|00001620| 70 61 74 63 68 20 24 28 | 4f 4c 44 5f 50 41 47 45 |patch $(|OLD_PAGE|
|00001630| 52 29 3b 20 5c 0a 09 66 | 69 0a 09 74 6f 75 63 68 |R); \..f|i..touch|
|00001640| 20 69 6e 73 74 61 6c 6c | 5f 70 61 67 65 72 5f 70 | install|_pager_p|
|00001650| 61 74 63 68 0a 0a 24 28 | 4f 42 4a 29 3a 20 6c 65 |atch..$(|OBJ): le|
|00001660| 73 73 2e 68 20 66 75 6e | 63 73 2e 68 0a 0a 6c 69 |ss.h fun|cs.h..li|
|00001670| 6e 74 3a 0a 09 6c 69 6e | 74 20 2d 68 70 20 24 28 |nt:..lin|t -hp $(|
|00001680| 44 45 46 53 29 20 24 28 | 53 52 43 29 0a 0a 6e 65 |DEFS) $(|SRC)..ne|
|00001690| 77 66 75 6e 63 73 3a 0a | 09 6d 76 20 66 75 6e 63 |wfuncs:.|.mv func|
|000016a0| 73 2e 68 20 66 75 6e 63 | 73 2e 68 2e 4f 4c 44 0a |s.h func|s.h.OLD.|
|000016b0| 09 61 77 6b 20 2d 66 20 | 6d 6b 66 75 6e 63 73 2e |.awk -f |mkfuncs.|
|000016c0| 61 77 6b 20 24 28 53 52 | 43 29 20 3e 66 75 6e 63 |awk $(SR|C) >func|
|000016d0| 73 2e 68 0a 0a 63 6c 65 | 61 6e 3a 0a 09 72 6d 20 |s.h..cle|an:..rm |
|000016e0| 2d 66 20 24 28 4f 42 4a | 29 20 6c 65 73 73 20 70 |-f $(OBJ|) less p|
|000016f0| 61 67 65 72 5f 70 61 74 | 63 68 0a 0a 63 6c 6f 62 |ager_pat|ch..clob|
|00001700| 62 65 72 3a 0a 09 72 6d | 20 2d 66 20 2a 2e 6f 20 |ber:..rm| -f *.o |
|00001710| 6c 65 73 73 20 70 61 67 | 65 72 5f 70 61 74 63 68 |less pag|er_patch|
|00001720| 20 69 6e 73 74 61 6c 6c | 5f 6c 65 73 73 20 69 6e | install|_less in|
|00001730| 73 74 61 6c 6c 5f 6d 61 | 6e 20 69 6e 73 74 61 6c |stall_ma|n instal|
|00001740| 6c 5f 70 61 67 65 72 5f | 70 61 74 63 68 0a 0a 73 |l_pager_|patch..s|
|00001750| 68 61 72 3a 0a 09 73 68 | 61 72 20 2d 76 20 49 4e |har:..sh|ar -v IN|
|00001760| 53 54 41 4c 4c 41 54 49 | 4f 4e 20 6c 65 73 73 2e |STALLATI|ON less.|
|00001770| 6c 20 6d 61 6b 65 66 69 | 6c 65 2e 2a 20 2a 2e 68 |l makefi|le.* *.h|
|00001780| 20 2a 2e 61 77 6b 20 24 | 28 53 52 43 31 29 20 3e | *.awk $|(SRC1) >|
|00001790| 20 6c 65 73 73 2e 73 68 | 61 72 2e 61 0a 09 73 68 | less.sh|ar.a..sh|
|000017a0| 61 72 20 2d 76 20 24 28 | 53 52 43 32 29 20 70 61 |ar -v $(|SRC2) pa|
|000017b0| 67 65 72 5f 70 61 74 63 | 68 2e 63 20 3e 20 6c 65 |ger_patc|h.c > le|
|000017c0| 73 73 2e 73 68 61 72 2e | 62 0a 53 48 41 52 5f 45 |ss.shar.|b.SHAR_E|
|000017d0| 4f 46 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |OF.fi.if| test -f|
|000017e0| 20 27 6d 61 6b 65 66 69 | 6c 65 2e 78 65 6e 27 0a | 'makefi|le.xen'.|
|000017f0| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00001800| 20 22 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d | "will n|ot over-|
|00001810| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|00001820| 69 6c 65 20 27 6d 61 6b | 65 66 69 6c 65 2e 78 65 |ile 'mak|efile.xe|
|00001830| 6e 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |n'".else|.cat << |
|00001840| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 6d 61 6b |\SHAR_EO|F > 'mak|
|00001850| 65 66 69 6c 65 2e 78 65 | 6e 27 0a 23 20 4d 61 6b |efile.xe|n'.# Mak|
|00001860| 65 66 69 6c 65 20 66 6f | 72 20 22 6c 65 73 73 22 |efile fo|r "less"|
|00001870| 0a 23 0a 23 20 49 6e 76 | 6f 6b 65 64 20 61 73 3a |.#.# Inv|oked as:|
|00001880| 0a 23 09 6d 61 6b 65 20 | 61 6c 6c 0a 23 20 20 20 |.#.make |all.# |
|00001890| 6f 72 09 6d 61 6b 65 20 | 69 6e 73 74 61 6c 6c 0a |or.make |install.|
|000018a0| 23 20 50 6c 61 69 6e 20 | 22 6d 61 6b 65 22 20 69 |# Plain |"make" i|
|000018b0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|000018c0| 22 6d 61 6b 65 20 61 6c | 6c 22 2e 0a 23 0a 23 20 |"make al|l"..#.# |
|000018d0| 49 66 20 79 6f 75 20 61 | 64 64 20 6f 72 20 64 65 |If you a|dd or de|
|000018e0| 6c 65 74 65 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |lete fun|ctions, |
|000018f0| 72 65 6d 61 6b 65 20 66 | 75 6e 63 73 2e 68 20 62 |remake f|uncs.h b|
|00001900| 79 20 64 6f 69 6e 67 3a | 0a 23 09 6d 61 6b 65 20 |y doing:|.#.make |
|00001910| 6e 65 77 66 75 6e 63 73 | 0a 23 20 54 68 69 73 20 |newfuncs|.# This |
|00001920| 64 65 70 65 6e 64 73 20 | 6f 6e 20 74 68 65 20 63 |depends |on the c|
|00001930| 6f 64 69 6e 67 20 63 6f | 6e 76 65 6e 74 69 6f 6e |oding co|nvention|
|00001940| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 20 68 65 61 | of func|tion hea|
|00001950| 64 65 72 73 20 6c 6f 6f | 6b 69 6e 67 20 6c 69 6b |ders loo|king lik|
|00001960| 65 3a 0a 23 09 22 20 5c | 74 20 70 75 62 6c 69 63 |e:.#." \|t public|
|00001970| 20 3c 66 75 6e 63 74 69 | 6f 6e 2d 74 79 70 65 3e | <functi|on-type>|
|00001980| 20 5c 6e 20 3c 66 75 6e | 63 74 69 6f 6e 2d 6e 61 | \n <fun|ction-na|
|00001990| 6d 65 3e 20 28 20 2e 2e | 2e 20 29 20 22 0a 23 0a |me> ( ..|. ) ".#.|
|000019a0| 23 20 41 6c 73 6f 20 70 | 72 6f 76 69 64 65 64 3a |# Also p|rovided:|
|000019b0| 0a 23 09 6d 61 6b 65 20 | 6c 69 6e 74 09 23 20 52 |.#.make |lint.# R|
|000019c0| 75 6e 73 20 22 6c 69 6e | 74 22 20 6f 6e 20 61 6c |uns "lin|t" on al|
|000019d0| 6c 20 74 68 65 20 73 6f | 75 72 63 65 73 2e 0a 23 |l the so|urces..#|
|000019e0| 09 6d 61 6b 65 20 63 6c | 65 61 6e 09 23 20 52 65 |.make cl|ean.# Re|
|000019f0| 6d 6f 76 65 73 20 22 6c | 65 73 73 22 20 61 6e 64 |moves "l|ess" and|
|00001a00| 20 74 68 65 20 2e 6f 20 | 66 69 6c 65 73 2e 0a 23 | the .o |files..#|
|00001a10| 09 6d 61 6b 65 20 63 6c | 6f 62 62 65 72 09 23 20 |.make cl|obber.# |
|00001a20| 50 72 65 74 74 79 20 6d | 75 63 68 20 74 68 65 20 |Pretty m|uch the |
|00001a30| 73 61 6d 65 20 61 73 20 | 6d 61 6b 65 20 22 63 6c |same as |make "cl|
|00001a40| 65 61 6e 22 2e 0a 23 0a | 23 09 6d 61 6b 65 20 70 |ean"..#.|#.make p|
|00001a50| 61 67 65 72 5f 70 61 74 | 63 68 09 09 23 20 6d 61 |ager_pat|ch..# ma|
|00001a60| 6b 65 73 20 50 41 47 45 | 52 20 65 6e 76 69 72 6f |kes PAGE|R enviro|
|00001a70| 6e 6d 65 6e 74 20 76 61 | 72 69 61 62 6c 65 0a 23 |nment va|riable.#|
|00001a80| 09 6d 61 6b 65 20 69 6e | 73 74 61 6c 6c 5f 70 61 |.make in|stall_pa|
|00001a90| 67 65 72 5f 70 61 74 63 | 68 09 23 20 63 61 74 63 |ger_patc|h.# catc|
|00001aa0| 68 65 72 20 61 6e 64 20 | 69 6e 73 74 61 6c 6c 73 |her and |installs|
|00001ab0| 20 69 74 20 28 73 65 65 | 20 62 65 6c 6f 77 29 0a | it (see| below).|
|00001ac0| 0a 0a 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |..######|########|
|00001ad0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001ae0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001af0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001b00| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 23 20 53 |########|####.# S|
|00001b10| 79 73 74 65 6d 2d 73 70 | 65 63 69 66 69 63 20 70 |ystem-sp|ecific p|
|00001b20| 61 72 61 6d 65 74 65 72 | 73 0a 23 23 23 23 23 23 |arameter|s.######|
|00001b30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001b40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001b50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001b60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001b70| 23 23 23 23 0a 0a 23 20 | 44 65 66 69 6e 65 20 58 |####..# |Define X|
|00001b80| 45 4e 49 58 20 69 66 20 | 72 75 6e 6e 69 6e 67 20 |ENIX if |running |
|00001b90| 75 6e 64 65 72 20 58 45 | 4e 49 58 20 33 2e 30 0a |under XE|NIX 3.0.|
|00001ba0| 58 45 4e 49 58 20 3d 20 | 31 0a 0a 23 20 56 4f 49 |XENIX = |1..# VOI|
|00001bb0| 44 20 69 73 20 31 20 69 | 66 20 79 6f 75 72 20 43 |D is 1 i|f your C|
|00001bc0| 20 63 6f 6d 70 69 6c 65 | 72 20 73 75 70 70 6f 72 | compile|r suppor|
|00001bd0| 74 73 20 74 68 65 20 22 | 76 6f 69 64 22 20 74 79 |ts the "|void" ty|
|00001be0| 70 65 2c 0a 23 20 30 20 | 69 66 20 69 74 20 64 6f |pe,.# 0 |if it do|
|00001bf0| 65 73 20 6e 6f 74 2e 0a | 56 4f 49 44 20 3d 20 31 |es not..|VOID = 1|
|00001c00| 0a 0a 23 20 6f 66 66 5f | 74 20 69 73 20 74 68 65 |..# off_|t is the|
|00001c10| 20 74 79 70 65 20 77 68 | 69 63 68 20 6c 73 65 65 | type wh|ich lsee|
|00001c20| 6b 28 29 20 72 65 74 75 | 72 6e 73 2e 0a 23 20 49 |k() retu|rns..# I|
|00001c30| 74 20 69 73 20 61 6c 73 | 6f 20 74 68 65 20 74 79 |t is als|o the ty|
|00001c40| 70 65 20 6f 66 20 6c 73 | 65 65 6b 28 29 27 73 20 |pe of ls|eek()'s |
|00001c50| 73 65 63 6f 6e 64 20 61 | 72 67 75 6d 65 6e 74 2e |second a|rgument.|
|00001c60| 0a 6f 66 66 5f 74 20 3d | 20 6c 6f 6e 67 0a 0a 23 |.off_t =| long..#|
|00001c70| 20 54 45 52 4d 49 4f 20 | 69 73 20 31 20 69 66 20 | TERMIO |is 1 if |
|00001c80| 79 6f 75 72 20 73 79 73 | 74 65 6d 20 68 61 73 20 |your sys|tem has |
|00001c90| 2f 75 73 72 2f 69 6e 63 | 6c 75 64 65 2f 74 65 72 |/usr/inc|lude/ter|
|00001ca0| 6d 69 6f 2e 68 2e 0a 23 | 20 54 68 69 73 20 69 73 |mio.h..#| This is|
|00001cb0| 20 6e 6f 72 6d 61 6c 6c | 79 20 74 68 65 20 63 61 | normall|y the ca|
|00001cc0| 73 65 20 66 6f 72 20 53 | 79 73 74 65 6d 20 35 2e |se for S|ystem 5.|
|00001cd0| 0a 23 20 49 66 20 54 45 | 52 4d 49 4f 20 69 73 20 |.# If TE|RMIO is |
|00001ce0| 30 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 6d 75 |0 your s|ystem mu|
|00001cf0| 73 74 20 68 61 76 65 20 | 2f 75 73 72 2f 69 6e 63 |st have |/usr/inc|
|00001d00| 6c 75 64 65 2f 73 67 74 | 74 79 2e 68 2e 0a 23 20 |lude/sgt|ty.h..# |
|00001d10| 54 68 69 73 20 69 73 20 | 6e 6f 72 6d 61 6c 6c 79 |This is |normally|
|00001d20| 20 74 68 65 20 63 61 73 | 65 20 66 6f 72 20 42 53 | the cas|e for BS|
|00001d30| 44 2e 0a 54 45 52 4d 49 | 4f 20 3d 20 31 0a 0a 23 |D..TERMI|O = 1..#|
|00001d40| 20 53 49 47 53 45 54 4d | 41 53 4b 20 69 73 20 31 | SIGSETM|ASK is 1|
|00001d50| 20 69 66 20 79 6f 75 72 | 20 73 79 73 74 65 6d 20 | if your| system |
|00001d60| 68 61 73 20 74 68 65 20 | 73 69 67 73 65 74 6d 61 |has the |sigsetma|
|00001d70| 73 6b 28 29 20 63 61 6c | 6c 2e 0a 23 20 54 68 69 |sk() cal|l..# Thi|
|00001d80| 73 20 69 73 20 6e 6f 72 | 6d 61 6c 6c 79 20 74 68 |s is nor|mally th|
|00001d90| 65 20 63 61 73 65 20 6f | 6e 6c 79 20 66 6f 72 20 |e case o|nly for |
|00001da0| 42 53 44 20 34 2e 32 2c | 0a 23 20 6e 6f 74 20 66 |BSD 4.2,|.# not f|
|00001db0| 6f 72 20 42 53 44 20 34 | 2e 31 20 6f 72 20 53 79 |or BSD 4|.1 or Sy|
|00001dc0| 73 74 65 6d 20 35 2e 0a | 53 49 47 53 45 54 4d 41 |stem 5..|SIGSETMA|
|00001dd0| 53 4b 20 3d 20 30 0a 0a | 0a 23 23 23 23 23 23 23 |SK = 0..|.#######|
|00001de0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001df0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e20| 23 23 23 0a 23 20 4f 70 | 74 69 6f 6e 61 6c 20 61 |###.# Op|tional a|
|00001e30| 6e 64 20 73 65 6d 69 2d | 6f 70 74 69 6f 6e 61 6c |nd semi-|optional|
|00001e40| 20 66 65 61 74 75 72 65 | 73 0a 23 23 23 23 23 23 | feature|s.######|
|00001e50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001e90| 23 23 23 23 0a 0a 23 20 | 52 45 47 43 4d 50 20 69 |####..# |REGCMP i|
|00001ea0| 73 20 31 20 69 66 20 79 | 6f 75 72 20 73 79 73 74 |s 1 if y|our syst|
|00001eb0| 65 6d 20 68 61 73 20 74 | 68 65 20 72 65 67 63 6d |em has t|he regcm|
|00001ec0| 70 28 29 20 66 75 6e 63 | 74 69 6f 6e 2e 0a 23 20 |p() func|tion..# |
|00001ed0| 54 68 69 73 20 69 73 20 | 6e 6f 72 6d 61 6c 6c 79 |This is |normally|
|00001ee0| 20 74 68 65 20 63 61 73 | 65 20 66 6f 72 20 53 79 | the cas|e for Sy|
|00001ef0| 73 74 65 6d 20 35 2e 0a | 23 20 52 45 43 4f 4d 50 |stem 5..|# RECOMP|
|00001f00| 20 69 73 20 31 20 69 66 | 20 79 6f 75 72 20 73 79 | is 1 if| your sy|
|00001f10| 73 74 65 6d 20 68 61 73 | 20 74 68 65 20 72 65 5f |stem has| the re_|
|00001f20| 63 6f 6d 70 28 29 20 66 | 75 6e 63 74 69 6f 6e 2e |comp() f|unction.|
|00001f30| 0a 23 20 54 68 69 73 20 | 69 73 20 6e 6f 72 6d 61 |.# This |is norma|
|00001f40| 6c 6c 79 20 74 68 65 20 | 63 61 73 65 20 66 6f 72 |lly the |case for|
|00001f50| 20 42 53 44 2e 0a 23 20 | 49 66 20 6e 65 69 74 68 | BSD..# |If neith|
|00001f60| 65 72 20 69 73 20 31 2c | 20 70 61 74 74 65 72 6e |er is 1,| pattern|
|00001f70| 20 6d 61 74 63 68 69 6e | 67 20 69 73 20 73 75 70 | matchin|g is sup|
|00001f80| 70 6f 72 74 65 64 2c 20 | 62 75 74 20 77 69 74 68 |ported, |but with|
|00001f90| 6f 75 74 20 6d 65 74 61 | 63 68 61 72 61 63 74 65 |out meta|characte|
|00001fa0| 72 73 2e 0a 52 45 47 43 | 4d 50 20 3d 20 31 0a 52 |rs..REGC|MP = 1.R|
|00001fb0| 45 43 4f 4d 50 20 3d 20 | 30 0a 0a 23 20 53 48 45 |ECOMP = |0..# SHE|
|00001fc0| 4c 4c 5f 45 53 43 41 50 | 45 20 69 73 20 31 20 69 |LL_ESCAP|E is 1 i|
|00001fd0| 66 20 79 6f 75 20 77 69 | 73 68 20 74 6f 20 61 6c |f you wi|sh to al|
|00001fe0| 6c 6f 77 20 73 68 65 6c | 6c 20 65 73 63 61 70 65 |low shel|l escape|
|00001ff0| 73 2e 0a 23 20 28 54 68 | 69 73 20 69 73 20 70 6f |s..# (Th|is is po|
|00002000| 73 73 69 62 6c 65 20 6f | 6e 6c 79 20 69 66 20 79 |ssible o|nly if y|
|00002010| 6f 75 72 20 73 79 73 74 | 65 6d 20 73 75 70 70 6c |our syst|em suppl|
|00002020| 69 65 73 20 74 68 65 20 | 73 79 73 74 65 6d 28 29 |ies the |system()|
|00002030| 20 66 75 6e 63 74 69 6f | 6e 2e 29 0a 53 48 45 4c | functio|n.).SHEL|
|00002040| 4c 5f 45 53 43 41 50 45 | 20 3d 20 30 0a 0a 23 20 |L_ESCAPE| = 0..# |
|00002050| 45 44 49 54 4f 52 20 69 | 73 20 31 20 69 66 20 79 |EDITOR i|s 1 if y|
|00002060| 6f 75 20 77 69 73 68 20 | 74 6f 20 61 6c 6c 6f 77 |ou wish |to allow|
|00002070| 20 65 64 69 74 6f 72 20 | 69 6e 76 6f 63 61 74 69 | editor |invocati|
|00002080| 6f 6e 20 28 74 68 65 20 | 22 76 22 20 63 6f 6d 6d |on (the |"v" comm|
|00002090| 61 6e 64 29 2e 0a 23 20 | 28 54 68 69 73 20 69 73 |and)..# |(This is|
|000020a0| 20 70 6f 73 73 69 62 6c | 65 20 6f 6e 6c 79 20 69 | possibl|e only i|
|000020b0| 66 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 73 75 |f your s|ystem su|
|000020c0| 70 70 6c 69 65 73 20 74 | 68 65 20 73 79 73 74 65 |pplies t|he syste|
|000020d0| 6d 28 29 20 66 75 6e 63 | 74 69 6f 6e 2e 29 0a 23 |m() func|tion.).#|
|000020e0| 20 45 44 49 54 5f 50 47 | 4d 20 69 73 20 74 68 65 | EDIT_PG|M is the|
|000020f0| 20 6e 61 6d 65 20 6f 66 | 20 74 68 65 20 28 64 65 | name of| the (de|
|00002100| 66 61 75 6c 74 29 20 65 | 64 69 74 6f 72 20 74 6f |fault) e|ditor to|
|00002110| 20 62 65 20 69 6e 76 6f | 6b 65 64 2e 0a 45 44 49 | be invo|ked..EDI|
|00002120| 54 4f 52 20 3d 20 30 0a | 45 44 49 54 5f 50 47 4d |TOR = 0.|EDIT_PGM|
|00002130| 20 3d 20 2f 75 73 72 2f | 75 63 62 2f 76 69 0a 0a | = /usr/|ucb/vi..|
|00002140| 23 20 70 61 72 61 6d 65 | 74 65 72 73 20 74 6f 20 |# parame|ters to |
|00002150| 22 6d 61 6b 65 20 69 6e | 73 74 61 6c 6c 5f 70 61 |"make in|stall_pa|
|00002160| 67 65 72 5f 70 61 74 63 | 68 22 2e 20 20 4f 4c 44 |ger_patc|h". OLD|
|00002170| 5f 50 41 47 45 52 20 77 | 69 6c 6c 20 62 65 20 6d |_PAGER w|ill be m|
|00002180| 6f 76 65 64 20 74 6f 0a | 23 20 4f 4c 44 5f 50 41 |oved to.|# OLD_PA|
|00002190| 47 45 52 5f 4e 45 57 5f | 4c 4f 43 41 54 49 4f 4e |GER_NEW_|LOCATION|
|000021a0| 20 61 6e 64 20 70 61 67 | 65 72 5f 70 61 74 63 68 | and pag|er_patch|
|000021b0| 20 28 69 6e 20 74 68 69 | 73 20 64 69 72 65 63 74 | (in thi|s direct|
|000021c0| 6f 72 79 29 20 77 69 6c | 6c 20 62 65 20 69 6e 73 |ory) wil|l be ins|
|000021d0| 74 61 6c 6c 65 64 0a 23 | 20 61 73 20 4f 4c 44 5f |talled.#| as OLD_|
|000021e0| 50 41 47 45 52 2e 20 20 | 54 68 69 73 20 70 61 74 |PAGER. |This pat|
|000021f0| 63 68 20 77 69 6c 6c 20 | 61 6c 6c 6f 77 20 79 6f |ch will |allow yo|
|00002200| 75 20 74 6f 20 73 65 74 | 20 74 68 65 20 65 6e 76 |u to set| the env|
|00002210| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00002220| 65 0a 23 20 50 41 47 45 | 52 20 74 6f 20 73 70 65 |e.# PAGE|R to spe|
|00002230| 63 69 66 79 20 79 6f 75 | 72 20 70 65 72 73 6f 6e |cify you|r person|
|00002240| 61 6c 20 70 61 67 65 72 | 20 70 72 65 66 65 72 65 |al pager| prefere|
|00002250| 6e 63 65 20 28 69 73 20 | 74 68 69 73 20 61 20 73 |nce (is |this a s|
|00002260| 65 63 75 72 69 74 79 20 | 68 6f 6c 65 3f 29 0a 4f |ecurity |hole?).O|
|00002270| 4c 44 5f 50 41 47 45 52 | 20 3d 20 2f 75 73 72 2f |LD_PAGER| = /usr/|
|00002280| 75 63 62 2f 6d 6f 72 65 | 0a 4f 4c 44 5f 50 41 47 |ucb/more|.OLD_PAG|
|00002290| 45 52 5f 4e 45 57 5f 4c | 4f 43 41 54 49 4f 4e 20 |ER_NEW_L|OCATION |
|000022a0| 3d 20 2f 75 73 72 2f 75 | 63 62 2f 4d 6f 72 65 0a |= /usr/u|cb/More.|
|000022b0| 0a 23 20 4f 4e 4c 59 5f | 52 45 54 55 52 4e 20 69 |.# ONLY_|RETURN i|
|000022c0| 73 20 31 20 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |s 1 if y|ou want |
|000022d0| 52 45 54 55 52 4e 20 74 | 6f 20 62 65 20 74 68 65 |RETURN t|o be the|
|000022e0| 20 6f 6e 6c 79 20 69 6e | 70 75 74 20 77 68 69 63 | only in|put whic|
|000022f0| 68 0a 23 20 77 69 6c 6c | 20 63 6f 6e 74 69 6e 75 |h.# will| continu|
|00002300| 65 20 70 61 73 74 20 61 | 6e 20 65 72 72 6f 72 20 |e past a|n error |
|00002310| 6d 65 73 73 61 67 65 2e | 0a 23 20 4f 74 68 65 72 |message.|.# Other|
|00002320| 77 69 73 65 2c 20 61 6e | 79 20 6b 65 79 20 77 69 |wise, an|y key wi|
|00002330| 6c 6c 20 63 6f 6e 74 69 | 6e 75 65 20 70 61 73 74 |ll conti|nue past|
|00002340| 20 61 6e 20 65 72 72 6f | 72 20 6d 65 73 73 61 67 | an erro|r messag|
|00002350| 65 2e 0a 4f 4e 4c 59 5f | 52 45 54 55 52 4e 20 3d |e..ONLY_|RETURN =|
|00002360| 20 30 0a 0a 0a 23 23 23 | 23 23 23 23 23 23 23 23 | 0...###|########|
|00002370| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002380| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002390| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000023a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 0a |########|#######.|
|000023b0| 23 20 43 6f 6d 70 69 6c | 61 74 69 6f 6e 20 65 6e |# Compil|ation en|
|000023c0| 76 69 72 6f 6e 6d 65 6e | 74 2e 0a 23 23 23 23 23 |vironmen|t..#####|
|000023d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000023e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000023f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002400| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002410| 23 23 23 23 23 0a 0a 23 | 20 4c 49 42 53 20 69 73 |#####..#| LIBS is|
|00002420| 20 74 68 65 20 6c 69 73 | 74 20 6f 66 20 6c 69 62 | the lis|t of lib|
|00002430| 72 61 72 69 65 73 20 6e | 65 65 64 65 64 2e 0a 4c |raries n|eeded..L|
|00002440| 49 42 53 20 3d 20 2d 6c | 63 75 72 73 65 73 20 2d |IBS = -l|curses -|
|00002450| 6c 74 65 72 6d 6c 69 62 | 0a 0a 23 20 49 4e 53 54 |ltermlib|..# INST|
|00002460| 41 4c 4c 5f 4c 45 53 53 | 20 69 73 20 61 20 6c 69 |ALL_LESS| is a li|
|00002470| 73 74 20 6f 66 20 74 68 | 65 20 70 75 62 6c 69 63 |st of th|e public|
|00002480| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 6c 65 73 | version|s of les|
|00002490| 73 2e 0a 23 20 49 4e 53 | 54 41 4c 4c 5f 4d 41 4e |s..# INS|TALL_MAN|
|000024a0| 20 69 73 20 61 20 6c 69 | 73 74 20 6f 66 20 74 68 | is a li|st of th|
|000024b0| 65 20 70 75 62 6c 69 63 | 20 76 65 72 73 69 6f 6e |e public| version|
|000024c0| 73 20 6f 66 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 |s of the| manual |
|000024d0| 70 61 67 65 2e 0a 49 4e | 53 54 41 4c 4c 5f 4c 45 |page..IN|STALL_LE|
|000024e0| 53 53 20 3d 09 2f 75 73 | 72 2f 6c 62 69 6e 2f 6c |SS =./us|r/lbin/l|
|000024f0| 65 73 73 0a 49 4e 53 54 | 41 4c 4c 5f 4d 41 4e 20 |ess.INST|ALL_MAN |
|00002500| 3d 09 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 6c 2f |=./usr/m|an/manl/|
|00002510| 6c 65 73 73 2e 6c 0a 0a | 23 20 4f 50 54 49 4d 20 |less.l..|# OPTIM |
|00002520| 69 73 20 70 61 73 73 65 | 64 20 74 6f 20 74 68 65 |is passe|d to the|
|00002530| 20 63 6f 6d 70 69 6c 65 | 72 20 61 6e 64 20 74 68 | compile|r and th|
|00002540| 65 20 6c 6f 61 64 65 72 | 2e 0a 23 20 49 74 20 69 |e loader|..# It i|
|00002550| 73 20 6e 6f 72 6d 61 6c | 6c 79 20 22 2d 4f 22 20 |s normal|ly "-O" |
|00002560| 62 75 74 20 6d 61 79 20 | 62 65 2c 20 66 6f 72 20 |but may |be, for |
|00002570| 65 78 61 6d 70 6c 65 2c | 20 22 2d 67 22 2e 0a 4f |example,| "-g"..O|
|00002580| 50 54 49 4d 20 3d 20 2d | 4f 0a 0a 0a 23 23 23 23 |PTIM = -|O...####|
|00002590| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000025a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000025b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000025c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000025d0| 23 23 23 23 23 23 0a 23 | 20 46 69 6c 65 73 0a 23 |######.#| Files.#|
|000025e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000025f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002600| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002610| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002620| 23 23 23 23 23 23 23 23 | 23 0a 0a 53 52 43 31 20 |########|#..SRC1 |
|00002630| 3d 09 6d 61 69 6e 2e 63 | 20 6f 70 74 69 6f 6e 2e |=.main.c| option.|
|00002640| 63 20 70 72 69 6d 2e 63 | 20 0a 53 52 43 32 20 3d |c prim.c| .SRC2 =|
|00002650| 09 63 68 2e 63 20 70 6f | 73 69 74 69 6f 6e 2e 63 |.ch.c po|sition.c|
|00002660| 20 69 6e 70 75 74 2e 63 | 20 6f 75 74 70 75 74 2e | input.c| output.|
|00002670| 63 20 73 63 72 65 65 6e | 2e 63 20 5c 0a 09 70 72 |c screen|.c \..pr|
|00002680| 6f 6d 70 74 2e 63 20 6c | 69 6e 65 2e 63 20 73 69 |ompt.c l|ine.c si|
|00002690| 67 6e 61 6c 2e 63 20 68 | 65 6c 70 2e 63 20 74 74 |gnal.c h|elp.c tt|
|000026a0| 79 69 6e 2e 63 20 63 6f | 6d 6d 61 6e 64 2e 63 20 |yin.c co|mmand.c |
|000026b0| 76 65 72 73 69 6f 6e 2e | 63 0a 53 52 43 20 3d 09 |version.|c.SRC =.|
|000026c0| 24 28 53 52 43 31 29 20 | 24 28 53 52 43 32 29 0a |$(SRC1) |$(SRC2).|
|000026d0| 4f 42 4a 20 3d 09 6d 61 | 69 6e 2e 6f 20 6f 70 74 |OBJ =.ma|in.o opt|
|000026e0| 69 6f 6e 2e 6f 20 70 72 | 69 6d 2e 6f 20 63 68 2e |ion.o pr|im.o ch.|
|000026f0| 6f 20 70 6f 73 69 74 69 | 6f 6e 2e 6f 20 69 6e 70 |o positi|on.o inp|
|00002700| 75 74 2e 6f 20 6f 75 74 | 70 75 74 2e 6f 20 73 63 |ut.o out|put.o sc|
|00002710| 72 65 65 6e 2e 6f 20 5c | 0a 09 70 72 6f 6d 70 74 |reen.o \|..prompt|
|00002720| 2e 6f 20 6c 69 6e 65 2e | 6f 20 73 69 67 6e 61 6c |.o line.|o signal|
|00002730| 2e 6f 20 68 65 6c 70 2e | 6f 20 74 74 79 69 6e 2e |.o help.|o ttyin.|
|00002740| 6f 20 63 6f 6d 6d 61 6e | 64 2e 6f 20 76 65 72 73 |o comman|d.o vers|
|00002750| 69 6f 6e 2e 6f 0a 0a 0a | 23 23 23 23 23 23 23 23 |ion.o...|########|
|00002760| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002770| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002780| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002790| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000027a0| 23 23 0a 23 20 52 75 6c | 65 73 0a 23 23 23 23 23 |##.# Rul|es.#####|
|000027b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000027c0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000027d0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000027e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000027f0| 23 23 23 23 23 0a 0a 44 | 45 46 53 20 3d 09 22 2d |#####..D|EFS =."-|
|00002800| 44 54 45 52 4d 49 4f 3d | 24 28 54 45 52 4d 49 4f |DTERMIO=|$(TERMIO|
|00002810| 29 22 20 5c 0a 09 22 2d | 44 53 49 47 53 45 54 4d |)" \.."-|DSIGSETM|
|00002820| 41 53 4b 3d 24 28 53 49 | 47 53 45 54 4d 41 53 4b |ASK=$(SI|GSETMASK|
|00002830| 29 22 20 5c 0a 09 22 2d | 44 6f 66 66 5f 74 3d 24 |)" \.."-|Doff_t=$|
|00002840| 28 6f 66 66 5f 74 29 22 | 20 22 2d 44 56 4f 49 44 |(off_t)"| "-DVOID|
|00002850| 3d 24 28 56 4f 49 44 29 | 22 20 5c 0a 09 22 2d 44 |=$(VOID)|" \.."-D|
|00002860| 52 45 47 43 4d 50 3d 24 | 28 52 45 47 43 4d 50 29 |REGCMP=$|(REGCMP)|
|00002870| 22 20 22 2d 44 52 45 43 | 4f 4d 50 3d 24 28 52 45 |" "-DREC|OMP=$(RE|
|00002880| 43 4f 4d 50 29 22 20 5c | 0a 09 22 2d 44 53 48 45 |COMP)" \|.."-DSHE|
|00002890| 4c 4c 5f 45 53 43 41 50 | 45 3d 24 28 53 48 45 4c |LL_ESCAP|E=$(SHEL|
|000028a0| 4c 5f 45 53 43 41 50 45 | 29 22 20 5c 0a 09 22 2d |L_ESCAPE|)" \.."-|
|000028b0| 44 45 44 49 54 4f 52 3d | 24 28 45 44 49 54 4f 52 |DEDITOR=|$(EDITOR|
|000028c0| 29 22 20 22 2d 44 45 44 | 49 54 5f 50 47 4d 3d 5c |)" "-DED|IT_PGM=\|
|000028d0| 22 24 28 45 44 49 54 5f | 50 47 4d 29 5c 22 22 20 |"$(EDIT_|PGM)\"" |
|000028e0| 5c 0a 09 22 2d 44 4f 4e | 4c 59 5f 52 45 54 55 52 |\.."-DON|LY_RETUR|
|000028f0| 4e 3d 24 28 4f 4e 4c 59 | 5f 52 45 54 55 52 4e 29 |N=$(ONLY|_RETURN)|
|00002900| 22 20 5c 0a 09 22 2d 44 | 58 45 4e 49 58 3d 24 28 |" \.."-D|XENIX=$(|
|00002910| 58 45 4e 49 58 29 22 20 | 5c 0a 09 22 2d 44 4f 4c |XENIX)" |\.."-DOL|
|00002920| 44 5f 50 41 47 45 52 5f | 4e 45 57 5f 4c 4f 43 41 |D_PAGER_|NEW_LOCA|
|00002930| 54 49 4f 4e 3d 5c 22 24 | 28 4f 4c 44 5f 50 41 47 |TION=\"$|(OLD_PAG|
|00002940| 45 52 5f 4e 45 57 5f 4c | 4f 43 41 54 49 4f 4e 29 |ER_NEW_L|OCATION)|
|00002950| 5c 22 22 0a 0a 43 46 4c | 41 47 53 20 3d 20 24 28 |\""..CFL|AGS = $(|
|00002960| 4f 50 54 49 4d 29 20 24 | 28 44 45 46 53 29 0a 0a |OPTIM) $|(DEFS)..|
|00002970| 0a 61 6c 6c 3a 20 6c 65 | 73 73 0a 0a 6c 65 73 73 |.all: le|ss..less|
|00002980| 3a 20 24 28 4f 42 4a 29 | 0a 09 63 63 20 24 28 4f |: $(OBJ)|..cc $(O|
|00002990| 50 54 49 4d 29 20 2d 6f | 20 6c 65 73 73 20 24 28 |PTIM) -o| less $(|
|000029a0| 4f 42 4a 29 20 24 28 4c | 49 42 53 29 0a 0a 69 6e |OBJ) $(L|IBS)..in|
|000029b0| 73 74 61 6c 6c 3a 20 69 | 6e 73 74 61 6c 6c 5f 6d |stall: i|nstall_m|
|000029c0| 61 6e 20 69 6e 73 74 61 | 6c 6c 5f 6c 65 73 73 0a |an insta|ll_less.|
|000029d0| 0a 69 6e 73 74 61 6c 6c | 5f 6d 61 6e 3a 20 6c 65 |.install|_man: le|
|000029e0| 73 73 2e 6c 0a 09 66 6f | 72 20 66 20 69 6e 20 24 |ss.l..fo|r f in $|
|000029f0| 28 49 4e 53 54 41 4c 4c | 5f 4d 41 4e 29 3b 20 64 |(INSTALL|_MAN); d|
|00002a00| 6f 20 20 72 6d 20 2d 66 | 20 24 24 66 3b 20 63 70 |o rm -f| $$f; cp|
|00002a10| 20 6c 65 73 73 2e 6c 20 | 24 24 66 3b 20 20 64 6f | less.l |$$f; do|
|00002a20| 6e 65 0a 09 74 6f 75 63 | 68 20 69 6e 73 74 61 6c |ne..touc|h instal|
|00002a30| 6c 5f 6d 61 6e 0a 09 0a | 69 6e 73 74 61 6c 6c 5f |l_man...|install_|
|00002a40| 6c 65 73 73 3a 20 6c 65 | 73 73 0a 09 66 6f 72 20 |less: le|ss..for |
|00002a50| 66 20 69 6e 20 24 28 49 | 4e 53 54 41 4c 4c 5f 4c |f in $(I|NSTALL_L|
|00002a60| 45 53 53 29 3b 20 64 6f | 20 20 72 6d 20 2d 66 20 |ESS); do| rm -f |
|00002a70| 24 24 66 3b 20 63 70 20 | 6c 65 73 73 20 24 24 66 |$$f; cp |less $$f|
|00002a80| 3b 20 20 64 6f 6e 65 0a | 09 74 6f 75 63 68 20 69 |; done.|.touch i|
|00002a90| 6e 73 74 61 6c 6c 5f 6c | 65 73 73 0a 0a 70 61 67 |nstall_l|ess..pag|
|00002aa0| 65 72 5f 70 61 74 63 68 | 3a 20 70 61 67 65 72 5f |er_patch|: pager_|
|00002ab0| 70 61 74 63 68 2e 63 0a | 09 63 63 20 24 28 43 46 |patch.c.|.cc $(CF|
|00002ac0| 4c 41 47 53 29 20 2d 73 | 20 2d 6f 20 70 61 67 65 |LAGS) -s| -o page|
|00002ad0| 72 5f 70 61 74 63 68 20 | 70 61 67 65 72 5f 70 61 |r_patch |pager_pa|
|00002ae0| 74 63 68 2e 63 0a 0a 69 | 6e 73 74 61 6c 6c 5f 70 |tch.c..i|nstall_p|
|00002af0| 61 67 65 72 5f 70 61 74 | 63 68 3a 20 70 61 67 65 |ager_pat|ch: page|
|00002b00| 72 5f 70 61 74 63 68 0a | 09 69 66 20 5b 20 2d 73 |r_patch.|.if [ -s|
|00002b10| 20 24 28 4f 4c 44 5f 50 | 41 47 45 52 29 20 2d 61 | $(OLD_P|AGER) -a|
|00002b20| 20 21 20 2d 73 20 24 28 | 4f 4c 44 5f 50 41 47 45 | ! -s $(|OLD_PAGE|
|00002b30| 52 5f 4e 45 57 5f 4c 4f | 43 41 54 49 4f 4e 29 20 |R_NEW_LO|CATION) |
|00002b40| 5d 3b 20 74 68 65 6e 20 | 5c 0a 09 09 6d 76 20 24 |]; then |\...mv $|
|00002b50| 28 4f 4c 44 5f 50 41 47 | 45 52 29 20 24 28 4f 4c |(OLD_PAG|ER) $(OL|
|00002b60| 44 5f 50 41 47 45 52 5f | 4e 45 57 5f 4c 4f 43 41 |D_PAGER_|NEW_LOCA|
|00002b70| 54 49 4f 4e 29 3b 20 5c | 0a 09 09 63 70 20 70 61 |TION); \|...cp pa|
|00002b80| 67 65 72 5f 70 61 74 63 | 68 20 24 28 4f 4c 44 5f |ger_patc|h $(OLD_|
|00002b90| 50 41 47 45 52 29 3b 20 | 5c 0a 09 66 69 0a 09 74 |PAGER); |\..fi..t|
|00002ba0| 6f 75 63 68 20 69 6e 73 | 74 61 6c 6c 5f 70 61 67 |ouch ins|tall_pag|
|00002bb0| 65 72 5f 70 61 74 63 68 | 0a 0a 24 28 4f 42 4a 29 |er_patch|..$(OBJ)|
|00002bc0| 3a 20 6c 65 73 73 2e 68 | 20 66 75 6e 63 73 2e 68 |: less.h| funcs.h|
|00002bd0| 0a 0a 6c 69 6e 74 3a 0a | 09 6c 69 6e 74 20 2d 68 |..lint:.|.lint -h|
|00002be0| 70 20 24 28 44 45 46 53 | 29 20 24 28 53 52 43 29 |p $(DEFS|) $(SRC)|
|00002bf0| 0a 0a 6e 65 77 66 75 6e | 63 73 3a 0a 09 6d 76 20 |..newfun|cs:..mv |
|00002c00| 66 75 6e 63 73 2e 68 20 | 66 75 6e 63 73 2e 68 2e |funcs.h |funcs.h.|
|00002c10| 4f 4c 44 0a 09 61 77 6b | 20 2d 66 20 6d 6b 66 75 |OLD..awk| -f mkfu|
|00002c20| 6e 63 73 2e 61 77 6b 20 | 24 28 53 52 43 29 20 3e |ncs.awk |$(SRC) >|
|00002c30| 66 75 6e 63 73 2e 68 0a | 0a 63 6c 65 61 6e 3a 0a |funcs.h.|.clean:.|
|00002c40| 09 72 6d 20 2d 66 20 24 | 28 4f 42 4a 29 20 6c 65 |.rm -f $|(OBJ) le|
|00002c50| 73 73 20 70 61 67 65 72 | 5f 70 61 74 63 68 0a 0a |ss pager|_patch..|
|00002c60| 63 6c 6f 62 62 65 72 3a | 0a 09 72 6d 20 2d 66 20 |clobber:|..rm -f |
|00002c70| 2a 2e 6f 20 6c 65 73 73 | 20 70 61 67 65 72 5f 70 |*.o less| pager_p|
|00002c80| 61 74 63 68 20 69 6e 73 | 74 61 6c 6c 5f 6c 65 73 |atch ins|tall_les|
|00002c90| 73 20 69 6e 73 74 61 6c | 6c 5f 6d 61 6e 20 69 6e |s instal|l_man in|
|00002ca0| 73 74 61 6c 6c 5f 70 61 | 67 65 72 5f 70 61 74 63 |stall_pa|ger_patc|
|00002cb0| 68 0a 0a 73 68 61 72 3a | 0a 09 73 68 61 72 20 2d |h..shar:|..shar -|
|00002cc0| 76 20 49 4e 53 54 41 4c | 4c 41 54 49 4f 4e 20 6c |v INSTAL|LATION l|
|00002cd0| 65 73 73 2e 6c 20 6d 61 | 6b 65 66 69 6c 65 2e 2a |ess.l ma|kefile.*|
|00002ce0| 20 2a 2e 68 20 2a 2e 61 | 77 6b 20 24 28 53 52 43 | *.h *.a|wk $(SRC|
|00002cf0| 31 29 20 3e 20 6c 65 73 | 73 2e 73 68 61 72 2e 61 |1) > les|s.shar.a|
|00002d00| 0a 09 73 68 61 72 20 2d | 76 20 24 28 53 52 43 32 |..shar -|v $(SRC2|
|00002d10| 29 20 70 61 67 65 72 5f | 70 61 74 63 68 2e 63 20 |) pager_|patch.c |
|00002d20| 3e 20 6c 65 73 73 2e 73 | 68 61 72 2e 62 0a 53 48 |> less.s|har.b.SH|
|00002d30| 41 52 5f 45 4f 46 0a 66 | 69 0a 69 66 20 74 65 73 |AR_EOF.f|i.if tes|
|00002d40| 74 20 2d 66 20 27 6d 6b | 66 75 6e 63 73 2e 61 77 |t -f 'mk|funcs.aw|
|00002d50| 6b 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |k'.then.|.echo sh|
|00002d60| 61 72 3a 20 22 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |ar: "wil|l not ov|
|00002d70| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00002d80| 67 20 66 69 6c 65 20 27 | 6d 6b 66 75 6e 63 73 2e |g file '|mkfuncs.|
|00002d90| 61 77 6b 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |awk'".el|se.cat <|
|00002da0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 6d |< \SHAR_|EOF > 'm|
|00002db0| 6b 66 75 6e 63 73 2e 61 | 77 6b 27 0a 42 45 47 49 |kfuncs.a|wk'.BEGI|
|00002dc0| 4e 20 7b 20 46 53 3d 22 | 28 22 3b 20 73 74 61 74 |N { FS="|("; stat|
|00002dd0| 65 20 3d 20 30 20 7d 0a | 0a 2f 5e 09 70 75 62 6c |e = 0 }.|./^.publ|
|00002de0| 69 63 2f 20 7b 20 66 74 | 79 70 65 20 3d 20 24 30 |ic/ { ft|ype = $0|
|00002df0| 3b 20 73 74 61 74 65 20 | 3d 20 31 20 7d 0a 0a 7b |; state |= 1 }..{|
|00002e00| 20 69 66 20 28 73 74 61 | 74 65 20 3d 3d 20 31 29 | if (sta|te == 1)|
|00002e10| 0a 09 73 74 61 74 65 20 | 3d 20 32 0a 20 20 65 6c |..state |= 2. el|
|00002e20| 73 65 20 69 66 20 28 73 | 74 61 74 65 20 3d 3d 20 |se if (s|tate == |
|00002e30| 32 29 0a 09 7b 20 70 72 | 69 6e 74 20 66 74 79 70 |2)..{ pr|int ftyp|
|00002e40| 65 2c 24 31 2c 22 28 29 | 3b 22 3b 20 73 74 61 74 |e,$1,"()|;"; stat|
|00002e50| 65 20 3d 20 30 20 7d 0a | 7d 0a 53 48 41 52 5f 45 |e = 0 }.|}.SHAR_E|
|00002e60| 4f 46 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |OF.fi.if| test -f|
|00002e70| 20 27 6e 31 30 2d 64 69 | 66 66 27 0a 74 68 65 6e | 'n10-di|ff'.then|
|00002e80| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 22 77 69 |..echo s|har: "wi|
|00002e90| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00002ea0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00002eb0| 27 6e 31 30 2d 64 69 66 | 66 27 22 0a 65 6c 73 65 |'n10-dif|f'".else|
|00002ec0| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00002ed0| 46 20 3e 20 27 6e 31 30 | 2d 64 69 66 66 27 0a 2a |F > 'n10|-diff'.*|
|00002ee0| 2a 2a 20 6e 31 30 2d 6f | 6c 64 2e 63 09 53 75 6e |** n10-o|ld.c.Sun|
|00002ef0| 20 4d 61 79 20 20 34 20 | 30 31 3a 34 35 3a 30 36 | May 4 |01:45:06|
|00002f00| 20 31 39 38 36 0a 2d 2d | 2d 20 6e 31 30 2e 63 09 | 1986.--|- n10.c.|
|00002f10| 4d 6f 6e 20 4a 75 6c 20 | 31 34 20 31 32 3a 32 37 |Mon Jul |14 12:27|
|00002f20| 3a 35 34 20 31 39 38 36 | 0a 2a 2a 2a 2a 2a 2a 2a |:54 1986|.*******|
|00002f30| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 2a 2a 2a 20 31 33 37 |********|.*** 137|
|00002f40| 2c 31 35 31 0a 20 20 09 | 69 66 28 2a 63 6f 64 65 |,151. .|if(*code|
|00002f50| 70 20 26 26 20 28 65 73 | 63 20 7c 7c 20 6c 65 61 |p && (es|c || lea|
|00002f60| 64 29 29 6d 6f 76 65 28 | 29 3b 0a 20 20 09 65 73 |d))move(|);. .es|
|00002f70| 63 74 20 2b 3d 20 77 3b | 0a 20 20 09 69 66 28 69 |ct += w;|. .if(i|
|00002f80| 26 30 37 34 30 30 30 29 | 78 66 6f 6e 74 20 3d 20 |&074000)|xfont = |
|00002f90| 28 69 3e 3e 39 29 20 26 | 20 30 33 3b 0a 21 20 09 |(i>>9) &| 03;.! .|
|00002fa0| 69 66 28 2a 74 2e 62 64 | 6f 6e 20 26 20 30 33 37 |if(*t.bd|on & 037|
|00002fb0| 37 29 7b 0a 21 20 09 09 | 69 66 28 21 62 64 6d 6f |7){.! ..|if(!bdmo|
|00002fc0| 64 65 20 26 26 20 28 78 | 66 6f 6e 74 20 3d 3d 20 |de && (x|font == |
|00002fd0| 32 29 29 7b 0a 21 20 09 | 09 09 6f 70 75 74 73 28 |2)){.! .|..oputs(|
|00002fe0| 74 2e 62 64 6f 6e 29 3b | 0a 21 20 09 09 09 62 64 |t.bdon);|.! ...bd|
|00002ff0| 6d 6f 64 65 2b 2b 3b 0a | 21 20 09 09 7d 0a 21 20 |mode++;.|! ..}.! |
|00003000| 09 09 69 66 28 62 64 6d | 6f 64 65 20 26 26 20 28 |..if(bdm|ode && (|
|00003010| 78 66 6f 6e 74 20 21 3d | 20 32 29 29 7b 0a 21 20 |xfont !=| 2)){.! |
|00003020| 09 09 09 6f 70 75 74 73 | 28 74 2e 62 64 6f 66 66 |...oputs|(t.bdoff|
|00003030| 29 3b 0a 21 20 09 09 09 | 62 64 6d 6f 64 65 20 3d |);.! ...|bdmode =|
|00003040| 20 30 3b 0a 21 20 09 09 | 7d 0a 20 20 09 7d 0a 20 | 0;.! ..|}. .}. |
|00003050| 20 09 69 66 28 78 66 6f | 6e 74 20 3d 3d 20 75 6c | .if(xfo|nt == ul|
|00003060| 66 6f 6e 74 29 7b 0a 20 | 20 09 09 66 6f 72 28 6b |font){. | ..for(k|
|00003070| 3d 77 2f 74 2e 43 68 61 | 72 3b 6b 3e 30 3b 6b 2d |=w/t.Cha|r;k>0;k-|
|00003080| 2d 29 6f 70 75 74 28 27 | 5f 27 29 3b 0a 0a 2d 2d |-)oput('|_');..--|
|00003090| 2d 20 31 33 37 2c 31 34 | 35 20 2d 2d 2d 2d 2d 0a |- 137,14|5 -----.|
|000030a0| 20 20 09 69 66 28 2a 63 | 6f 64 65 70 20 26 26 20 | .if(*c|odep && |
|000030b0| 28 65 73 63 20 7c 7c 20 | 6c 65 61 64 29 29 6d 6f |(esc || |lead))mo|
|000030c0| 76 65 28 29 3b 0a 20 20 | 09 65 73 63 74 20 2b 3d |ve();. |.esct +=|
|000030d0| 20 77 3b 0a 20 20 09 69 | 66 28 69 26 30 37 34 30 | w;. .i|f(i&0740|
|000030e0| 30 30 29 78 66 6f 6e 74 | 20 3d 20 28 69 3e 3e 39 |00)xfont| = (i>>9|
|000030f0| 29 20 26 20 30 33 3b 0a | 21 20 09 69 66 28 21 62 |) & 03;.|! .if(!b|
|00003100| 64 6d 6f 64 65 20 26 26 | 20 28 78 66 6f 6e 74 20 |dmode &&| (xfont |
|00003110| 3d 3d 20 32 29 29 7b 0a | 21 20 09 09 69 66 28 2a |== 2)){.|! ..if(*|
|00003120| 74 2e 62 64 6f 6e 20 26 | 20 30 33 37 37 29 6f 70 |t.bdon &| 0377)op|
|00003130| 75 74 73 28 74 2e 62 64 | 6f 6e 29 3b 0a 21 20 09 |uts(t.bd|on);.! .|
|00003140| 09 62 64 6d 6f 64 65 2b | 2b 3b 0a 20 20 09 7d 0a |.bdmode+|+;. .}.|
|00003150| 20 20 09 69 66 28 62 64 | 6d 6f 64 65 20 26 26 20 | .if(bd|mode && |
|00003160| 28 78 66 6f 6e 74 20 21 | 3d 20 32 29 29 7b 0a 20 |(xfont !|= 2)){. |
|00003170| 20 09 09 69 66 28 2a 74 | 2e 62 64 6f 66 66 20 26 | ..if(*t|.bdoff &|
|00003180| 20 30 33 37 37 29 6f 70 | 75 74 73 28 74 2e 62 64 | 0377)op|uts(t.bd|
|00003190| 6f 66 66 29 3b 0a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |off);.**|********|
|000031a0| 2a 2a 2a 2a 2a 0a 2a 2a | 2a 20 31 34 37 2c 31 35 |*****.**|* 147,15|
|000031b0| 32 0a 20 20 09 09 09 62 | 64 6d 6f 64 65 20 3d 20 |2. ...b|dmode = |
|000031c0| 30 3b 0a 20 20 09 09 7d | 0a 20 20 09 7d 0a 20 20 |0;. ..}|. .}. |
|000031d0| 09 69 66 28 78 66 6f 6e | 74 20 3d 3d 20 75 6c 66 |.if(xfon|t == ulf|
|000031e0| 6f 6e 74 29 7b 0a 20 20 | 09 09 66 6f 72 28 6b 3d |ont){. |..for(k=|
|000031f0| 77 2f 74 2e 43 68 61 72 | 3b 6b 3e 30 3b 6b 2d 2d |w/t.Char|;k>0;k--|
|00003200| 29 6f 70 75 74 28 27 5f | 27 29 3b 0a 20 20 09 09 |)oput('_|');. ..|
|00003210| 66 6f 72 28 6b 3d 77 2f | 74 2e 43 68 61 72 3b 6b |for(k=w/|t.Char;k|
|00003220| 3e 30 3b 6b 2d 2d 29 6f | 70 75 74 28 27 5c 62 27 |>0;k--)o|put('\b'|
|00003230| 29 3b 0a 0a 2d 2d 2d 20 | 31 34 31 2c 31 35 30 20 |);..--- |141,150 |
|00003240| 2d 2d 2d 2d 2d 0a 20 20 | 09 09 69 66 28 2a 74 2e |-----. |..if(*t.|
|00003250| 62 64 6f 6e 20 26 20 30 | 33 37 37 29 6f 70 75 74 |bdon & 0|377)oput|
|00003260| 73 28 74 2e 62 64 6f 6e | 29 3b 0a 20 20 09 09 62 |s(t.bdon|);. ..b|
|00003270| 64 6d 6f 64 65 2b 2b 3b | 0a 20 20 09 7d 0a 2b 20 |dmode++;|. .}.+ |
|00003280| 09 69 66 28 62 64 6d 6f | 64 65 20 26 26 20 28 78 |.if(bdmo|de && (x|
|00003290| 66 6f 6e 74 20 21 3d 20 | 32 29 29 7b 0a 2b 20 09 |font != |2)){.+ .|
|000032a0| 09 69 66 28 2a 74 2e 62 | 64 6f 66 66 20 26 20 30 |.if(*t.b|doff & 0|
|000032b0| 33 37 37 29 6f 70 75 74 | 73 28 74 2e 62 64 6f 66 |377)oput|s(t.bdof|
|000032c0| 66 29 3b 0a 2b 20 09 09 | 62 64 6d 6f 64 65 20 3d |f);.+ ..|bdmode =|
|000032d0| 20 30 3b 0a 2b 20 09 7d | 0a 20 20 09 69 66 28 78 | 0;.+ .}|. .if(x|
|000032e0| 66 6f 6e 74 20 3d 3d 20 | 75 6c 66 6f 6e 74 29 7b |font == |ulfont){|
|000032f0| 0a 20 20 09 09 66 6f 72 | 28 6b 3d 77 2f 74 2e 43 |. ..for|(k=w/t.C|
|00003300| 68 61 72 3b 6b 3e 30 3b | 6b 2d 2d 29 6f 70 75 74 |har;k>0;|k--)oput|
|00003310| 28 27 5f 27 29 3b 0a 20 | 20 09 09 66 6f 72 28 6b |('_');. | ..for(k|
|00003320| 3d 77 2f 74 2e 43 68 61 | 72 3b 6b 3e 30 3b 6b 2d |=w/t.Cha|r;k>0;k-|
|00003330| 2d 29 6f 70 75 74 28 27 | 5c 62 27 29 3b 0a 2a 2a |-)oput('|\b');.**|
|00003340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0a 2a 2a |********|*****.**|
|00003350| 2a 20 31 35 38 2c 31 36 | 33 0a 20 20 09 09 09 6f |* 158,16|3. ...o|
|00003360| 70 75 74 28 27 20 27 29 | 3b 0a 20 20 09 09 7d 65 |put(' ')|;. ..}e|
|00003370| 6c 73 65 7b 0a 20 20 09 | 09 09 69 66 28 70 6c 6f |lse{. .|..if(plo|
|00003380| 74 6d 6f 64 65 29 6f 70 | 75 74 73 28 74 2e 70 6c |tmode)op|uts(t.pl|
|00003390| 6f 74 6f 66 66 29 3b 0a | 20 20 09 09 09 2a 6f 62 |otoff);.| ...*ob|
|000033a0| 75 66 70 2b 2b 20 3d 20 | 2a 63 6f 64 65 70 2b 2b |ufp++ = |*codep++|
|000033b0| 3b 0a 20 20 09 09 09 69 | 66 28 6f 62 75 66 70 20 |;. ...i|f(obufp |
|000033c0| 3d 3d 20 28 6f 62 75 66 | 20 2b 20 4f 42 55 46 53 |== (obuf| + OBUFS|
|000033d0| 5a 20 2b 20 61 73 63 69 | 69 20 2d 20 31 29 29 66 |Z + asci|i - 1))f|
|000033e0| 6c 75 73 68 6f 28 29 3b | 0a 20 20 2f 2a 09 09 09 |lusho();|. /*...|
|000033f0| 6f 70 75 74 28 2a 63 6f | 64 65 70 2b 2b 29 3b 2a |oput(*co|dep++);*|
|00003400| 2f 0a 0a 2d 2d 2d 20 31 | 35 36 2c 31 36 32 20 2d |/..--- 1|56,162 -|
|00003410| 2d 2d 2d 2d 0a 20 20 09 | 09 09 6f 70 75 74 28 27 |----. .|..oput('|
|00003420| 20 27 29 3b 0a 20 20 09 | 09 7d 65 6c 73 65 7b 0a | ');. .|.}else{.|
|00003430| 20 20 09 09 09 69 66 28 | 70 6c 6f 74 6d 6f 64 65 | ...if(|plotmode|
|00003440| 29 6f 70 75 74 73 28 74 | 2e 70 6c 6f 74 6f 66 66 |)oputs(t|.plotoff|
|00003450| 29 3b 0a 2b 20 09 09 09 | 69 66 28 6f 62 75 66 70 |);.+ ...|if(obufp|
|00003460| 20 3e 3d 20 28 6f 62 75 | 66 20 2b 20 4f 42 55 46 | >= (obu|f + OBUF|
|00003470| 53 5a 20 2b 20 61 73 63 | 69 69 20 2d 20 31 20 2d |SZ + asc|ii - 1 -|
|00003480| 20 28 62 64 6d 6f 64 65 | 3f 33 3a 31 29 29 29 66 | (bdmode|?3:1)))f|
|00003490| 6c 75 73 68 6f 28 29 3b | 0a 20 20 09 09 09 2a 6f |lusho();|. ...*o|
|000034a0| 62 75 66 70 2b 2b 20 3d | 20 2a 63 6f 64 65 70 2b |bufp++ =| *codep+|
|000034b0| 2b 3b 0a 20 20 09 09 09 | 69 66 28 62 64 6d 6f 64 |+;. ...|if(bdmod|
|000034c0| 65 20 26 26 20 21 2a 74 | 2e 62 64 6f 6e 29 7b 0a |e && !*t|.bdon){.|
|000034d0| 20 20 09 09 09 09 2a 6f | 62 75 66 70 2b 2b 20 3d | ....*o|bufp++ =|
|000034e0| 20 27 5c 62 27 3b 0a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | '\b';.*|********|
|000034f0| 2a 2a 2a 2a 2a 2a 0a 2a | 2a 2a 20 31 35 39 2c 31 |******.*|** 159,1|
|00003500| 36 35 0a 20 20 09 09 7d | 65 6c 73 65 7b 0a 20 20 |65. ..}|else{. |
|00003510| 09 09 09 69 66 28 70 6c | 6f 74 6d 6f 64 65 29 6f |...if(pl|otmode)o|
|00003520| 70 75 74 73 28 74 2e 70 | 6c 6f 74 6f 66 66 29 3b |puts(t.p|lotoff);|
|00003530| 0a 20 20 09 09 09 2a 6f | 62 75 66 70 2b 2b 20 3d |. ...*o|bufp++ =|
|00003540| 20 2a 63 6f 64 65 70 2b | 2b 3b 0a 21 20 09 09 09 | *codep+|+;.! ...|
|00003550| 69 66 28 6f 62 75 66 70 | 20 3d 3d 20 28 6f 62 75 |if(obufp| == (obu|
|00003560| 66 20 2b 20 4f 42 55 46 | 53 5a 20 2b 20 61 73 63 |f + OBUF|SZ + asc|
|00003570| 69 69 20 2d 20 31 29 29 | 66 6c 75 73 68 6f 28 29 |ii - 1))|flusho()|
|00003580| 3b 0a 20 20 2f 2a 09 09 | 09 6f 70 75 74 28 2a 63 |;. /*..|.oput(*c|
|00003590| 6f 64 65 70 2b 2b 29 3b | 2a 2f 0a 20 20 09 09 7d |odep++);|*/. ..}|
|000035a0| 0a 20 20 09 7d 0a 0a 2d | 2d 2d 20 31 35 38 2c 31 |. .}..-|-- 158,1|
|000035b0| 36 37 20 2d 2d 2d 2d 2d | 0a 20 20 09 09 09 69 66 |67 -----|. ...if|
|000035c0| 28 70 6c 6f 74 6d 6f 64 | 65 29 6f 70 75 74 73 28 |(plotmod|e)oputs(|
|000035d0| 74 2e 70 6c 6f 74 6f 66 | 66 29 3b 0a 20 20 09 09 |t.plotof|f);. ..|
|000035e0| 09 69 66 28 6f 62 75 66 | 70 20 3e 3d 20 28 6f 62 |.if(obuf|p >= (ob|
|000035f0| 75 66 20 2b 20 4f 42 55 | 46 53 5a 20 2b 20 61 73 |uf + OBU|FSZ + as|
|00003600| 63 69 69 20 2d 20 31 20 | 2d 20 28 62 64 6d 6f 64 |cii - 1 |- (bdmod|
|00003610| 65 3f 33 3a 31 29 29 29 | 66 6c 75 73 68 6f 28 29 |e?3:1)))|flusho()|
|00003620| 3b 0a 20 20 09 09 09 2a | 6f 62 75 66 70 2b 2b 20 |;. ...*|obufp++ |
|00003630| 3d 20 2a 63 6f 64 65 70 | 2b 2b 3b 0a 21 20 09 09 |= *codep|++;.! ..|
|00003640| 09 69 66 28 62 64 6d 6f | 64 65 20 26 26 20 21 2a |.if(bdmo|de && !*|
|00003650| 74 2e 62 64 6f 6e 29 7b | 0a 21 20 09 09 09 09 2a |t.bdon){|.! ....*|
|00003660| 6f 62 75 66 70 2b 2b 20 | 3d 20 27 5c 62 27 3b 0a |obufp++ |= '\b';.|
|00003670| 21 20 09 09 09 09 2a 6f | 62 75 66 70 2b 2b 20 3d |! ....*o|bufp++ =|
|00003680| 20 63 6f 64 65 70 5b 2d | 31 5d 3b 0a 21 20 09 09 | codep[-|1];.! ..|
|00003690| 09 7d 0a 20 20 2f 2a 09 | 09 09 6f 70 75 74 28 2a |.}. /*.|..oput(*|
|000036a0| 63 6f 64 65 70 2b 2b 29 | 3b 2a 2f 0a 20 20 09 09 |codep++)|;*/. ..|
|000036b0| 7d 0a 20 20 09 7d 0a 53 | 48 41 52 5f 45 4f 46 0a |}. .}.S|HAR_EOF.|
|000036c0| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 6f |fi.if te|st -f 'o|
|000036d0| 70 74 69 6f 6e 2e 63 27 | 0a 74 68 65 6e 0a 09 65 |ption.c'|.then..e|
|000036e0| 63 68 6f 20 73 68 61 72 | 3a 20 22 77 69 6c 6c 20 |cho shar|: "will |
|000036f0| 6e 6f 74 20 6f 76 65 72 | 2d 77 72 69 74 65 20 65 |not over|-write e|
|00003700| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 20 27 6f 70 |xisting |file 'op|
|00003710| 74 69 6f 6e 2e 63 27 22 | 0a 65 6c 73 65 0a 63 61 |tion.c'"|.else.ca|
|00003720| 74 20 3c 3c 20 5c 53 48 | 41 52 5f 45 4f 46 20 3e |t << \SH|AR_EOF >|
|00003730| 20 27 6f 70 74 69 6f 6e | 2e 63 27 0a 2f 2a 0a 20 | 'option|.c'./*. |
|00003740| 2a 20 50 72 6f 63 65 73 | 73 20 63 6f 6d 6d 61 6e |* Proces|s comman|
|00003750| 64 20 6c 69 6e 65 20 6f | 70 74 69 6f 6e 73 2e 0a |d line o|ptions..|
|00003760| 20 2a 20 45 61 63 68 20 | 6f 70 74 69 6f 6e 20 69 | * Each |option i|
|00003770| 73 20 61 20 73 69 6e 67 | 6c 65 20 6c 65 74 74 65 |s a sing|le lette|
|00003780| 72 20 77 68 69 63 68 20 | 63 6f 6e 74 72 6f 6c 73 |r which |controls|
|00003790| 20 61 20 70 72 6f 67 72 | 61 6d 20 76 61 72 69 61 | a progr|am varia|
|000037a0| 62 6c 65 2e 0a 20 2a 20 | 54 68 65 20 6f 70 74 69 |ble.. * |The opti|
|000037b0| 6f 6e 73 20 68 61 76 65 | 20 64 65 66 61 75 6c 74 |ons have| default|
|000037c0| 73 20 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 63 |s which |may be c|
|000037d0| 68 61 6e 67 65 64 20 76 | 69 61 0a 20 2a 20 74 68 |hanged v|ia. * th|
|000037e0| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 6f |e comman|d line o|
|000037f0| 70 74 69 6f 6e 2c 20 6f | 72 20 74 6f 67 67 6c 65 |ption, o|r toggle|
|00003800| 64 20 76 69 61 20 74 68 | 65 20 22 2d 22 20 63 6f |d via th|e "-" co|
|00003810| 6d 6d 61 6e 64 2e 0a 20 | 2a 2f 0a 0a 23 69 6e 63 |mmand.. |*/..#inc|
|00003820| 6c 75 64 65 20 22 6c 65 | 73 73 2e 68 22 0a 0a 23 |lude "le|ss.h"..#|
|00003830| 64 65 66 69 6e 65 09 74 | 6f 75 70 70 65 72 28 63 |define.t|oupper(c|
|00003840| 29 09 28 28 63 29 2d 27 | 61 27 2b 27 41 27 29 0a |).((c)-'|a'+'A').|
|00003850| 0a 2f 2a 0a 20 2a 20 54 | 79 70 65 73 20 6f 66 20 |./*. * T|ypes of |
|00003860| 6f 70 74 69 6f 6e 73 2e | 0a 20 2a 2f 0a 23 64 65 |options.|. */.#de|
|00003870| 66 69 6e 65 09 42 4f 4f | 4c 09 09 30 31 09 2f 2a |fine.BOO|L..01./*|
|00003880| 20 42 6f 6f 6c 65 61 6e | 20 6f 70 74 69 6f 6e 3a | Boolean| option:|
|00003890| 20 30 20 6f 72 20 31 20 | 2a 2f 0a 23 64 65 66 69 | 0 or 1 |*/.#defi|
|000038a0| 6e 65 09 54 52 49 50 4c | 45 09 09 30 32 09 2f 2a |ne.TRIPL|E..02./*|
|000038b0| 20 54 72 69 70 6c 65 2d | 76 61 6c 75 65 64 20 6f | Triple-|valued o|
|000038c0| 70 74 69 6f 6e 3a 20 30 | 2c 20 31 20 6f 72 20 32 |ption: 0|, 1 or 2|
|000038d0| 20 2a 2f 0a 23 64 65 66 | 69 6e 65 09 4e 55 4d 42 | */.#def|ine.NUMB|
|000038e0| 45 52 09 09 30 34 09 2f | 2a 20 4e 75 6d 65 72 69 |ER..04./|* Numeri|
|000038f0| 63 20 6f 70 74 69 6f 6e | 20 2a 2f 0a 23 64 65 66 |c option| */.#def|
|00003900| 69 6e 65 09 4e 4f 5f 54 | 4f 47 47 4c 45 09 30 31 |ine.NO_T|OGGLE.01|
|00003910| 30 30 09 2f 2a 20 4f 70 | 74 69 6f 6e 20 63 61 6e |00./* Op|tion can|
|00003920| 6e 6f 74 20 62 65 20 74 | 6f 67 67 6c 65 64 20 77 |not be t|oggled w|
|00003930| 69 74 68 20 22 2d 22 20 | 63 6d 64 20 2a 2f 0a 0a |ith "-" |cmd */..|
|00003940| 2f 2a 0a 20 2a 20 56 61 | 72 69 61 62 6c 65 73 20 |/*. * Va|riables |
|00003950| 63 6f 6e 74 72 6f 6c 6c | 65 64 20 62 79 20 63 6f |controll|ed by co|
|00003960| 6d 6d 61 6e 64 20 6c 69 | 6e 65 20 6f 70 74 69 6f |mmand li|ne optio|
|00003970| 6e 73 2e 0a 20 2a 2f 0a | 70 75 62 6c 69 63 20 69 |ns.. */.|public i|
|00003980| 6e 74 20 70 5f 6e 62 75 | 66 73 2c 20 66 5f 6e 62 |nt p_nbu|fs, f_nb|
|00003990| 75 66 73 3b 09 2f 2a 20 | 4e 75 6d 62 65 72 20 6f |ufs;./* |Number o|
|000039a0| 66 20 62 75 66 66 65 72 | 73 2e 20 20 54 68 65 72 |f buffer|s. Ther|
|000039b0| 65 20 61 72 65 20 74 77 | 6f 20 76 61 6c 75 65 73 |e are tw|o values|
|000039c0| 2c 0a 09 09 09 09 20 20 | 20 6f 6e 65 20 75 73 65 |,..... | one use|
|000039d0| 64 20 66 6f 72 20 69 6e | 70 75 74 20 66 72 6f 6d |d for in|put from|
|000039e0| 20 61 20 70 69 70 65 20 | 61 6e 64 20 0a 09 09 09 | a pipe |and ....|
|000039f0| 09 20 20 20 74 68 65 20 | 6f 74 68 65 72 20 66 6f |. the |other fo|
|00003a00| 72 20 69 6e 70 75 74 20 | 66 72 6f 6d 20 61 20 66 |r input |from a f|
|00003a10| 69 6c 65 2e 20 2a 2f 0a | 70 75 62 6c 69 63 20 69 |ile. */.|public i|
|00003a20| 6e 74 20 63 6c 65 61 6e | 5f 64 61 74 61 3b 09 09 |nt clean|_data;..|
|00003a30| 2f 2a 20 43 61 6e 20 77 | 65 20 61 73 73 75 6d 65 |/* Can w|e assume|
|00003a40| 20 74 68 65 20 64 61 74 | 61 20 69 73 20 22 63 6c | the dat|a is "cl|
|00003a50| 65 61 6e 22 3f 20 0a 09 | 09 09 09 20 20 20 28 54 |ean"? ..|... (T|
|00003a60| 68 61 74 20 69 73 2c 20 | 66 72 65 65 20 6f 66 20 |hat is, |free of |
|00003a70| 6e 75 6c 6c 73 2c 20 65 | 74 63 29 20 2a 2f 0a 70 |nulls, e|tc) */.p|
|00003a80| 75 62 6c 69 63 20 69 6e | 74 20 71 75 69 65 74 3b |ublic in|t quiet;|
|00003a90| 09 09 2f 2a 20 53 68 6f | 75 6c 64 20 77 65 20 73 |../* Sho|uld we s|
|00003aa0| 75 70 70 72 65 73 73 20 | 74 68 65 20 61 75 64 69 |uppress |the audi|
|00003ab0| 62 6c 65 20 62 65 6c 6c | 3f 20 2a 2f 0a 70 75 62 |ble bell|? */.pub|
|00003ac0| 6c 69 63 20 69 6e 74 20 | 74 6f 70 5f 73 65 61 72 |lic int |top_sear|
|00003ad0| 63 68 3b 09 09 2f 2a 20 | 53 68 6f 75 6c 64 20 66 |ch;../* |Should f|
|00003ae0| 6f 72 77 61 72 64 20 73 | 65 61 72 63 68 65 73 20 |orward s|earches |
|00003af0| 73 74 61 72 74 20 61 74 | 20 74 68 65 20 74 6f 70 |start at| the top|
|00003b00| 20 0a 09 09 09 09 20 20 | 20 6f 66 20 74 68 65 20 | ..... | of the |
|00003b10| 73 63 72 65 65 6e 3f 20 | 28 61 6c 74 65 72 6e 61 |screen? |(alterna|
|00003b20| 74 69 76 65 20 69 73 20 | 62 6f 74 74 6f 6d 29 20 |tive is |bottom) |
|00003b30| 2a 2f 0a 70 75 62 6c 69 | 63 20 69 6e 74 20 74 6f |*/.publi|c int to|
|00003b40| 70 5f 73 63 72 6f 6c 6c | 3b 09 09 2f 2a 20 52 65 |p_scroll|;../* Re|
|00003b50| 70 61 69 6e 74 20 73 63 | 72 65 65 6e 20 66 72 6f |paint sc|reen fro|
|00003b60| 6d 20 74 6f 70 3f 0a 09 | 09 09 09 20 20 20 28 61 |m top?..|... (a|
|00003b70| 6c 74 65 72 6e 61 74 69 | 76 65 20 69 73 20 73 63 |lternati|ve is sc|
|00003b80| 72 6f 6c 6c 20 66 72 6f | 6d 20 62 6f 74 74 6f 6d |roll fro|m bottom|
|00003b90| 29 20 2a 2f 0a 70 75 62 | 6c 69 63 20 69 6e 74 20 |) */.pub|lic int |
|00003ba0| 70 72 5f 74 79 70 65 3b | 09 09 2f 2a 20 54 79 70 |pr_type;|../* Typ|
|00003bb0| 65 20 6f 66 20 70 72 6f | 6d 70 74 20 28 73 68 6f |e of pro|mpt (sho|
|00003bc0| 72 74 2c 20 6d 65 64 69 | 75 6d 2c 20 6c 6f 6e 67 |rt, medi|um, long|
|00003bd0| 29 20 2a 2f 0a 70 75 62 | 6c 69 63 20 69 6e 74 20 |) */.pub|lic int |
|00003be0| 62 73 5f 6d 6f 64 65 3b | 09 09 2f 2a 20 48 6f 77 |bs_mode;|../* How|
|00003bf0| 20 74 6f 20 70 72 6f 63 | 65 73 73 20 62 61 63 6b | to proc|ess back|
|00003c00| 73 70 61 63 65 73 20 2a | 2f 0a 70 75 62 6c 69 63 |spaces *|/.public|
|00003c10| 20 69 6e 74 20 6b 6e 6f | 77 5f 64 75 6d 62 3b 09 | int kno|w_dumb;.|
|00003c20| 09 2f 2a 20 44 6f 6e 27 | 74 20 63 6f 6d 70 6c 61 |./* Don'|t compla|
|00003c30| 69 6e 20 61 62 6f 75 74 | 20 64 75 6d 62 20 74 65 |in about| dumb te|
|00003c40| 72 6d 69 6e 61 6c 73 20 | 2a 2f 0a 70 75 62 6c 69 |rminals |*/.publi|
|00003c50| 63 20 69 6e 74 20 71 75 | 69 74 5f 61 74 5f 65 6f |c int qu|it_at_eo|
|00003c60| 66 3b 09 09 2f 2a 20 51 | 75 69 74 20 61 66 74 65 |f;../* Q|uit afte|
|00003c70| 72 20 68 69 74 74 69 6e | 67 20 65 6e 64 20 6f 66 |r hittin|g end of|
|00003c80| 20 66 69 6c 65 20 74 77 | 69 63 65 20 2a 2f 0a 70 | file tw|ice */.p|
|00003c90| 75 62 6c 69 63 20 69 6e | 74 20 73 71 75 65 65 7a |ublic in|t squeez|
|00003ca0| 65 3b 09 09 2f 2a 20 53 | 71 75 65 65 7a 65 20 6d |e;../* S|queeze m|
|00003cb0| 75 6c 74 69 70 6c 65 20 | 62 6c 61 6e 6b 20 6c 69 |ultiple |blank li|
|00003cc0| 6e 65 73 20 69 6e 74 6f | 20 6f 6e 65 20 2a 2f 0a |nes into| one */.|
|00003cd0| 70 75 62 6c 69 63 20 69 | 6e 74 20 74 61 62 73 74 |public i|nt tabst|
|00003ce0| 6f 70 3b 09 09 2f 2a 20 | 54 61 62 20 73 65 74 74 |op;../* |Tab sett|
|00003cf0| 69 6e 67 73 20 2a 2f 0a | 70 75 62 6c 69 63 20 69 |ings */.|public i|
|00003d00| 6e 74 20 62 61 63 6b 5f | 73 63 72 6f 6c 6c 3b 09 |nt back_|scroll;.|
|00003d10| 09 2f 2a 20 52 65 70 61 | 69 6e 74 20 73 63 72 65 |./* Repa|int scre|
|00003d20| 65 6e 20 6f 6e 20 62 61 | 63 6b 77 61 72 64 73 20 |en on ba|ckwards |
|00003d30| 6d 6f 76 65 6d 65 6e 74 | 20 2a 2f 0a 70 75 62 6c |movement| */.publ|
|00003d40| 69 63 20 69 6e 74 20 74 | 77 69 64 64 6c 65 3b 09 |ic int t|widdle;.|
|00003d50| 09 2f 2a 20 44 69 73 70 | 6c 61 79 20 22 7e 22 20 |./* Disp|lay "~" |
|00003d60| 66 6f 72 20 6c 69 6e 65 | 73 20 61 66 74 65 72 20 |for line|s after |
|00003d70| 45 4f 46 20 2a 2f 0a 0a | 65 78 74 65 72 6e 20 69 |EOF */..|extern i|
|00003d80| 6e 74 20 6e 62 75 66 73 | 3b 0a 65 78 74 65 72 6e |nt nbufs|;.extern|
|00003d90| 20 69 6e 74 20 73 63 5f | 77 69 6e 64 6f 77 3b 0a | int sc_|window;.|
|00003da0| 65 78 74 65 72 6e 20 63 | 68 61 72 20 2a 66 69 72 |extern c|har *fir|
|00003db0| 73 74 5f 63 6d 64 3b 0a | 65 78 74 65 72 6e 20 63 |st_cmd;.|extern c|
|00003dc0| 68 61 72 20 2a 65 76 65 | 72 79 5f 66 69 72 73 74 |har *eve|ry_first|
|00003dd0| 5f 63 6d 64 3b 0a 0a 23 | 64 65 66 69 6e 65 09 44 |_cmd;..#|define.D|
|00003de0| 45 46 5f 46 5f 4e 42 55 | 46 53 09 35 09 2f 2a 20 |EF_F_NBU|FS.5./* |
|00003df0| 44 65 66 61 75 6c 74 20 | 66 6f 72 20 66 5f 6e 62 |Default |for f_nb|
|00003e00| 75 66 73 20 2a 2f 0a 23 | 64 65 66 69 6e 65 09 44 |ufs */.#|define.D|
|00003e10| 45 46 5f 50 5f 4e 42 55 | 46 53 09 31 32 09 2f 2a |EF_P_NBU|FS.12./*|
|00003e20| 20 44 65 66 61 75 6c 74 | 20 66 6f 72 20 70 5f 6e | Default| for p_n|
|00003e30| 62 75 66 73 20 2a 2f 0a | 0a 73 74 61 74 69 63 20 |bufs */.|.static |
|00003e40| 73 74 72 75 63 74 20 6f | 70 74 69 6f 6e 0a 7b 0a |struct o|ption.{.|
|00003e50| 09 63 68 61 72 20 6f 6c | 65 74 74 65 72 3b 09 09 |.char ol|etter;..|
|00003e60| 2f 2a 20 54 68 65 20 63 | 6f 6e 74 72 6f 6c 6c 69 |/* The c|ontrolli|
|00003e70| 6e 67 20 6c 65 74 74 65 | 72 20 28 61 2d 7a 29 20 |ng lette|r (a-z) |
|00003e80| 2a 2f 0a 09 63 68 61 72 | 20 6f 74 79 70 65 3b 09 |*/..char| otype;.|
|00003e90| 09 2f 2a 20 54 79 70 65 | 20 6f 66 20 74 68 65 20 |./* Type| of the |
|00003ea0| 6f 70 74 69 6f 6e 20 2a | 2f 0a 09 69 6e 74 20 6f |option *|/..int o|
|00003eb0| 64 65 66 61 75 6c 74 3b | 09 09 2f 2a 20 44 65 66 |default;|../* Def|
|00003ec0| 61 75 6c 74 20 76 61 6c | 75 65 20 2a 2f 0a 09 69 |ault val|ue */..i|
|00003ed0| 6e 74 20 2a 6f 76 61 72 | 3b 09 09 2f 2a 20 50 6f |nt *ovar|;../* Po|
|00003ee0| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 61 73 73 |inter to| the ass|
|00003ef0| 6f 63 69 61 74 65 64 20 | 76 61 72 69 61 62 6c 65 |ociated |variable|
|00003f00| 20 2a 2f 0a 09 63 68 61 | 72 20 2a 6f 64 65 73 63 | */..cha|r *odesc|
|00003f10| 5b 33 5d 3b 09 09 2f 2a | 20 44 65 73 63 72 69 70 |[3];../*| Descrip|
|00003f20| 74 69 6f 6e 20 6f 66 20 | 65 61 63 68 20 76 61 6c |tion of |each val|
|00003f30| 75 65 20 2a 2f 0a 7d 20 | 6f 70 74 69 6f 6e 5b 5d |ue */.} |option[]|
|00003f40| 20 3d 0a 7b 0a 09 7b 20 | 27 63 27 2c 20 42 4f 4f | =.{..{ |'c', BOO|
|00003f50| 4c 2c 20 30 2c 20 26 63 | 6c 65 61 6e 5f 64 61 74 |L, 0, &c|lean_dat|
|00003f60| 61 2c 0a 09 09 7b 20 22 | 44 6f 6e 27 74 20 61 73 |a,...{ "|Don't as|
|00003f70| 73 75 6d 65 20 64 61 74 | 61 20 69 73 20 63 6c 65 |sume dat|a is cle|
|00003f80| 61 6e 22 2c 0a 09 09 20 | 20 22 41 73 73 75 6d 65 |an",... | "Assume|
|00003f90| 20 64 61 74 61 20 69 73 | 20 63 6c 65 61 6e 22 2c | data is| clean",|
|00003fa0| 0a 09 09 20 20 4e 55 4c | 4c 0a 09 09 7d 0a 09 7d |... NUL|L...}..}|
|00003fb0| 2c 0a 09 7b 20 27 64 27 | 2c 20 42 4f 4f 4c 7c 4e |,..{ 'd'|, BOOL|N|
|00003fc0| 4f 5f 54 4f 47 47 4c 45 | 2c 20 30 2c 20 26 6b 6e |O_TOGGLE|, 0, &kn|
|00003fd0| 6f 77 5f 64 75 6d 62 2c | 0a 09 09 7b 20 4e 55 4c |ow_dumb,|...{ NUL|
|00003fe0| 4c 2c 20 4e 55 4c 4c 2c | 20 4e 55 4c 4c 7d 0a 09 |L, NULL,| NULL}..|
|00003ff0| 7d 2c 0a 09 7b 20 27 65 | 27 2c 20 42 4f 4f 4c 2c |},..{ 'e|', BOOL,|
|00004000| 20 30 2c 20 26 71 75 69 | 74 5f 61 74 5f 65 6f 66 | 0, &qui|t_at_eof|
|00004010| 2c 0a 09 09 7b 20 22 44 | 6f 6e 27 74 20 71 75 69 |,...{ "D|on't qui|
|00004020| 74 20 61 74 20 65 6e 64 | 2d 6f 66 2d 66 69 6c 65 |t at end|-of-file|
|00004030| 22 2c 0a 09 09 20 20 22 | 51 75 69 74 20 61 74 20 |",... "|Quit at |
|00004040| 65 6e 64 2d 6f 66 2d 66 | 69 6c 65 22 2c 0a 09 09 |end-of-f|ile",...|
|00004050| 20 20 4e 55 4c 4c 0a 09 | 09 7d 0a 09 7d 2c 0a 09 | NULL..|.}..},..|
|00004060| 7b 20 27 68 27 2c 20 4e | 55 4d 42 45 52 2c 20 2d |{ 'h', N|UMBER, -|
|00004070| 31 2c 20 26 62 61 63 6b | 5f 73 63 72 6f 6c 6c 2c |1, &back|_scroll,|
|00004080| 0a 09 09 7b 20 22 42 61 | 63 6b 77 61 72 64 73 20 |...{ "Ba|ckwards |
|00004090| 73 63 72 6f 6c 6c 20 6c | 69 6d 69 74 20 69 73 20 |scroll l|imit is |
|000040a0| 25 64 20 6c 69 6e 65 73 | 22 2c 0a 09 09 20 20 4e |%d lines|",... N|
|000040b0| 55 4c 4c 2c 20 4e 55 4c | 4c 0a 09 09 7d 0a 09 7d |ULL, NUL|L...}..}|
|000040c0| 2c 0a 09 7b 20 27 70 27 | 2c 20 42 4f 4f 4c 2c 20 |,..{ 'p'|, BOOL, |
|000040d0| 30 2c 20 26 74 6f 70 5f | 73 63 72 6f 6c 6c 2c 0a |0, &top_|scroll,.|
|000040e0| 09 09 7b 20 22 52 65 70 | 61 69 6e 74 20 62 79 20 |..{ "Rep|aint by |
|000040f0| 73 63 72 6f 6c 6c 69 6e | 67 20 66 72 6f 6d 20 62 |scrollin|g from b|
|00004100| 6f 74 74 6f 6d 20 6f 66 | 20 73 63 72 65 65 6e 22 |ottom of| screen"|
|00004110| 2c 0a 09 09 20 20 22 52 | 65 70 61 69 6e 74 20 62 |,... "R|epaint b|
|00004120| 79 20 70 61 69 6e 74 69 | 6e 67 20 66 72 6f 6d 20 |y painti|ng from |
|00004130| 74 6f 70 20 6f 66 20 73 | 63 72 65 65 6e 22 2c 0a |top of s|creen",.|
|00004140| 09 09 20 20 4e 55 4c 4c | 0a 09 09 7d 0a 09 7d 2c |.. NULL|...}..},|
|00004150| 0a 09 7b 20 27 78 27 2c | 20 4e 55 4d 42 45 52 2c |..{ 'x',| NUMBER,|
|00004160| 20 38 2c 20 26 74 61 62 | 73 74 6f 70 2c 0a 09 09 | 8, &tab|stop,...|
|00004170| 7b 20 22 54 61 62 20 73 | 74 6f 70 73 20 65 76 65 |{ "Tab s|tops eve|
|00004180| 72 79 20 25 64 20 73 70 | 61 63 65 73 22 2c 20 0a |ry %d sp|aces", .|
|00004190| 09 09 20 20 4e 55 4c 4c | 2c 20 4e 55 4c 4c 20 0a |.. NULL|, NULL .|
|000041a0| 09 09 7d 0a 09 7d 2c 0a | 09 7b 20 27 73 27 2c 20 |..}..},.|.{ 's', |
|000041b0| 42 4f 4f 4c 2c 20 30 2c | 20 26 73 71 75 65 65 7a |BOOL, 0,| &squeez|
|000041c0| 65 2c 0a 09 09 7b 20 22 | 44 6f 6e 27 74 20 73 71 |e,...{ "|Don't sq|
|000041d0| 75 65 65 7a 65 20 6d 75 | 6c 74 69 70 6c 65 20 62 |ueeze mu|ltiple b|
|000041e0| 6c 61 6e 6b 20 6c 69 6e | 65 73 22 2c 0a 09 09 20 |lank lin|es",... |
|000041f0| 20 22 53 71 75 65 65 7a | 65 20 6d 75 6c 74 69 70 | "Squeez|e multip|
|00004200| 6c 65 20 62 6c 61 6e 6b | 20 6c 69 6e 65 73 22 2c |le blank| lines",|
|00004210| 0a 09 09 20 20 4e 55 4c | 4c 0a 09 09 7d 0a 09 7d |... NUL|L...}..}|
|00004220| 2c 0a 09 7b 20 27 74 27 | 2c 20 42 4f 4f 4c 2c 20 |,..{ 't'|, BOOL, |
|00004230| 31 2c 20 26 74 6f 70 5f | 73 65 61 72 63 68 2c 0a |1, &top_|search,.|
|00004240| 09 09 7b 20 22 46 6f 72 | 77 61 72 64 20 73 65 61 |..{ "For|ward sea|
|00004250| 72 63 68 20 73 74 61 72 | 74 73 20 66 72 6f 6d 20 |rch star|ts from |
|00004260| 62 6f 74 74 6f 6d 20 6f | 66 20 73 63 72 65 65 6e |bottom o|f screen|
|00004270| 22 2c 0a 09 09 20 20 22 | 46 6f 72 77 61 72 64 20 |",... "|Forward |
|00004280| 73 65 61 72 63 68 20 73 | 74 61 72 74 73 20 66 72 |search s|tarts fr|
|00004290| 6f 6d 20 74 6f 70 20 6f | 66 20 73 63 72 65 65 6e |om top o|f screen|
|000042a0| 22 2c 0a 09 09 20 20 4e | 55 4c 4c 0a 09 09 7d 0a |",... N|ULL...}.|
|000042b0| 09 7d 2c 0a 09 7b 20 27 | 77 27 2c 20 42 4f 4f 4c |.},..{ '|w', BOOL|
|000042c0| 2c 20 31 2c 20 26 74 77 | 69 64 64 6c 65 2c 0a 09 |, 1, &tw|iddle,..|
|000042d0| 09 7b 20 22 44 69 73 70 | 6c 61 79 20 6e 6f 74 68 |.{ "Disp|lay noth|
|000042e0| 69 6e 67 20 66 6f 72 20 | 6c 69 6e 65 73 20 61 66 |ing for |lines af|
|000042f0| 74 65 72 20 65 6e 64 2d | 6f 66 2d 66 69 6c 65 22 |ter end-|of-file"|
|00004300| 2c 0a 09 09 20 20 22 44 | 69 73 70 6c 61 79 20 7e |,... "D|isplay ~|
|00004310| 20 66 6f 72 20 6c 69 6e | 65 73 20 61 66 74 65 72 | for lin|es after|
|00004320| 20 65 6e 64 2d 6f 66 2d | 66 69 6c 65 22 2c 0a 09 | end-of-|file",..|
|00004330| 09 20 20 4e 55 4c 4c 0a | 09 09 7d 0a 09 7d 2c 0a |. NULL.|..}..},.|
|00004340| 09 7b 20 27 6d 27 2c 20 | 54 52 49 50 4c 45 2c 20 |.{ 'm', |TRIPLE, |
|00004350| 30 2c 20 26 70 72 5f 74 | 79 70 65 2c 0a 09 09 7b |0, &pr_t|ype,...{|
|00004360| 20 22 50 72 6f 6d 70 74 | 20 77 69 74 68 20 61 20 | "Prompt| with a |
|00004370| 63 6f 6c 6f 6e 22 2c 0a | 09 09 20 20 22 50 72 6f |colon",.|.. "Pro|
|00004380| 6d 70 74 20 77 69 74 68 | 20 61 20 6d 65 73 73 61 |mpt with| a messa|
|00004390| 67 65 22 2c 0a 09 09 20 | 20 22 50 72 6f 6d 70 74 |ge",... | "Prompt|
|000043a0| 20 77 69 74 68 20 61 20 | 76 65 72 62 6f 73 65 20 | with a |verbose |
|000043b0| 6d 65 73 73 61 67 65 22 | 0a 09 09 7d 0a 09 7d 2c |message"|...}..},|
|000043c0| 0a 09 7b 20 27 71 27 2c | 20 54 52 49 50 4c 45 2c |..{ 'q',| TRIPLE,|
|000043d0| 20 30 2c 20 26 71 75 69 | 65 74 2c 0a 09 09 7b 20 | 0, &qui|et,...{ |
|000043e0| 22 52 69 6e 67 20 74 68 | 65 20 62 65 6c 6c 20 66 |"Ring th|e bell f|
|000043f0| 6f 72 20 65 72 72 6f 72 | 73 20 41 4e 44 20 61 74 |or error|s AND at|
|00004400| 20 65 6f 66 2f 62 6f 66 | 22 2c 0a 09 09 20 20 22 | eof/bof|",... "|
|00004410| 52 69 6e 67 20 74 68 65 | 20 62 65 6c 6c 20 66 6f |Ring the| bell fo|
|00004420| 72 20 65 72 72 6f 72 73 | 20 62 75 74 20 6e 6f 74 |r errors| but not|
|00004430| 20 61 74 20 65 6f 66 2f | 62 6f 66 22 2c 0a 09 09 | at eof/|bof",...|
|00004440| 20 20 22 4e 65 76 65 72 | 20 72 69 6e 67 20 74 68 | "Never| ring th|
|00004450| 65 20 62 65 6c 6c 22 0a | 09 09 7d 0a 09 7d 2c 0a |e bell".|..}..},.|
|00004460| 09 7b 20 27 75 27 2c 20 | 54 52 49 50 4c 45 2c 20 |.{ 'u', |TRIPLE, |
|00004470| 30 2c 20 26 62 73 5f 6d | 6f 64 65 2c 0a 09 09 7b |0, &bs_m|ode,...{|
|00004480| 20 22 55 6e 64 65 72 6c | 69 6e 65 64 20 74 65 78 | "Underl|ined tex|
|00004490| 74 20 64 69 73 70 6c 61 | 79 65 64 20 69 6e 20 75 |t displa|yed in u|
|000044a0| 6e 64 65 72 6c 69 6e 65 | 20 6d 6f 64 65 22 2c 0a |nderline| mode",.|
|000044b0| 09 09 20 20 22 41 6c 6c | 20 62 61 63 6b 73 70 61 |.. "All| backspa|
|000044c0| 63 65 73 20 63 61 75 73 | 65 20 6f 76 65 72 73 74 |ces caus|e overst|
|000044d0| 72 69 6b 65 22 2c 0a 09 | 09 20 20 22 42 61 63 6b |rike",..|. "Back|
|000044e0| 73 70 61 63 65 73 20 70 | 72 69 6e 74 20 61 73 20 |spaces p|rint as |
|000044f0| 5e 48 22 0a 09 09 7d 0a | 09 7d 2c 0a 09 7b 20 27 |^H"...}.|.},..{ '|
|00004500| 7a 27 2c 20 4e 55 4d 42 | 45 52 2c 20 32 34 2c 20 |z', NUMB|ER, 24, |
|00004510| 26 73 63 5f 77 69 6e 64 | 6f 77 2c 0a 09 09 7b 20 |&sc_wind|ow,...{ |
|00004520| 22 53 63 72 6f 6c 6c 20 | 77 69 6e 64 6f 77 20 73 |"Scroll |window s|
|00004530| 69 7a 65 20 69 73 20 25 | 64 20 6c 69 6e 65 73 22 |ize is %|d lines"|
|00004540| 2c 0a 09 09 20 20 4e 55 | 4c 4c 2c 20 4e 55 4c 4c |,... NU|LL, NULL|
|00004550| 0a 09 09 7d 0a 09 7d 2c | 0a 09 7b 20 27 5c 30 27 |...}..},|..{ '\0'|
|00004560| 20 7d 0a 7d 3b 0a 0a 70 | 75 62 6c 69 63 20 63 68 | }.};..p|ublic ch|
|00004570| 61 72 20 61 6c 6c 5f 6f | 70 74 69 6f 6e 73 5b 36 |ar all_o|ptions[6|
|00004580| 34 5d 3b 09 2f 2a 20 4c | 69 73 74 20 6f 66 20 61 |4];./* L|ist of a|
|00004590| 6c 6c 20 76 61 6c 69 64 | 20 6f 70 74 69 6f 6e 73 |ll valid| options|
|000045a0| 20 2a 2f 0a 0a 2f 2a 0a | 20 2a 20 49 6e 69 74 69 | */../*.| * Initi|
|000045b0| 61 6c 69 7a 65 20 65 61 | 63 68 20 6f 70 74 69 6f |alize ea|ch optio|
|000045c0| 6e 20 74 6f 20 69 74 73 | 20 64 65 66 61 75 6c 74 |n to its| default|
|000045d0| 20 76 61 6c 75 65 2e 0a | 20 2a 2f 0a 09 70 75 62 | value..| */..pub|
|000045e0| 6c 69 63 20 76 6f 69 64 | 0a 69 6e 69 74 5f 6f 70 |lic void|.init_op|
|000045f0| 74 69 6f 6e 28 29 0a 7b | 0a 09 72 65 67 69 73 74 |tion().{|..regist|
|00004600| 65 72 20 73 74 72 75 63 | 74 20 6f 70 74 69 6f 6e |er struc|t option|
|00004610| 20 2a 6f 3b 0a 09 72 65 | 67 69 73 74 65 72 20 63 | *o;..re|gister c|
|00004620| 68 61 72 20 2a 70 3b 0a | 0a 09 2f 2a 0a 09 20 2a |har *p;.|../*.. *|
|00004630| 20 46 69 72 73 74 20 64 | 6f 20 73 70 65 63 69 61 | First d|o specia|
|00004640| 6c 20 63 61 73 65 73 2c | 20 6e 6f 74 20 69 6e 20 |l cases,| not in |
|00004650| 6f 70 74 69 6f 6e 20 74 | 61 62 6c 65 2e 0a 09 20 |option t|able... |
|00004660| 2a 2f 0a 09 66 69 72 73 | 74 5f 63 6d 64 20 3d 20 |*/..firs|t_cmd = |
|00004670| 65 76 65 72 79 5f 66 69 | 72 73 74 5f 63 6d 64 20 |every_fi|rst_cmd |
|00004680| 3d 20 4e 55 4c 4c 3b 0a | 09 66 5f 6e 62 75 66 73 |= NULL;.|.f_nbufs|
|00004690| 20 3d 20 44 45 46 5f 46 | 5f 4e 42 55 46 53 3b 09 | = DEF_F|_NBUFS;.|
|000046a0| 09 2f 2a 20 2d 62 66 20 | 2a 2f 0a 09 70 5f 6e 62 |./* -bf |*/..p_nb|
|000046b0| 75 66 73 20 3d 20 44 45 | 46 5f 50 5f 4e 42 55 46 |ufs = DE|F_P_NBUF|
|000046c0| 53 3b 09 09 2f 2a 20 2d | 62 70 20 2a 2f 0a 0a 09 |S;../* -|bp */...|
|000046d0| 70 20 3d 20 61 6c 6c 5f | 6f 70 74 69 6f 6e 73 3b |p = all_|options;|
|000046e0| 0a 09 2a 70 2b 2b 20 3d | 20 27 62 27 3b 0a 0a 09 |..*p++ =| 'b';...|
|000046f0| 66 6f 72 20 28 6f 20 3d | 20 6f 70 74 69 6f 6e 3b |for (o =| option;|
|00004700| 20 20 6f 2d 3e 6f 6c 65 | 74 74 65 72 20 21 3d 20 | o->ole|tter != |
|00004710| 27 5c 30 27 3b 20 20 6f | 2b 2b 29 0a 09 7b 0a 09 |'\0'; o|++)..{..|
|00004720| 09 2f 2a 0a 09 09 20 2a | 20 53 65 74 20 65 61 63 |./*... *| Set eac|
|00004730| 68 20 76 61 72 69 61 62 | 6c 65 20 74 6f 20 69 74 |h variab|le to it|
|00004740| 73 20 64 65 66 61 75 6c | 74 2e 0a 09 09 20 2a 20 |s defaul|t.... * |
|00004750| 41 6c 73 6f 20 6d 61 6b | 65 20 61 20 6c 69 73 74 |Also mak|e a list|
|00004760| 20 6f 66 20 61 6c 6c 20 | 6f 70 74 69 6f 6e 73 2c | of all |options,|
|00004770| 20 69 6e 20 22 61 6c 6c | 5f 6f 70 74 69 6f 6e 73 | in "all|_options|
|00004780| 22 2e 0a 09 09 20 2a 2f | 0a 09 09 2a 28 6f 2d 3e |".... */|...*(o->|
|00004790| 6f 76 61 72 29 20 3d 20 | 6f 2d 3e 6f 64 65 66 61 |ovar) = |o->odefa|
|000047a0| 75 6c 74 3b 0a 09 09 2a | 70 2b 2b 20 3d 20 6f 2d |ult;...*|p++ = o-|
|000047b0| 3e 6f 6c 65 74 74 65 72 | 3b 0a 09 09 69 66 20 28 |>oletter|;...if (|
|000047c0| 6f 2d 3e 6f 74 79 70 65 | 20 26 20 54 52 49 50 4c |o->otype| & TRIPL|
|000047d0| 45 29 0a 09 09 09 2a 70 | 2b 2b 20 3d 20 74 6f 75 |E)....*p|++ = tou|
|000047e0| 70 70 65 72 28 6f 2d 3e | 6f 6c 65 74 74 65 72 29 |pper(o->|oletter)|
|000047f0| 3b 0a 09 7d 0a 09 2a 70 | 20 3d 20 27 5c 30 27 3b |;..}..*p| = '\0';|
|00004800| 0a 7d 0a 0a 2f 2a 0a 20 | 2a 20 54 6f 67 67 6c 65 |.}../*. |* Toggle|
|00004810| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 66 6c | command| line fl|
|00004820| 61 67 73 20 66 72 6f 6d | 20 77 69 74 68 69 6e 20 |ags from| within |
|00004830| 74 68 65 20 70 72 6f 67 | 72 61 6d 2e 0a 20 2a 20 |the prog|ram.. * |
|00004840| 55 73 65 64 20 62 79 20 | 74 68 65 20 22 2d 22 20 |Used by |the "-" |
|00004850| 63 6f 6d 6d 61 6e 64 2e | 0a 20 2a 2f 0a 09 70 75 |command.|. */..pu|
|00004860| 62 6c 69 63 20 76 6f 69 | 64 0a 74 6f 67 67 6c 65 |blic voi|d.toggle|
|00004870| 5f 6f 70 74 69 6f 6e 28 | 63 29 0a 09 69 6e 74 20 |_option(|c)..int |
|00004880| 63 3b 0a 7b 0a 09 72 65 | 67 69 73 74 65 72 20 73 |c;.{..re|gister s|
|00004890| 74 72 75 63 74 20 6f 70 | 74 69 6f 6e 20 2a 6f 3b |truct op|tion *o;|
|000048a0| 0a 09 63 68 61 72 20 6d | 65 73 73 61 67 65 5b 31 |..char m|essage[1|
|000048b0| 30 30 5d 3b 0a 09 63 68 | 61 72 20 62 75 66 5b 35 |00];..ch|ar buf[5|
|000048c0| 5d 3b 0a 0a 09 2f 2a 0a | 09 20 2a 20 46 69 72 73 |];.../*.|. * Firs|
|000048d0| 74 20 63 68 65 63 6b 20 | 66 6f 72 20 73 70 65 63 |t check |for spec|
|000048e0| 69 61 6c 20 63 61 73 65 | 73 20 6e 6f 74 20 68 61 |ial case|s not ha|
|000048f0| 6e 64 6c 65 64 20 62 79 | 20 74 68 65 20 6f 70 74 |ndled by| the opt|
|00004900| 69 6f 6e 20 74 61 62 6c | 65 2e 0a 09 20 2a 2f 0a |ion tabl|e... */.|
|00004910| 09 73 77 69 74 63 68 20 | 28 63 29 0a 09 7b 0a 09 |.switch |(c)..{..|
|00004920| 63 61 73 65 20 27 62 27 | 3a 0a 09 09 73 70 72 69 |case 'b'|:...spri|
|00004930| 6e 74 66 28 6d 65 73 73 | 61 67 65 2c 20 22 25 64 |ntf(mess|age, "%d|
|00004940| 20 62 75 66 66 65 72 73 | 22 2c 20 6e 62 75 66 73 | buffers|", nbufs|
|00004950| 29 3b 0a 09 09 65 72 72 | 6f 72 28 6d 65 73 73 61 |);...err|or(messa|
|00004960| 67 65 29 3b 0a 09 09 72 | 65 74 75 72 6e 3b 0a 09 |ge);...r|eturn;..|
|00004970| 7d 0a 0a 0a 09 66 6f 72 | 20 28 6f 20 3d 20 6f 70 |}....for| (o = op|
|00004980| 74 69 6f 6e 3b 20 20 6f | 2d 3e 6f 6c 65 74 74 65 |tion; o|->olette|
|00004990| 72 20 21 3d 20 27 5c 30 | 27 3b 20 20 6f 2b 2b 29 |r != '\0|'; o++)|
|000049a0| 0a 09 7b 0a 09 09 69 66 | 20 28 28 6f 2d 3e 6f 74 |..{...if| ((o->ot|
|000049b0| 79 70 65 20 26 20 42 4f | 4f 4c 29 20 26 26 20 28 |ype & BO|OL) && (|
|000049c0| 6f 2d 3e 6f 6c 65 74 74 | 65 72 20 3d 3d 20 63 29 |o->olett|er == c)|
|000049d0| 20 26 26 0a 09 09 09 28 | 6f 2d 3e 6f 74 79 70 65 | &&....(|o->otype|
|000049e0| 20 26 20 4e 4f 5f 54 4f | 47 47 4c 45 29 20 3d 3d | & NO_TO|GGLE) ==|
|000049f0| 20 30 29 0a 09 09 7b 0a | 09 09 09 2f 2a 0a 09 09 | 0)...{.|.../*...|
|00004a00| 09 20 2a 20 42 6f 6f 6c | 65 61 6e 20 6f 70 74 69 |. * Bool|ean opti|
|00004a10| 6f 6e 3a 20 0a 09 09 09 | 20 2a 20 6a 75 73 74 20 |on: ....| * just |
|00004a20| 74 6f 67 67 6c 65 20 69 | 74 2e 0a 09 09 09 20 2a |toggle i|t..... *|
|00004a30| 2f 0a 09 09 09 2a 28 6f | 2d 3e 6f 76 61 72 29 20 |/....*(o|->ovar) |
|00004a40| 3d 20 21 20 2a 28 6f 2d | 3e 6f 76 61 72 29 3b 0a |= ! *(o-|>ovar);.|
|00004a50| 09 09 09 65 72 72 6f 72 | 28 6f 2d 3e 6f 64 65 73 |...error|(o->odes|
|00004a60| 63 5b 2a 28 6f 2d 3e 6f | 76 61 72 29 5d 29 3b 0a |c[*(o->o|var)]);.|
|00004a70| 09 09 09 72 65 74 75 72 | 6e 3b 0a 09 09 7d 20 65 |...retur|n;...} e|
|00004a80| 6c 73 65 20 69 66 20 28 | 28 6f 2d 3e 6f 74 79 70 |lse if (|(o->otyp|
|00004a90| 65 20 26 20 54 52 49 50 | 4c 45 29 20 26 26 20 28 |e & TRIP|LE) && (|
|00004aa0| 6f 2d 3e 6f 6c 65 74 74 | 65 72 20 3d 3d 20 63 29 |o->olett|er == c)|
|00004ab0| 20 26 26 0a 09 09 09 28 | 6f 2d 3e 6f 74 79 70 65 | &&....(|o->otype|
|00004ac0| 20 26 20 4e 4f 5f 54 4f | 47 47 4c 45 29 20 3d 3d | & NO_TO|GGLE) ==|
|00004ad0| 20 30 29 0a 09 09 7b 0a | 09 09 09 2f 2a 0a 09 09 | 0)...{.|.../*...|
|00004ae0| 09 20 2a 20 54 72 69 70 | 6c 65 2d 76 61 6c 75 65 |. * Trip|le-value|
|00004af0| 64 20 6f 70 74 69 6f 6e | 20 77 69 74 68 20 6c 6f |d option| with lo|
|00004b00| 77 65 72 20 63 61 73 65 | 20 6c 65 74 74 65 72 3a |wer case| letter:|
|00004b10| 0a 09 09 09 20 2a 20 6d | 61 6b 65 20 69 74 20 31 |.... * m|ake it 1|
|00004b20| 20 75 6e 6c 65 73 73 20 | 61 6c 72 65 61 64 79 20 | unless |already |
|00004b30| 31 2c 20 74 68 65 6e 20 | 6d 61 6b 65 20 69 74 20 |1, then |make it |
|00004b40| 30 2e 0a 09 09 09 20 2a | 2f 0a 09 09 09 2a 28 6f |0..... *|/....*(o|
|00004b50| 2d 3e 6f 76 61 72 29 20 | 3d 20 28 2a 28 6f 2d 3e |->ovar) |= (*(o->|
|00004b60| 6f 76 61 72 29 20 3d 3d | 20 31 29 20 3f 20 30 20 |ovar) ==| 1) ? 0 |
|00004b70| 3a 20 31 3b 0a 09 09 09 | 65 72 72 6f 72 28 6f 2d |: 1;....|error(o-|
|00004b80| 3e 6f 64 65 73 63 5b 2a | 28 6f 2d 3e 6f 76 61 72 |>odesc[*|(o->ovar|
|00004b90| 29 5d 29 3b 0a 09 09 09 | 72 65 74 75 72 6e 3b 0a |)]);....|return;.|
|00004ba0| 09 09 7d 20 65 6c 73 65 | 20 69 66 20 28 28 6f 2d |..} else| if ((o-|
|00004bb0| 3e 6f 74 79 70 65 20 26 | 20 54 52 49 50 4c 45 29 |>otype &| TRIPLE)|
|00004bc0| 20 26 26 20 28 74 6f 75 | 70 70 65 72 28 6f 2d 3e | && (tou|pper(o->|
|00004bd0| 6f 6c 65 74 74 65 72 29 | 20 3d 3d 20 63 29 20 26 |oletter)| == c) &|
|00004be0| 26 0a 09 09 09 28 6f 2d | 3e 6f 74 79 70 65 20 26 |&....(o-|>otype &|
|00004bf0| 20 4e 4f 5f 54 4f 47 47 | 4c 45 29 20 3d 3d 20 30 | NO_TOGG|LE) == 0|
|00004c00| 29 0a 09 09 7b 0a 09 09 | 09 2f 2a 0a 09 09 09 20 |)...{...|./*.... |
|00004c10| 2a 20 54 72 69 70 6c 65 | 2d 76 61 6c 75 65 64 20 |* Triple|-valued |
|00004c20| 6f 70 74 69 6f 6e 20 77 | 69 74 68 20 75 70 70 65 |option w|ith uppe|
|00004c30| 72 20 63 61 73 65 20 6c | 65 74 74 65 72 3a 0a 09 |r case l|etter:..|
|00004c40| 09 09 20 2a 20 6d 61 6b | 65 20 69 74 20 32 20 75 |.. * mak|e it 2 u|
|00004c50| 6e 6c 65 73 73 20 61 6c | 72 65 61 64 79 20 32 2c |nless al|ready 2,|
|00004c60| 20 74 68 65 6e 20 6d 61 | 6b 65 20 69 74 20 30 2e | then ma|ke it 0.|
|00004c70| 0a 09 09 09 20 2a 2f 0a | 09 09 09 2a 28 6f 2d 3e |.... */.|...*(o->|
|00004c80| 6f 76 61 72 29 20 3d 20 | 28 2a 28 6f 2d 3e 6f 76 |ovar) = |(*(o->ov|
|00004c90| 61 72 29 20 3d 3d 20 32 | 29 20 3f 20 30 20 3a 20 |ar) == 2|) ? 0 : |
|00004ca0| 32 3b 0a 09 09 09 65 72 | 72 6f 72 28 6f 2d 3e 6f |2;....er|ror(o->o|
|00004cb0| 64 65 73 63 5b 2a 28 6f | 2d 3e 6f 76 61 72 29 5d |desc[*(o|->ovar)]|
|00004cc0| 29 3b 0a 09 09 09 72 65 | 74 75 72 6e 3b 0a 09 09 |);....re|turn;...|
|00004cd0| 7d 20 65 6c 73 65 20 69 | 66 20 28 28 6f 2d 3e 6f |} else i|f ((o->o|
|00004ce0| 74 79 70 65 20 26 20 4e | 55 4d 42 45 52 29 20 26 |type & N|UMBER) &|
|00004cf0| 26 20 28 6f 2d 3e 6f 6c | 65 74 74 65 72 20 3d 3d |& (o->ol|etter ==|
|00004d00| 20 63 29 20 26 26 0a 09 | 09 09 28 6f 2d 3e 6f 74 | c) &&..|..(o->ot|
|00004d10| 79 70 65 20 26 20 4e 4f | 5f 54 4f 47 47 4c 45 29 |ype & NO|_TOGGLE)|
|00004d20| 20 3d 3d 20 30 29 0a 09 | 09 7b 0a 09 09 09 73 70 | == 0)..|.{....sp|
|00004d30| 72 69 6e 74 66 28 6d 65 | 73 73 61 67 65 2c 20 6f |rintf(me|ssage, o|
|00004d40| 2d 3e 6f 64 65 73 63 5b | 30 5d 2c 20 2a 28 6f 2d |->odesc[|0], *(o-|
|00004d50| 3e 6f 76 61 72 29 29 3b | 0a 09 09 09 65 72 72 6f |>ovar));|....erro|
|00004d60| 72 28 6d 65 73 73 61 67 | 65 29 3b 0a 09 09 09 72 |r(messag|e);....r|
|00004d70| 65 74 75 72 6e 3b 0a 09 | 09 7d 0a 09 7d 0a 0a 09 |eturn;..|.}..}...|
|00004d80| 69 66 20 28 63 6f 6e 74 | 72 6f 6c 5f 63 68 61 72 |if (cont|rol_char|
|00004d90| 28 63 29 29 0a 09 09 73 | 70 72 69 6e 74 66 28 62 |(c))...s|printf(b|
|00004da0| 75 66 2c 20 22 5e 25 63 | 22 2c 20 63 61 72 61 74 |uf, "^%c|", carat|
|00004db0| 5f 63 68 61 72 28 63 29 | 29 3b 0a 09 65 6c 73 65 |_char(c)|);..else|
|00004dc0| 0a 09 09 73 70 72 69 6e | 74 66 28 62 75 66 2c 20 |...sprin|tf(buf, |
|00004dd0| 22 25 63 22 2c 20 63 29 | 3b 0a 09 73 70 72 69 6e |"%c", c)|;..sprin|
|00004de0| 74 66 28 6d 65 73 73 61 | 67 65 2c 20 22 5c 22 2d |tf(messa|ge, "\"-|
|00004df0| 25 73 5c 22 3a 20 6e 6f | 20 73 75 63 68 20 66 6c |%s\": no| such fl|
|00004e00| 61 67 2e 20 20 55 73 65 | 20 6f 6e 65 20 6f 66 20 |ag. Use| one of |
|00004e10| 5c 22 25 73 5c 22 22 2c | 20 0a 09 09 62 75 66 2c |\"%s\"",| ...buf,|
|00004e20| 20 61 6c 6c 5f 6f 70 74 | 69 6f 6e 73 29 3b 0a 09 | all_opt|ions);..|
|00004e30| 65 72 72 6f 72 28 6d 65 | 73 73 61 67 65 29 3b 0a |error(me|ssage);.|
|00004e40| 7d 0a 0a 2f 2a 0a 20 2a | 20 53 63 61 6e 20 61 6e |}../*. *| Scan an|
|00004e50| 20 61 72 67 75 6d 65 6e | 74 20 28 65 69 74 68 65 | argumen|t (eithe|
|00004e60| 72 20 66 72 6f 6d 20 63 | 6f 6d 6d 61 6e 64 20 6c |r from c|ommand l|
|00004e70| 69 6e 65 20 6f 72 20 66 | 72 6f 6d 20 4c 45 53 53 |ine or f|rom LESS|
|00004e80| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 0a 20 2a | environ|ment . *|
|00004e90| 20 76 61 72 69 61 62 6c | 65 29 20 61 6e 64 20 70 | variabl|e) and p|
|00004ea0| 72 6f 63 65 73 73 20 69 | 74 2e 0a 20 2a 2f 0a 09 |rocess i|t.. */..|
|00004eb0| 70 75 62 6c 69 63 20 76 | 6f 69 64 0a 73 63 61 6e |public v|oid.scan|
|00004ec0| 5f 6f 70 74 69 6f 6e 28 | 73 29 0a 09 63 68 61 72 |_option(|s)..char|
|00004ed0| 20 2a 73 3b 0a 7b 0a 09 | 72 65 67 69 73 74 65 72 | *s;.{..|register|
|00004ee0| 20 73 74 72 75 63 74 20 | 6f 70 74 69 6f 6e 20 2a | struct |option *|
|00004ef0| 6f 3b 0a 09 72 65 67 69 | 73 74 65 72 20 69 6e 74 |o;..regi|ster int|
|00004f00| 20 63 3b 0a 0a 09 69 66 | 20 28 73 20 3d 3d 20 4e | c;...if| (s == N|
|00004f10| 55 4c 4c 29 0a 09 09 72 | 65 74 75 72 6e 3b 0a 0a |ULL)...r|eturn;..|
|00004f20| 20 20 20 20 6e 65 78 74 | 3a 0a 09 69 66 20 28 2a | next|:..if (*|
|00004f30| 73 20 3d 3d 20 27 5c 30 | 27 29 0a 09 09 72 65 74 |s == '\0|')...ret|
|00004f40| 75 72 6e 3b 0a 09 73 77 | 69 74 63 68 20 28 63 20 |urn;..sw|itch (c |
|00004f50| 3d 20 2a 73 2b 2b 29 0a | 09 7b 0a 09 63 61 73 65 |= *s++).|.{..case|
|00004f60| 20 27 2d 27 3a 0a 09 63 | 61 73 65 20 27 20 27 3a | '-':..c|ase ' ':|
|00004f70| 0a 09 63 61 73 65 20 27 | 5c 74 27 3a 0a 09 09 67 |..case '|\t':...g|
|00004f80| 6f 74 6f 20 6e 65 78 74 | 3b 0a 09 63 61 73 65 20 |oto next|;..case |
|00004f90| 27 2b 27 3a 0a 09 09 69 | 66 20 28 2a 73 20 3d 3d |'+':...i|f (*s ==|
|00004fa0| 20 27 2b 27 29 0a 09 09 | 09 65 76 65 72 79 5f 66 | '+')...|.every_f|
|00004fb0| 69 72 73 74 5f 63 6d 64 | 20 3d 20 2b 2b 73 3b 0a |irst_cmd| = ++s;.|
|00004fc0| 09 09 66 69 72 73 74 5f | 63 6d 64 20 3d 20 73 3b |..first_|cmd = s;|
|00004fd0| 0a 09 09 72 65 74 75 72 | 6e 3b 0a 09 63 61 73 65 |...retur|n;..case|
|00004fe0| 20 27 62 27 3a 0a 09 09 | 73 77 69 74 63 68 20 28 | 'b':...|switch (|
|00004ff0| 2a 73 29 0a 09 09 7b 0a | 09 09 63 61 73 65 20 27 |*s)...{.|..case '|
|00005000| 66 27 3a 0a 09 09 09 73 | 2b 2b 3b 0a 09 09 09 66 |f':....s|++;....f|
|00005010| 5f 6e 62 75 66 73 20 3d | 20 67 65 74 6e 75 6d 28 |_nbufs =| getnum(|
|00005020| 26 73 2c 20 27 62 27 29 | 3b 0a 09 09 09 62 72 65 |&s, 'b')|;....bre|
|00005030| 61 6b 3b 0a 09 09 63 61 | 73 65 20 27 70 27 3a 0a |ak;...ca|se 'p':.|
|00005040| 09 09 09 73 2b 2b 3b 0a | 09 09 09 70 5f 6e 62 75 |...s++;.|...p_nbu|
|00005050| 66 73 20 3d 20 67 65 74 | 6e 75 6d 28 26 73 2c 20 |fs = get|num(&s, |
|00005060| 27 62 27 29 3b 0a 09 09 | 09 62 72 65 61 6b 3b 0a |'b');...|.break;.|
|00005070| 09 09 64 65 66 61 75 6c | 74 3a 0a 09 09 09 66 5f |..defaul|t:....f_|
|00005080| 6e 62 75 66 73 20 3d 20 | 70 5f 6e 62 75 66 73 20 |nbufs = |p_nbufs |
|00005090| 3d 20 67 65 74 6e 75 6d | 28 26 73 2c 20 27 62 27 |= getnum|(&s, 'b'|
|000050a0| 29 3b 0a 09 09 09 62 72 | 65 61 6b 3b 0a 09 09 7d |);....br|eak;...}|
|000050b0| 0a 09 09 67 6f 74 6f 20 | 6e 65 78 74 3b 0a 09 63 |...goto |next;..c|
|000050c0| 61 73 65 20 27 30 27 3a | 20 20 63 61 73 65 20 27 |ase '0':| case '|
|000050d0| 31 27 3a 20 20 63 61 73 | 65 20 27 32 27 3a 20 20 |1': cas|e '2': |
|000050e0| 63 61 73 65 20 27 33 27 | 3a 20 20 63 61 73 65 20 |case '3'|: case |
|000050f0| 27 34 27 3a 0a 09 63 61 | 73 65 20 27 35 27 3a 20 |'4':..ca|se '5': |
|00005100| 20 63 61 73 65 20 27 36 | 27 3a 20 20 63 61 73 65 | case '6|': case|
|00005110| 20 27 37 27 3a 20 20 63 | 61 73 65 20 27 38 27 3a | '7': c|ase '8':|
|00005120| 20 20 63 61 73 65 20 27 | 39 27 3a 0a 09 09 7b 0a | case '|9':...{.|
|00005130| 09 09 09 2f 2a 0a 09 09 | 09 20 2a 20 48 61 6e 64 |.../*...|. * Hand|
|00005140| 6c 65 20 73 70 65 63 69 | 61 6c 20 22 6d 6f 72 65 |le speci|al "more|
|00005150| 22 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |" compat|ibility |
|00005160| 66 6f 72 6d 20 22 2d 6e | 75 6d 62 65 72 22 0a 09 |form "-n|umber"..|
|00005170| 09 09 20 2a 20 74 6f 20 | 73 65 74 20 74 68 65 20 |.. * to |set the |
|00005180| 73 63 72 6f 6c 6c 69 6e | 67 20 77 69 6e 64 6f 77 |scrollin|g window|
|00005190| 20 73 69 7a 65 2e 0a 09 | 09 09 20 2a 2f 0a 09 09 | size...|.. */...|
|000051a0| 09 73 2d 2d 3b 0a 09 09 | 09 73 63 5f 77 69 6e 64 |.s--;...|.sc_wind|
|000051b0| 6f 77 20 3d 20 67 65 74 | 6e 75 6d 28 26 73 2c 20 |ow = get|num(&s, |
|000051c0| 27 2d 27 29 3b 0a 09 09 | 09 67 6f 74 6f 20 6e 65 |'-');...|.goto ne|
|000051d0| 78 74 3b 0a 09 09 7d 0a | 09 7d 0a 0a 09 66 6f 72 |xt;...}.|.}...for|
|000051e0| 20 28 6f 20 3d 20 6f 70 | 74 69 6f 6e 3b 20 20 6f | (o = op|tion; o|
|000051f0| 2d 3e 6f 6c 65 74 74 65 | 72 20 21 3d 20 27 5c 30 |->olette|r != '\0|
|00005200| 27 3b 20 20 6f 2b 2b 29 | 0a 09 7b 0a 09 09 69 66 |'; o++)|..{...if|
|00005210| 20 28 28 6f 2d 3e 6f 74 | 79 70 65 20 26 20 42 4f | ((o->ot|ype & BO|
|00005220| 4f 4c 29 20 26 26 20 28 | 6f 2d 3e 6f 6c 65 74 74 |OL) && (|o->olett|
|00005230| 65 72 20 3d 3d 20 63 29 | 29 0a 09 09 7b 0a 09 09 |er == c)|)...{...|
|00005240| 09 2a 28 6f 2d 3e 6f 76 | 61 72 29 20 3d 20 21 20 |.*(o->ov|ar) = ! |
|00005250| 6f 2d 3e 6f 64 65 66 61 | 75 6c 74 3b 0a 09 09 09 |o->odefa|ult;....|
|00005260| 67 6f 74 6f 20 6e 65 78 | 74 3b 0a 09 09 7d 20 65 |goto nex|t;...} e|
|00005270| 6c 73 65 20 69 66 20 28 | 28 6f 2d 3e 6f 74 79 70 |lse if (|(o->otyp|
|00005280| 65 20 26 20 54 52 49 50 | 4c 45 29 20 26 26 20 28 |e & TRIP|LE) && (|
|00005290| 6f 2d 3e 6f 6c 65 74 74 | 65 72 20 3d 3d 20 63 29 |o->olett|er == c)|
|000052a0| 29 0a 09 09 7b 0a 09 09 | 09 2a 28 6f 2d 3e 6f 76 |)...{...|.*(o->ov|
|000052b0| 61 72 29 20 3d 20 28 6f | 2d 3e 6f 64 65 66 61 75 |ar) = (o|->odefau|
|000052c0| 6c 74 20 3d 3d 20 31 29 | 20 3f 20 30 20 3a 20 31 |lt == 1)| ? 0 : 1|
|000052d0| 3b 0a 09 09 09 67 6f 74 | 6f 20 6e 65 78 74 3b 0a |;....got|o next;.|
|000052e0| 09 09 7d 20 65 6c 73 65 | 20 69 66 20 28 28 6f 2d |..} else| if ((o-|
|000052f0| 3e 6f 74 79 70 65 20 26 | 20 54 52 49 50 4c 45 29 |>otype &| TRIPLE)|
|00005300| 20 26 26 20 28 74 6f 75 | 70 70 65 72 28 6f 2d 3e | && (tou|pper(o->|
|00005310| 6f 6c 65 74 74 65 72 29 | 20 3d 3d 20 63 29 29 0a |oletter)| == c)).|
|00005320| 09 09 7b 0a 09 09 09 2a | 28 6f 2d 3e 6f 76 61 72 |..{....*|(o->ovar|
|00005330| 29 20 3d 20 28 6f 2d 3e | 6f 64 65 66 61 75 6c 74 |) = (o->|odefault|
|00005340| 20 3d 3d 20 32 29 20 3f | 20 30 20 3a 20 32 3b 0a | == 2) ?| 0 : 2;.|
|00005350| 09 09 09 67 6f 74 6f 20 | 6e 65 78 74 3b 0a 09 09 |...goto |next;...|
|00005360| 7d 20 65 6c 73 65 20 69 | 66 20 28 28 6f 2d 3e 6f |} else i|f ((o->o|
|00005370| 74 79 70 65 20 26 20 4e | 55 4d 42 45 52 29 20 26 |type & N|UMBER) &|
|00005380| 26 20 28 6f 2d 3e 6f 6c | 65 74 74 65 72 20 3d 3d |& (o->ol|etter ==|
|00005390| 20 63 29 29 0a 09 09 7b | 0a 09 09 09 2a 28 6f 2d | c))...{|....*(o-|
|000053a0| 3e 6f 76 61 72 29 20 3d | 20 67 65 74 6e 75 6d 28 |>ovar) =| getnum(|
|000053b0| 26 73 2c 20 63 29 3b 0a | 09 09 09 67 6f 74 6f 20 |&s, c);.|...goto |
|000053c0| 6e 65 78 74 3b 0a 09 09 | 7d 0a 09 7d 0a 0a 09 70 |next;...|}..}...p|
|000053d0| 72 69 6e 74 66 28 22 5c | 22 2d 25 63 5c 22 3a 20 |rintf("\|"-%c\": |
|000053e0| 69 6e 76 61 6c 69 64 20 | 66 6c 61 67 5c 6e 22 2c |invalid |flag\n",|
|000053f0| 20 63 29 3b 0a 09 65 78 | 69 74 28 31 29 3b 0a 7d | c);..ex|it(1);.}|
|00005400| 0a 0a 2f 2a 0a 20 2a 20 | 54 72 61 6e 73 6c 61 74 |../*. * |Translat|
|00005410| 65 20 61 20 73 74 72 69 | 6e 67 20 69 6e 74 6f 20 |e a stri|ng into |
|00005420| 61 20 6e 75 6d 62 65 72 | 2e 0a 20 2a 20 4c 69 6b |a number|.. * Lik|
|00005430| 65 20 61 74 6f 69 28 29 | 2c 20 62 75 74 20 74 61 |e atoi()|, but ta|
|00005440| 6b 65 73 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |kes a po|inter to|
|00005450| 20 61 20 63 68 61 72 20 | 2a 2c 20 61 6e 64 20 75 | a char |*, and u|
|00005460| 70 64 61 74 65 73 0a 20 | 2a 20 74 68 65 20 63 68 |pdates. |* the ch|
|00005470| 61 72 20 2a 20 74 6f 20 | 70 6f 69 6e 74 20 61 66 |ar * to |point af|
|00005480| 74 65 72 20 74 68 65 20 | 74 72 61 6e 73 6c 61 74 |ter the |translat|
|00005490| 65 64 20 6e 75 6d 62 65 | 72 2e 0a 20 2a 2f 0a 09 |ed numbe|r.. */..|
|000054a0| 73 74 61 74 69 63 20 69 | 6e 74 0a 67 65 74 6e 75 |static i|nt.getnu|
|000054b0| 6d 28 73 70 2c 20 63 29 | 0a 09 63 68 61 72 20 2a |m(sp, c)|..char *|
|000054c0| 2a 73 70 3b 0a 09 69 6e | 74 20 63 3b 0a 7b 0a 09 |*sp;..in|t c;.{..|
|000054d0| 72 65 67 69 73 74 65 72 | 20 63 68 61 72 20 2a 73 |register| char *s|
|000054e0| 3b 0a 09 72 65 67 69 73 | 74 65 72 20 69 6e 74 20 |;..regis|ter int |
|000054f0| 6e 3b 0a 0a 09 73 20 3d | 20 2a 73 70 3b 0a 09 69 |n;...s =| *sp;..i|
|00005500| 66 20 28 2a 73 20 3c 20 | 27 30 27 20 7c 7c 20 2a |f (*s < |'0' || *|
|00005510| 73 20 3e 20 27 39 27 29 | 0a 09 7b 0a 09 09 70 72 |s > '9')|..{...pr|
|00005520| 69 6e 74 66 28 22 6e 75 | 6d 62 65 72 20 69 73 20 |intf("nu|mber is |
|00005530| 72 65 71 75 69 72 65 64 | 20 61 66 74 65 72 20 2d |required| after -|
|00005540| 25 63 5c 6e 22 2c 20 63 | 29 3b 0a 09 09 65 78 69 |%c\n", c|);...exi|
|00005550| 74 28 31 29 3b 0a 09 7d | 0a 0a 09 6e 20 3d 20 30 |t(1);..}|...n = 0|
|00005560| 3b 0a 09 77 68 69 6c 65 | 20 28 2a 73 20 3e 3d 20 |;..while| (*s >= |
|00005570| 27 30 27 20 26 26 20 2a | 73 20 3c 3d 20 27 39 27 |'0' && *|s <= '9'|
|00005580| 29 0a 09 09 6e 20 3d 20 | 31 30 20 2a 20 6e 20 2b |)...n = |10 * n +|
|00005590| 20 2a 73 2b 2b 20 2d 20 | 27 30 27 3b 0a 09 2a 73 | *s++ - |'0';..*s|
|000055a0| 70 20 3d 20 73 3b 0a 09 | 72 65 74 75 72 6e 20 28 |p = s;..|return (|
|000055b0| 6e 29 3b 0a 7d 0a 53 48 | 41 52 5f 45 4f 46 0a 66 |n);.}.SH|AR_EOF.f|
|000055c0| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 6f 75 |i.if tes|t -f 'ou|
|000055d0| 74 70 75 74 2e 63 27 0a | 74 68 65 6e 0a 09 65 63 |tput.c'.|then..ec|
|000055e0| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|000055f0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00005600| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 6f 75 74 |isting f|ile 'out|
|00005610| 70 75 74 2e 63 27 22 0a | 65 6c 73 65 0a 63 61 74 |put.c'".|else.cat|
|00005620| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00005630| 27 6f 75 74 70 75 74 2e | 63 27 0a 2f 2a 0a 20 2a |'output.|c'./*. *|
|00005640| 20 48 69 67 68 20 6c 65 | 76 65 6c 20 72 6f 75 74 | High le|vel rout|
|00005650| 69 6e 65 73 20 64 65 61 | 6c 69 6e 67 20 77 69 74 |ines dea|ling wit|
|00005660| 68 20 74 68 65 20 6f 75 | 74 70 75 74 20 74 6f 20 |h the ou|tput to |
|00005670| 74 68 65 20 73 63 72 65 | 65 6e 2e 0a 20 2a 2f 0a |the scre|en.. */.|
|00005680| 0a 23 69 6e 63 6c 75 64 | 65 20 22 6c 65 73 73 2e |.#includ|e "less.|
|00005690| 68 22 0a 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 73 |h"..exte|rn int s|
|000056a0| 69 67 73 3b 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |igs;.ext|ern int |
|000056b0| 73 63 5f 77 69 64 74 68 | 2c 20 73 63 5f 68 65 69 |sc_width|, sc_hei|
|000056c0| 67 68 74 3b 0a 65 78 74 | 65 72 6e 20 69 6e 74 20 |ght;.ext|ern int |
|000056d0| 62 6f 5f 77 69 64 74 68 | 2c 20 62 65 5f 77 69 64 |bo_width|, be_wid|
|000056e0| 74 68 3b 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 75 |th;.exte|rn int u|
|000056f0| 6c 5f 77 69 64 74 68 2c | 20 75 65 5f 77 69 64 74 |l_width,| ue_widt|
|00005700| 68 3b 0a 65 78 74 65 72 | 6e 20 69 6e 74 20 73 6f |h;.exter|n int so|
|00005710| 5f 77 69 64 74 68 2c 20 | 73 65 5f 77 69 64 74 68 |_width, |se_width|
|00005720| 3b 0a 65 78 74 65 72 6e | 20 69 6e 74 20 74 61 62 |;.extern| int tab|
|00005730| 73 74 6f 70 3b 0a 65 78 | 74 65 72 6e 20 69 6e 74 |stop;.ex|tern int|
|00005740| 20 74 77 69 64 64 6c 65 | 3b 0a 65 78 74 65 72 6e | twiddle|;.extern|
|00005750| 20 63 68 61 72 20 2a 6c | 69 6e 65 3b 0a 65 78 74 | char *l|ine;.ext|
|00005760| 65 72 6e 20 63 68 61 72 | 20 2a 66 69 72 73 74 5f |ern char| *first_|
|00005770| 63 6d 64 3b 0a 0a 2f 2a | 0a 20 2a 20 44 69 73 70 |cmd;../*|. * Disp|
|00005780| 6c 61 79 20 74 68 65 20 | 6c 69 6e 65 20 77 68 69 |lay the |line whi|
|00005790| 63 68 20 69 73 20 69 6e | 20 74 68 65 20 6c 69 6e |ch is in| the lin|
|000057a0| 65 20 62 75 66 66 65 72 | 2e 0a 20 2a 2f 0a 09 70 |e buffer|.. */..p|
|000057b0| 75 62 6c 69 63 20 76 6f | 69 64 0a 70 75 74 5f 6c |ublic vo|id.put_l|
|000057c0| 69 6e 65 28 29 0a 7b 0a | 09 72 65 67 69 73 74 65 |ine().{.|.registe|
|000057d0| 72 20 63 68 61 72 20 2a | 70 3b 0a 09 72 65 67 69 |r char *|p;..regi|
|000057e0| 73 74 65 72 20 69 6e 74 | 20 63 3b 0a 09 72 65 67 |ster int| c;..reg|
|000057f0| 69 73 74 65 72 20 69 6e | 74 20 63 6f 6c 75 6d 6e |ister in|t column|
|00005800| 3b 0a 09 65 78 74 65 72 | 6e 20 69 6e 74 20 61 75 |;..exter|n int au|
|00005810| 74 6f 5f 77 72 61 70 2c | 20 69 67 6e 61 77 3b 0a |to_wrap,| ignaw;.|
|00005820| 0a 09 69 66 20 28 73 69 | 67 73 29 0a 09 09 2f 2a |..if (si|gs).../*|
|00005830| 0a 09 09 20 2a 20 44 6f | 6e 27 74 20 6f 75 74 70 |... * Do|n't outp|
|00005840| 75 74 20 69 66 20 61 20 | 73 69 67 6e 61 6c 20 69 |ut if a |signal i|
|00005850| 73 20 70 65 6e 64 69 6e | 67 2e 0a 09 09 20 2a 2f |s pendin|g.... */|
|00005860| 0a 09 09 72 65 74 75 72 | 6e 3b 0a 0a 09 69 66 20 |...retur|n;...if |
|00005870| 28 6c 69 6e 65 20 3d 3d | 20 4e 55 4c 4c 29 0a 09 |(line ==| NULL)..|
|00005880| 09 6c 69 6e 65 20 3d 20 | 28 74 77 69 64 64 6c 65 |.line = |(twiddle|
|00005890| 29 20 3f 20 22 7e 22 20 | 3a 20 22 22 3b 0a 0a 09 |) ? "~" |: "";...|
|000058a0| 63 6f 6c 75 6d 6e 20 3d | 20 30 3b 0a 09 66 6f 72 |column =| 0;..for|
|000058b0| 20 28 70 20 3d 20 6c 69 | 6e 65 3b 20 20 2a 70 20 | (p = li|ne; *p |
|000058c0| 21 3d 20 27 5c 30 27 3b | 20 20 70 2b 2b 29 0a 09 |!= '\0';| p++)..|
|000058d0| 7b 0a 09 09 73 77 69 74 | 63 68 20 28 63 20 3d 20 |{...swit|ch (c = |
|000058e0| 2a 70 29 0a 09 09 7b 0a | 09 09 63 61 73 65 20 55 |*p)...{.|..case U|
|000058f0| 4c 5f 43 48 41 52 3a 0a | 09 09 09 75 6c 5f 65 6e |L_CHAR:.|...ul_en|
|00005900| 74 65 72 28 29 3b 0a 09 | 09 09 63 6f 6c 75 6d 6e |ter();..|..column|
|00005910| 20 2b 3d 20 75 6c 5f 77 | 69 64 74 68 3b 0a 09 09 | += ul_w|idth;...|
|00005920| 09 62 72 65 61 6b 3b 0a | 09 09 63 61 73 65 20 55 |.break;.|..case U|
|00005930| 45 5f 43 48 41 52 3a 0a | 09 09 09 75 6c 5f 65 78 |E_CHAR:.|...ul_ex|
|00005940| 69 74 28 29 3b 0a 09 09 | 09 63 6f 6c 75 6d 6e 20 |it();...|.column |
|00005950| 2b 3d 20 75 65 5f 77 69 | 64 74 68 3b 0a 09 09 09 |+= ue_wi|dth;....|
|00005960| 62 72 65 61 6b 3b 0a 09 | 09 63 61 73 65 20 42 4f |break;..|.case BO|
|00005970| 5f 43 48 41 52 3a 0a 09 | 09 09 62 6f 5f 65 6e 74 |_CHAR:..|..bo_ent|
|00005980| 65 72 28 29 3b 0a 09 09 | 09 63 6f 6c 75 6d 6e 20 |er();...|.column |
|00005990| 2b 3d 20 62 6f 5f 77 69 | 64 74 68 3b 0a 09 09 09 |+= bo_wi|dth;....|
|000059a0| 62 72 65 61 6b 3b 0a 09 | 09 63 61 73 65 20 42 45 |break;..|.case BE|
|000059b0| 5f 43 48 41 52 3a 0a 09 | 09 09 62 6f 5f 65 78 69 |_CHAR:..|..bo_exi|
|000059c0| 74 28 29 3b 0a 09 09 09 | 63 6f 6c 75 6d 6e 20 2b |t();....|column +|
|000059d0| 3d 20 62 65 5f 77 69 64 | 74 68 3b 0a 09 09 09 62 |= be_wid|th;....b|
|000059e0| 72 65 61 6b 3b 0a 09 09 | 63 61 73 65 20 27 5c 74 |reak;...|case '\t|
|000059f0| 27 3a 0a 09 09 09 64 6f | 0a 09 09 09 7b 0a 09 09 |':....do|....{...|
|00005a00| 09 09 70 75 74 63 28 27 | 20 27 29 3b 0a 09 09 09 |..putc('| ');....|
|00005a10| 09 63 6f 6c 75 6d 6e 2b | 2b 3b 0a 09 09 09 7d 20 |.column+|+;....} |
|00005a20| 77 68 69 6c 65 20 28 28 | 63 6f 6c 75 6d 6e 20 25 |while ((|column %|
|00005a30| 20 74 61 62 73 74 6f 70 | 29 20 21 3d 20 30 29 3b | tabstop|) != 0);|
|00005a40| 0a 09 09 09 62 72 65 61 | 6b 3b 0a 09 09 63 61 73 |....brea|k;...cas|
|00005a50| 65 20 27 5c 62 27 3a 0a | 09 09 09 70 75 74 62 73 |e '\b':.|...putbs|
|00005a60| 28 29 3b 0a 09 09 09 63 | 6f 6c 75 6d 6e 2d 2d 3b |();....c|olumn--;|
|00005a70| 0a 09 09 09 62 72 65 61 | 6b 3b 0a 09 09 64 65 66 |....brea|k;...def|
|00005a80| 61 75 6c 74 3a 0a 09 09 | 09 69 66 20 28 63 20 26 |ault:...|.if (c &|
|00005a90| 20 30 32 30 30 29 0a 09 | 09 09 7b 0a 09 09 09 09 | 0200)..|..{.....|
|00005aa0| 70 75 74 63 28 27 5e 27 | 29 3b 0a 09 09 09 09 70 |putc('^'|);.....p|
|00005ab0| 75 74 63 28 63 20 26 20 | 30 31 37 37 29 3b 0a 09 |utc(c & |0177);..|
|00005ac0| 09 09 09 63 6f 6c 75 6d | 6e 20 2b 3d 20 32 3b 0a |...colum|n += 2;.|
|00005ad0| 09 09 09 7d 20 65 6c 73 | 65 0a 09 09 09 7b 0a 09 |...} els|e....{..|
|00005ae0| 09 09 09 70 75 74 63 28 | 63 29 3b 0a 09 09 09 09 |...putc(|c);.....|
|00005af0| 63 6f 6c 75 6d 6e 2b 2b | 3b 0a 09 09 09 7d 0a 09 |column++|;....}..|
|00005b00| 09 7d 0a 09 7d 0a 09 69 | 66 20 28 63 6f 6c 75 6d |.}..}..i|f (colum|
|00005b10| 6e 20 3c 20 73 63 5f 77 | 69 64 74 68 20 7c 7c 20 |n < sc_w|idth || |
|00005b20| 21 61 75 74 6f 5f 77 72 | 61 70 20 7c 7c 20 69 67 |!auto_wr|ap || ig|
|00005b30| 6e 61 77 29 0a 09 09 70 | 75 74 63 28 27 5c 6e 27 |naw)...p|utc('\n'|
|00005b40| 29 3b 0a 7d 0a 0a 2f 2a | 0a 20 2a 20 49 73 20 61 |);.}../*|. * Is a|
|00005b50| 20 67 69 76 65 6e 20 63 | 68 61 72 61 63 74 65 72 | given c|haracter|
|00005b60| 20 61 20 22 63 6f 6e 74 | 72 6f 6c 22 20 63 68 61 | a "cont|rol" cha|
|00005b70| 72 61 63 74 65 72 3f 0a | 20 2a 20 7b 7b 20 41 53 |racter?.| * {{ AS|
|00005b80| 43 49 49 20 44 45 50 45 | 4e 44 45 4e 54 20 7d 7d |CII DEPE|NDENT }}|
|00005b90| 0a 20 2a 2f 0a 09 70 75 | 62 6c 69 63 20 69 6e 74 |. */..pu|blic int|
|00005ba0| 0a 63 6f 6e 74 72 6f 6c | 5f 63 68 61 72 28 63 29 |.control|_char(c)|
|00005bb0| 0a 09 69 6e 74 20 63 3b | 0a 7b 0a 09 72 65 74 75 |..int c;|.{..retu|
|00005bc0| 72 6e 20 28 63 20 3c 20 | 27 20 27 20 7c 7c 20 63 |rn (c < |' ' || c|
|00005bd0| 20 3d 3d 20 27 5c 31 37 | 37 27 29 3b 0a 7d 0a 0a | == '\17|7');.}..|
|00005be0| 2f 2a 0a 20 2a 20 52 65 | 74 75 72 6e 20 74 68 65 |/*. * Re|turn the|
|00005bf0| 20 70 72 69 6e 74 61 62 | 6c 65 20 63 68 61 72 61 | printab|le chara|
|00005c00| 63 74 65 72 20 75 73 65 | 64 20 74 6f 20 69 64 65 |cter use|d to ide|
|00005c10| 6e 74 69 66 79 20 61 20 | 63 6f 6e 74 72 6f 6c 20 |ntify a |control |
|00005c20| 63 68 61 72 61 63 74 65 | 72 0a 20 2a 20 28 70 72 |characte|r. * (pr|
|00005c30| 69 6e 74 65 64 20 61 66 | 74 65 72 20 61 20 63 61 |inted af|ter a ca|
|00005c40| 72 61 74 3b 20 65 2e 67 | 2e 20 27 5c 33 27 20 3d |rat; e.g|. '\3' =|
|00005c50| 3e 20 22 5e 43 22 29 2e | 0a 20 2a 20 7b 7b 20 41 |> "^C").|. * {{ A|
|00005c60| 53 43 49 49 20 44 45 50 | 45 4e 44 45 4e 54 20 7d |SCII DEP|ENDENT }|
|00005c70| 7d 0a 20 2a 2f 0a 09 70 | 75 62 6c 69 63 20 69 6e |}. */..p|ublic in|
|00005c80| 74 0a 63 61 72 61 74 5f | 63 68 61 72 28 63 29 0a |t.carat_|char(c).|
|00005c90| 09 69 6e 74 20 63 3b 0a | 7b 0a 09 72 65 74 75 72 |.int c;.|{..retur|
|00005ca0| 6e 20 28 28 63 20 3d 3d | 20 27 5c 31 37 37 27 29 |n ((c ==| '\177')|
|00005cb0| 20 3f 20 27 3f 27 20 3a | 20 28 63 20 7c 20 30 31 | ? '?' :| (c | 01|
|00005cc0| 30 30 29 29 3b 0a 7d 0a | 0a 0a 73 74 61 74 69 63 |00));.}.|..static|
|00005cd0| 20 63 68 61 72 20 6f 62 | 75 66 5b 31 30 32 34 5d | char ob|uf[1024]|
|00005ce0| 3b 0a 73 74 61 74 69 63 | 20 63 68 61 72 20 2a 6f |;.static| char *o|
|00005cf0| 62 20 3d 20 6f 62 75 66 | 3b 0a 0a 2f 2a 0a 20 2a |b = obuf|;../*. *|
|00005d00| 20 46 6c 75 73 68 20 62 | 75 66 66 65 72 65 64 20 | Flush b|uffered |
|00005d10| 6f 75 74 70 75 74 2e 0a | 20 2a 2f 0a 09 70 75 62 |output..| */..pub|
|00005d20| 6c 69 63 20 76 6f 69 64 | 0a 66 6c 75 73 68 28 29 |lic void|.flush()|
|00005d30| 0a 7b 0a 09 77 72 69 74 | 65 28 31 2c 20 6f 62 75 |.{..writ|e(1, obu|
|00005d40| 66 2c 20 6f 62 2d 6f 62 | 75 66 29 3b 0a 09 6f 62 |f, ob-ob|uf);..ob|
|00005d50| 20 3d 20 6f 62 75 66 3b | 0a 7d 0a 0a 2f 2a 0a 20 | = obuf;|.}../*. |
|00005d60| 2a 20 44 69 73 63 61 72 | 64 20 62 75 66 66 65 72 |* Discar|d buffer|
|00005d70| 65 64 20 6f 75 74 70 75 | 74 2e 0a 20 2a 2f 0a 09 |ed outpu|t.. */..|
|00005d80| 70 75 62 6c 69 63 20 76 | 6f 69 64 0a 64 72 6f 70 |public v|oid.drop|
|00005d90| 6f 75 74 28 29 0a 7b 0a | 09 6f 62 20 3d 20 6f 62 |out().{.|.ob = ob|
|00005da0| 75 66 3b 0a 7d 0a 0a 2f | 2a 0a 20 2a 20 4f 75 74 |uf;.}../|*. * Out|
|00005db0| 70 75 74 20 61 20 63 68 | 61 72 61 63 74 65 72 2e |put a ch|aracter.|
|00005dc0| 0a 20 2a 2f 0a 09 70 75 | 62 6c 69 63 20 76 6f 69 |. */..pu|blic voi|
|00005dd0| 64 0a 70 75 74 63 28 63 | 29 0a 09 69 6e 74 20 63 |d.putc(c|)..int c|
|00005de0| 3b 0a 7b 0a 09 69 66 20 | 28 6f 62 20 3e 3d 20 26 |;.{..if |(ob >= &|
|00005df0| 6f 62 75 66 5b 73 69 7a | 65 6f 66 28 6f 62 75 66 |obuf[siz|eof(obuf|
|00005e00| 29 5d 29 0a 09 09 66 6c | 75 73 68 28 29 3b 0a 09 |)])...fl|ush();..|
|00005e10| 2a 6f 62 2b 2b 20 3d 20 | 63 3b 0a 7d 0a 0a 2f 2a |*ob++ = |c;.}../*|
|00005e20| 0a 20 2a 20 4f 75 74 70 | 75 74 20 61 20 73 74 72 |. * Outp|ut a str|
|00005e30| 69 6e 67 2e 0a 20 2a 2f | 0a 09 70 75 62 6c 69 63 |ing.. */|..public|
|00005e40| 20 76 6f 69 64 0a 70 75 | 74 73 28 73 29 0a 09 72 | void.pu|ts(s)..r|
|00005e50| 65 67 69 73 74 65 72 20 | 63 68 61 72 20 2a 73 3b |egister |char *s;|
|00005e60| 0a 7b 0a 09 77 68 69 6c | 65 20 28 2a 73 20 21 3d |.{..whil|e (*s !=|
|00005e70| 20 27 5c 30 27 29 0a 09 | 09 70 75 74 63 28 2a 73 | '\0')..|.putc(*s|
|00005e80| 2b 2b 29 3b 0a 7d 0a 0a | 2f 2a 0a 20 2a 20 4f 75 |++);.}..|/*. * Ou|
|00005e90| 74 70 75 74 20 61 20 6d | 65 73 73 61 67 65 20 69 |tput a m|essage i|
|00005ea0| 6e 20 74 68 65 20 6c 6f | 77 65 72 20 6c 65 66 74 |n the lo|wer left|
|00005eb0| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 20 73 | corner |of the s|
|00005ec0| 63 72 65 65 6e 0a 20 2a | 20 61 6e 64 20 77 61 69 |creen. *| and wai|
|00005ed0| 74 20 66 6f 72 20 63 61 | 72 72 69 61 67 65 20 72 |t for ca|rriage r|
|00005ee0| 65 74 75 72 6e 2e 0a 20 | 2a 2f 0a 0a 73 74 61 74 |eturn.. |*/..stat|
|00005ef0| 69 63 20 63 68 61 72 20 | 72 65 74 75 72 6e 5f 74 |ic char |return_t|
|00005f00| 6f 5f 63 6f 6e 74 69 6e | 75 65 5b 5d 20 3d 20 22 |o_contin|ue[] = "|
|00005f10| 20 20 28 70 72 65 73 73 | 20 52 45 54 55 52 4e 29 | (press| RETURN)|
|00005f20| 22 3b 0a 0a 09 70 75 62 | 6c 69 63 20 76 6f 69 64 |";...pub|lic void|
|00005f30| 0a 65 72 72 6f 72 28 73 | 29 0a 09 63 68 61 72 20 |.error(s|)..char |
|00005f40| 2a 73 3b 0a 7b 0a 09 72 | 65 67 69 73 74 65 72 20 |*s;.{..r|egister |
|00005f50| 69 6e 74 20 63 3b 0a 09 | 73 74 61 74 69 63 20 63 |int c;..|static c|
|00005f60| 68 61 72 20 62 75 66 5b | 32 5d 3b 0a 0a 09 6c 6f |har buf[|2];...lo|
|00005f70| 77 65 72 5f 6c 65 66 74 | 28 29 3b 0a 09 63 6c 65 |wer_left|();..cle|
|00005f80| 61 72 5f 65 6f 6c 28 29 | 3b 0a 09 73 6f 5f 65 6e |ar_eol()|;..so_en|
|00005f90| 74 65 72 28 29 3b 0a 09 | 70 75 74 73 28 73 29 3b |ter();..|puts(s);|
|00005fa0| 0a 09 70 75 74 73 28 72 | 65 74 75 72 6e 5f 74 6f |..puts(r|eturn_to|
|00005fb0| 5f 63 6f 6e 74 69 6e 75 | 65 29 3b 0a 09 73 6f 5f |_continu|e);..so_|
|00005fc0| 65 78 69 74 28 29 3b 0a | 0a 23 69 66 20 4f 4e 4c |exit();.|.#if ONL|
|00005fd0| 59 5f 52 45 54 55 52 4e | 0a 09 77 68 69 6c 65 20 |Y_RETURN|..while |
|00005fe0| 28 28 63 20 3d 20 67 65 | 74 63 28 29 29 20 21 3d |((c = ge|tc()) !=|
|00005ff0| 20 27 5c 6e 27 20 26 26 | 20 63 20 21 3d 20 27 5c | '\n' &&| c != '\|
|00006000| 72 27 29 0a 09 09 62 65 | 6c 6c 28 29 3b 0a 23 65 |r')...be|ll();.#e|
|00006010| 6c 73 65 0a 09 63 20 3d | 20 67 65 74 63 28 29 3b |lse..c =| getc();|
|00006020| 0a 09 69 66 20 28 63 20 | 21 3d 20 27 5c 6e 27 20 |..if (c |!= '\n' |
|00006030| 26 26 20 63 20 21 3d 20 | 27 5c 72 27 20 26 26 20 |&& c != |'\r' && |
|00006040| 63 20 21 3d 20 27 20 27 | 29 0a 09 7b 0a 09 09 62 |c != ' '|)..{...b|
|00006050| 75 66 5b 30 5d 20 3d 20 | 63 3b 0a 09 09 66 69 72 |uf[0] = |c;...fir|
|00006060| 73 74 5f 63 6d 64 20 3d | 20 62 75 66 3b 0a 09 7d |st_cmd =| buf;..}|
|00006070| 0a 23 65 6e 64 69 66 0a | 0a 09 69 66 20 28 73 74 |.#endif.|..if (st|
|00006080| 72 6c 65 6e 28 73 29 20 | 3e 20 73 63 5f 77 69 64 |rlen(s) |> sc_wid|
|00006090| 74 68 29 0a 09 09 72 65 | 70 61 69 6e 74 28 29 3b |th)...re|paint();|
|000060a0| 0a 7d 0a 0a 09 70 75 62 | 6c 69 63 20 69 6e 74 0a |.}...pub|lic int.|
|000060b0| 65 72 72 6f 72 5f 77 69 | 64 74 68 28 29 0a 7b 0a |error_wi|dth().{.|
|000060c0| 09 2f 2a 0a 09 20 2a 20 | 44 6f 6e 27 74 20 75 73 |./*.. * |Don't us|
|000060d0| 65 20 74 68 65 20 6c 61 | 73 74 20 70 6f 73 69 74 |e the la|st posit|
|000060e0| 69 6f 6e 2c 20 62 65 63 | 61 75 73 65 20 73 6f 6d |ion, bec|ause som|
|000060f0| 65 20 74 65 72 6d 69 6e | 61 6c 73 0a 09 20 2a 20 |e termin|als.. * |
|00006100| 77 69 6c 6c 20 73 63 72 | 6f 6c 6c 20 69 66 20 79 |will scr|oll if y|
|00006110| 6f 75 20 77 72 69 74 65 | 20 69 6e 20 74 68 65 20 |ou write| in the |
|00006120| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 74 68 65 |last cha|r of the|
|00006130| 20 6c 61 73 74 20 6c 69 | 6e 65 2e 0a 09 20 2a 2f | last li|ne... */|
|00006140| 0a 09 72 65 74 75 72 6e | 20 28 73 63 5f 77 69 64 |..return| (sc_wid|
|00006150| 74 68 20 2d 20 0a 09 09 | 28 73 69 7a 65 6f 66 28 |th - ...|(sizeof(|
|00006160| 72 65 74 75 72 6e 5f 74 | 6f 5f 63 6f 6e 74 69 6e |return_t|o_contin|
|00006170| 75 65 29 20 2b 20 73 6f | 5f 77 69 64 74 68 20 2b |ue) + so|_width +|
|00006180| 20 73 65 5f 77 69 64 74 | 68 20 2b 20 31 29 29 3b | se_widt|h + 1));|
|00006190| 0a 7d 0a 53 48 41 52 5f | 45 4f 46 0a 66 69 0a 69 |.}.SHAR_|EOF.fi.i|
|000061a0| 66 20 74 65 73 74 20 2d | 66 20 27 70 61 67 65 72 |f test -|f 'pager|
|000061b0| 5f 70 61 74 63 68 2e 63 | 27 0a 74 68 65 6e 0a 09 |_patch.c|'.then..|
|000061c0| 65 63 68 6f 20 73 68 61 | 72 3a 20 22 77 69 6c 6c |echo sha|r: "will|
|000061d0| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|000061e0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 27 70 |existing| file 'p|
|000061f0| 61 67 65 72 5f 70 61 74 | 63 68 2e 63 27 22 0a 65 |ager_pat|ch.c'".e|
|00006200| 6c 73 65 0a 63 61 74 20 | 3c 3c 20 5c 53 48 41 52 |lse.cat |<< \SHAR|
|00006210| 5f 45 4f 46 20 3e 20 27 | 70 61 67 65 72 5f 70 61 |_EOF > '|pager_pa|
|00006220| 74 63 68 2e 63 27 0a 2f | 2a 0a 20 2a 20 53 70 65 |tch.c'./|*. * Spe|
|00006230| 63 69 61 6c 20 69 6e 74 | 65 72 66 61 63 65 20 74 |cial int|erface t|
|00006240| 68 61 74 20 63 68 65 63 | 6b 73 20 66 6f 72 20 74 |hat chec|ks for t|
|00006250| 68 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 76 |he envir|onment v|
|00006260| 61 72 69 61 62 6c 65 20 | 50 41 47 45 52 2e 20 20 |ariable |PAGER. |
|00006270| 49 66 0a 20 2a 20 70 72 | 65 73 65 6e 74 2c 20 74 |If. * pr|esent, t|
|00006280| 68 65 20 70 72 6f 67 72 | 61 6d 20 73 70 65 63 69 |he progr|am speci|
|00006290| 66 69 65 64 20 69 73 20 | 65 78 65 63 75 74 65 64 |fied is |executed|
|000062a0| 2c 20 6f 74 68 65 72 77 | 69 73 65 20 4f 4c 44 5f |, otherw|ise OLD_|
|000062b0| 50 41 47 45 52 5f 4e 45 | 57 5f 4c 4f 43 41 54 49 |PAGER_NE|W_LOCATI|
|000062c0| 4f 4e 0a 20 2a 20 28 73 | 70 65 63 69 66 69 65 64 |ON. * (s|pecified|
|000062d0| 20 62 65 6c 6f 77 29 2e | 20 20 54 68 69 73 20 70 | below).| This p|
|000062e0| 72 6f 67 72 61 6d 20 73 | 68 6f 75 6c 64 20 72 65 |rogram s|hould re|
|000062f0| 70 6c 61 63 65 20 2f 75 | 73 72 2f 75 63 62 2f 6d |place /u|sr/ucb/m|
|00006300| 6f 72 65 20 28 6f 72 20 | 77 68 61 74 65 76 65 72 |ore (or |whatever|
|00006310| 0a 20 2a 20 79 6f 75 72 | 20 64 65 66 61 75 6c 74 |. * your| default|
|00006320| 20 70 61 67 65 72 20 69 | 73 29 20 61 6e 64 20 6d | pager i|s) and m|
|00006330| 6f 72 65 20 73 68 6f 75 | 6c 64 20 62 65 20 6d 6f |ore shou|ld be mo|
|00006340| 76 65 64 20 74 6f 20 4f | 4c 44 5f 50 41 47 45 52 |ved to O|LD_PAGER|
|00006350| 5f 4e 45 57 5f 4c 4f 43 | 41 54 49 4f 4e 2e 0a 20 |_NEW_LOC|ATION.. |
|00006360| 2a 20 54 68 69 73 20 69 | 73 20 65 73 73 65 6e 74 |* This i|s essent|
|00006370| 69 61 6c 6c 79 20 61 20 | 66 69 78 20 66 6f 72 20 |ially a |fix for |
|00006380| 61 6c 6c 20 74 68 65 20 | 70 72 6f 67 72 61 6d 73 |all the |programs|
|00006390| 20 77 68 69 63 68 20 2a | 73 68 6f 75 6c 64 2a 20 | which *|should* |
|000063a0| 63 68 65 63 6b 20 66 6f | 72 20 74 68 65 0a 20 2a |check fo|r the. *|
|000063b0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|000063c0| 69 61 62 6c 65 20 50 41 | 47 45 52 2c 20 62 75 74 |iable PA|GER, but|
|000063d0| 20 64 6f 6e 27 74 20 2d | 20 68 6f 70 65 66 75 6c | don't -| hopeful|
|000063e0| 6c 79 20 69 74 20 77 69 | 6c 6c 20 62 65 20 6f 62 |ly it wi|ll be ob|
|000063f0| 73 6f 6c 65 74 65 64 20 | 61 73 0a 20 2a 20 6f 6c |soleted |as. * ol|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.