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
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news or mail, ASCII text
| 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 32 33 69 30 34 |Subject:| v23i04|
|00000010| 36 3a 20 20 46 6c 65 78 | 2c 20 61 20 66 61 73 74 |6: Flex|, a fast|
|00000020| 20 6c 65 78 20 72 65 70 | 6c 61 63 65 6d 65 6e 74 | lex rep|lacement|
|00000030| 2c 20 50 61 72 74 31 30 | 2f 31 30 0a 4e 65 77 73 |, Part10|/10.News|
|00000040| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 6f 75 |groups: |comp.sou|
|00000050| 72 63 65 73 2e 75 6e 69 | 78 0a 41 70 70 72 6f 76 |rces.uni|x.Approv|
|00000060| 65 64 3a 20 72 73 61 6c | 7a 40 75 75 6e 65 74 2e |ed: rsal|z@uunet.|
|00000070| 55 55 2e 4e 45 54 0a 58 | 2d 43 68 65 63 6b 73 75 |UU.NET.X|-Checksu|
|00000080| 6d 2d 53 6e 65 66 72 75 | 3a 20 64 32 62 36 65 39 |m-Snefru|: d2b6e9|
|00000090| 35 66 20 64 63 39 32 31 | 66 61 31 20 61 30 66 66 |5f dc921|fa1 a0ff|
|000000a0| 34 37 30 35 20 34 35 37 | 37 37 39 66 34 0a 0a 53 |4705 457|779f4..S|
|000000b0| 75 62 6d 69 74 74 65 64 | 2d 62 79 3a 20 56 65 72 |ubmitted|-by: Ver|
|000000c0| 6e 20 50 61 78 73 6f 6e | 20 3c 76 65 72 6e 40 63 |n Paxson| <vern@c|
|000000d0| 73 2e 63 6f 72 6e 65 6c | 6c 2e 65 64 75 3e 0a 50 |s.cornel|l.edu>.P|
|000000e0| 6f 73 74 69 6e 67 2d 6e | 75 6d 62 65 72 3a 20 56 |osting-n|umber: V|
|000000f0| 6f 6c 75 6d 65 20 32 33 | 2c 20 49 73 73 75 65 20 |olume 23|, Issue |
|00000100| 34 36 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |46.Archi|ve-name:|
|00000110| 20 66 6c 65 78 32 2e 33 | 2f 70 61 72 74 31 30 0a | flex2.3|/part10.|
|00000120| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000130| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000140| 63 68 69 76 65 2e 20 20 | 52 65 6d 6f 76 65 20 61 |chive. |Remove a|
|00000150| 6e 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |nything |before t|
|00000160| 68 69 73 20 6c 69 6e 65 | 2c 20 74 68 65 6e 20 66 |his line|, then f|
|00000170| 65 65 64 20 69 74 0a 23 | 20 69 6e 74 6f 20 61 20 |eed it.#| into a |
|00000180| 73 68 65 6c 6c 20 76 69 | 61 20 22 73 68 20 66 69 |shell vi|a "sh fi|
|00000190| 6c 65 22 20 6f 72 20 73 | 69 6d 69 6c 61 72 2e 20 |le" or s|imilar. |
|000001a0| 20 54 6f 20 6f 76 65 72 | 77 72 69 74 65 20 65 78 | To over|write ex|
|000001b0| 69 73 74 69 6e 67 20 66 | 69 6c 65 73 2c 0a 23 20 |isting f|iles,.# |
|000001c0| 74 79 70 65 20 22 73 68 | 20 66 69 6c 65 20 2d 63 |type "sh| file -c|
|000001d0| 22 2e 0a 23 20 54 68 65 | 20 74 6f 6f 6c 20 74 68 |"..# The| tool th|
|000001e0| 61 74 20 67 65 6e 65 72 | 61 74 65 64 20 74 68 69 |at gener|ated thi|
|000001f0| 73 20 61 70 70 65 61 72 | 65 64 20 69 6e 20 74 68 |s appear|ed in th|
|00000200| 65 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 75 |e comp.s|ources.u|
|00000210| 6e 69 78 20 6e 65 77 73 | 67 72 6f 75 70 3b 0a 23 |nix news|group;.#|
|00000220| 20 73 65 6e 64 20 6d 61 | 69 6c 20 74 6f 20 63 6f | send ma|il to co|
|00000230| 6d 70 2d 73 6f 75 72 63 | 65 73 2d 75 6e 69 78 40 |mp-sourc|es-unix@|
|00000240| 75 75 6e 65 74 2e 75 75 | 2e 6e 65 74 20 69 66 20 |uunet.uu|.net if |
|00000250| 79 6f 75 20 77 61 6e 74 | 20 74 68 61 74 20 74 6f |you want| that to|
|00000260| 6f 6c 2e 0a 23 20 43 6f | 6e 74 65 6e 74 73 3a 20 |ol..# Co|ntents: |
|00000270| 20 4d 49 53 43 2f 4d 61 | 6b 65 66 69 6c 65 2e 56 | MISC/Ma|kefile.V|
|00000280| 4d 53 20 4d 61 6b 65 66 | 69 6c 65 20 63 63 6c 2e |MS Makef|ile ccl.|
|00000290| 63 0a 23 20 57 72 61 70 | 70 65 64 20 62 79 20 72 |c.# Wrap|ped by r|
|000002a0| 73 61 6c 7a 40 6c 69 74 | 63 68 69 2e 62 62 6e 2e |salz@lit|chi.bbn.|
|000002b0| 63 6f 6d 20 6f 6e 20 57 | 65 64 20 4f 63 74 20 31 |com on W|ed Oct 1|
|000002c0| 30 20 31 33 3a 32 34 3a | 30 36 20 31 39 39 30 0a |0 13:24:|06 1990.|
|000002d0| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|000002e0| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|000002f0| 70 6f 72 74 20 50 41 54 | 48 0a 65 63 68 6f 20 49 |port PAT|H.echo I|
|00000300| 66 20 74 68 69 73 20 61 | 72 63 68 69 76 65 20 69 |f this a|rchive i|
|00000310| 73 20 63 6f 6d 70 6c 65 | 74 65 2c 20 79 6f 75 20 |s comple|te, you |
|00000320| 77 69 6c 6c 20 73 65 65 | 20 74 68 65 20 66 6f 6c |will see| the fol|
|00000330| 6c 6f 77 69 6e 67 20 6d | 65 73 73 61 67 65 3a 0a |lowing m|essage:.|
|00000340| 65 63 68 6f 20 27 20 20 | 20 20 20 20 20 20 20 20 |echo ' | |
|00000350| 22 73 68 61 72 3a 20 45 | 6e 64 20 6f 66 20 61 72 |"shar: E|nd of ar|
|00000360| 63 68 69 76 65 20 31 30 | 20 28 6f 66 20 31 30 29 |chive 10| (of 10)|
|00000370| 2e 22 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |."'.if t|est -f '|
|00000380| 4d 49 53 43 2f 4d 61 6b | 65 66 69 6c 65 2e 56 4d |MISC/Mak|efile.VM|
|00000390| 53 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |S' -a "$|{1}" != |
|000003a0| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000003b0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000003c0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000003d0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 49 53 43 |ing file| \"'MISC|
|000003e0| 2f 4d 61 6b 65 66 69 6c | 65 2e 56 4d 53 27 5c 22 |/Makefil|e.VMS'\"|
|000003f0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00000400| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00000410| 27 4d 49 53 43 2f 4d 61 | 6b 65 66 69 6c 65 2e 56 |'MISC/Ma|kefile.V|
|00000420| 4d 53 27 5c 22 20 5c 28 | 33 35 33 37 20 63 68 61 |MS'\" \(|3537 cha|
|00000430| 72 61 63 74 65 72 73 5c | 29 0a 20 20 73 65 64 20 |racters\|). sed |
|00000440| 22 73 2f 5e 58 2f 2f 22 | 20 3e 27 4d 49 53 43 2f |"s/^X//"| >'MISC/|
|00000450| 4d 61 6b 65 66 69 6c 65 | 2e 56 4d 53 27 20 3c 3c |Makefile|.VMS' <<|
|00000460| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 23 |'END_OF_|FILE'.X#|
|00000470| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000480| 23 23 23 23 23 23 23 23 | 23 23 23 20 56 4d 53 20 |########|### VMS |
|00000490| 4d 41 4b 45 46 49 4c 45 | 20 23 23 23 23 23 23 23 |MAKEFILE| #######|
|000004a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000004b0| 23 23 23 23 23 23 23 0a | 58 23 49 4d 50 4f 52 54 |#######.|X#IMPORT|
|000004c0| 41 4e 54 3a 20 20 42 65 | 66 6f 72 65 20 79 6f 75 |ANT: Be|fore you|
|000004d0| 20 75 73 65 20 74 68 69 | 73 20 6d 61 6b 65 66 69 | use thi|s makefi|
|000004e0| 6c 65 20 66 69 6c 6c 20 | 69 6e 20 74 68 65 20 63 |le fill |in the c|
|000004f0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 47 4e 55 4c 49 |ontents |of GNULI|
|00000500| 42 2e 0a 58 23 0a 58 23 | 20 44 65 66 69 6e 65 20 |B..X#.X#| Define |
|00000510| 74 6f 6f 6c 73 24 24 65 | 78 65 2c 20 74 6f 6f 6c |tools$$e|xe, tool|
|00000520| 73 24 24 6c 69 62 72 61 | 72 79 2c 20 61 6e 64 20 |s$$libra|ry, and |
|00000530| 74 6f 6f 6c 73 24 24 6d | 61 6e 75 61 6c 20 74 6f |tools$$m|anual to|
|00000540| 20 72 65 66 6c 65 63 74 | 20 74 68 65 20 0a 58 23 | reflect| the .X#|
|00000550| 20 6c 6f 63 61 74 69 6f | 6e 73 20 77 68 65 72 65 | locatio|ns where|
|00000560| 20 79 6f 75 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 | you wou|ld like |
|00000570| 74 6f 20 73 74 6f 72 65 | 20 74 68 65 20 65 78 65 |to store| the exe|
|00000580| 63 75 74 61 62 6c 65 73 | 2c 20 6c 69 62 72 61 72 |cutables|, librar|
|00000590| 79 20 28 66 6c 65 78 2e | 73 6b 65 6c 29 0a 58 23 |y (flex.|skel).X#|
|000005a0| 20 61 6e 64 20 74 68 65 | 20 6d 61 6e 75 61 6c 20 | and the| manual |
|000005b0| 70 61 67 65 73 2e 20 20 | 54 68 65 73 65 20 6e 61 |pages. |These na|
|000005c0| 6d 65 73 20 63 61 6e 20 | 62 65 20 64 65 66 69 6e |mes can |be defin|
|000005d0| 65 64 20 61 74 20 74 68 | 65 20 63 6f 6d 6d 61 6e |ed at th|e comman|
|000005e0| 64 20 6c 69 6e 65 0a 58 | 23 20 70 72 6f 6d 70 74 |d line.X|# prompt|
|000005f0| 3a 20 20 65 67 2e 0a 58 | 23 20 20 20 20 24 20 64 |: eg..X|# $ d|
|00000600| 65 66 69 6e 65 20 74 6f | 6f 6c 73 24 24 65 78 65 |efine to|ols$$exe|
|00000610| 20 64 69 73 6b 3a 5b 64 | 69 72 31 2e 64 69 72 32 | disk:[d|ir1.dir2|
|00000620| 2e 65 74 63 5d 0a 58 23 | 20 20 20 0a 58 23 20 4f |.etc].X#| .X# O|
|00000630| 6e 63 65 20 74 68 65 73 | 65 20 6e 61 6d 65 73 20 |nce thes|e names |
|00000640| 68 61 76 65 20 62 65 65 | 6e 20 64 65 66 69 6e 65 |have bee|n define|
|00000650| 64 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |d the fo|llowing |
|00000660| 63 6f 6d 6d 61 6e 64 73 | 0a 58 23 20 63 61 6e 20 |commands|.X# can |
|00000670| 62 65 20 65 78 65 63 75 | 74 65 64 20 61 74 20 74 |be execu|ted at t|
|00000680| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 3a |he comma|nd line:|
|00000690| 0a 58 23 0a 58 23 20 20 | 20 24 20 6d 6d 73 20 69 |.X#.X# | $ mms i|
|000006a0| 6e 73 74 61 6c 6c 0a 58 | 23 20 20 20 24 20 6d 6d |nstall.X|# $ mm|
|000006b0| 73 20 74 65 73 74 0a 58 | 23 20 20 20 24 20 6d 6d |s test.X|# $ mm|
|000006c0| 73 20 63 6c 65 61 6e 0a | 58 23 0a 58 23 20 57 68 |s clean.|X#.X# Wh|
|000006d0| 65 6e 20 22 6d 6d 73 20 | 74 65 73 74 22 20 69 73 |en "mms |test" is|
|000006e0| 20 65 78 65 63 75 74 65 | 64 20 74 68 65 20 64 69 | execute|d the di|
|000006f0| 66 66 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 73 68 |ff shoul|d not sh|
|00000700| 6f 77 20 61 6e 79 20 64 | 69 66 66 65 72 65 6e 63 |ow any d|ifferenc|
|00000710| 65 73 2e 20 49 6e 20 66 | 61 63 74 0a 58 23 20 74 |es. In f|act.X# t|
|00000720| 68 65 20 73 61 6d 65 20 | 65 66 66 65 63 74 20 63 |he same |effect c|
|00000730| 61 6e 20 62 65 20 61 63 | 68 69 65 76 65 64 20 62 |an be ac|hieved b|
|00000740| 79 0a 58 23 0a 58 23 20 | 20 20 24 20 6d 6d 73 20 |y.X#.X# | $ mms |
|00000750| 69 6e 73 74 61 6c 6c 2c | 20 74 65 73 74 2c 20 63 |install,| test, c|
|00000760| 6c 65 61 6e 0a 58 23 0a | 58 23 20 20 54 68 65 20 |lean.X#.|X# The |
|00000770| 66 69 6c 65 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |filename| of the |
|00000780| 74 68 65 20 6d 6d 73 20 | 64 65 73 63 72 69 70 74 |the mms |descript|
|00000790| 69 6f 6e 20 66 69 6c 65 | 2c 20 69 2e 65 2e 2c 20 |ion file|, i.e., |
|000007a0| 74 68 69 73 20 66 69 6c | 65 2c 0a 58 23 20 20 73 |this fil|e,.X# s|
|000007b0| 68 6f 75 6c 64 20 65 69 | 74 68 65 72 20 62 65 20 |hould ei|ther be |
|000007c0| 22 6d 61 6b 65 66 69 6c | 65 2e 22 20 6f 72 20 22 |"makefil|e." or "|
|000007d0| 64 65 63 72 69 70 2e 6d | 6d 73 22 0a 58 23 0a 58 |decrip.m|ms".X#.X|
|000007e0| 23 20 56 4d 53 20 6d 61 | 6b 65 20 66 69 6c 65 20 |# VMS ma|ke file |
|000007f0| 66 6f 72 20 22 66 6c 65 | 78 22 20 74 6f 6f 6c 0a |for "fle|x" tool.|
|00000800| 58 0a 58 23 20 52 65 64 | 65 66 69 6e 65 20 74 68 |X.X# Red|efine th|
|00000810| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 66 6f 72 20 |e follow|ing for |
|00000820| 79 6f 75 72 20 6f 77 6e | 20 65 6e 76 69 72 6f 6e |your own| environ|
|00000830| 6d 65 6e 74 0a 58 42 49 | 4e 20 3d 20 74 6f 6f 6c |ment.XBI|N = tool|
|00000840| 73 24 24 65 78 65 0a 58 | 4c 49 42 20 3d 20 74 6f |s$$exe.X|LIB = to|
|00000850| 6f 6c 73 24 24 6c 69 62 | 72 61 72 79 0a 58 4d 41 |ols$$lib|rary.XMA|
|00000860| 4e 20 3d 20 74 6f 6f 6c | 73 24 24 6d 61 6e 75 61 |N = tool|s$$manua|
|00000870| 6c 0a 58 47 4e 55 4c 49 | 42 20 3d 20 3c 2a 2a 2a |l.XGNULI|B = <***|
|00000880| 2a 2a 2a 64 69 72 65 63 | 74 6f 72 79 20 77 68 65 |***direc|tory whe|
|00000890| 72 65 20 79 6f 75 20 6b | 65 65 70 20 61 6c 6c 6f |re you k|eep allo|
|000008a0| 63 61 2e 6f 62 6a 20 61 | 6e 64 20 62 63 6f 70 79 |ca.obj a|nd bcopy|
|000008b0| 2e 6f 62 6a 2a 2a 2a 3e | 0a 58 0a 58 53 4b 45 4c |.obj***>|.X.XSKEL|
|000008c0| 45 54 4f 4e 5f 46 49 4c | 45 20 3d 20 22 44 45 46 |ETON_FIL|E = "DEF|
|000008d0| 41 55 4c 54 5f 53 4b 45 | 4c 45 54 4f 4e 5f 46 49 |AULT_SKE|LETON_FI|
|000008e0| 4c 45 3d 22 22 24 28 4c | 49 42 29 3a 46 4c 45 58 |LE=""$(L|IB):FLEX|
|000008f0| 2e 53 4b 45 4c 22 22 22 | 0a 58 0a 58 43 43 46 4c |.SKEL"""|.X.XCCFL|
|00000900| 41 47 53 20 3d 20 56 4d | 53 2c 55 53 47 0a 58 46 |AGS = VM|S,USG.XF|
|00000910| 4c 45 58 5f 46 4c 41 47 | 53 20 3d 20 2d 69 73 0a |LEX_FLAG|S = -is.|
|00000920| 58 0a 58 46 4c 45 58 4f | 42 4a 53 20 3d 20 63 63 |X.XFLEXO|BJS = cc|
|00000930| 6c 2e 6f 62 6a 20 64 66 | 61 2e 6f 62 6a 20 65 63 |l.obj df|a.obj ec|
|00000940| 73 2e 6f 62 6a 20 67 65 | 6e 2e 6f 62 6a 20 6d 61 |s.obj ge|n.obj ma|
|00000950| 69 6e 2e 6f 62 6a 20 6d | 69 73 63 2e 6f 62 6a 20 |in.obj m|isc.obj |
|00000960| 6e 66 61 2e 6f 62 6a 20 | 20 2d 0a 58 20 20 20 20 |nfa.obj | -.X |
|00000970| 20 20 20 20 20 20 20 70 | 61 72 73 65 2e 6f 62 6a | p|arse.obj|
|00000980| 20 73 63 61 6e 2e 6f 62 | 6a 20 73 79 6d 2e 6f 62 | scan.ob|j sym.ob|
|00000990| 6a 20 74 62 6c 63 6d 70 | 2e 6f 62 6a 20 79 79 6c |j tblcmp|.obj yyl|
|000009a0| 65 78 2e 6f 62 6a 20 0a | 58 0a 58 4f 42 4a 20 3d |ex.obj .|X.XOBJ =|
|000009b0| 20 63 63 6c 2e 6f 62 6a | 2c 64 66 61 2e 6f 62 6a | ccl.obj|,dfa.obj|
|000009c0| 2c 65 63 73 2e 6f 62 6a | 2c 67 65 6e 2e 6f 62 6a |,ecs.obj|,gen.obj|
|000009d0| 2c 6d 61 69 6e 2e 6f 62 | 6a 2c 6d 69 73 63 2e 6f |,main.ob|j,misc.o|
|000009e0| 62 6a 2c 6e 66 61 2e 6f | 62 6a 2c 70 61 72 73 65 |bj,nfa.o|bj,parse|
|000009f0| 2e 6f 62 6a 2c 20 2d 0a | 58 20 20 20 20 20 20 73 |.obj, -.|X s|
|00000a00| 63 61 6e 2e 6f 62 6a 2c | 73 79 6d 2e 6f 62 6a 2c |can.obj,|sym.obj,|
|00000a10| 74 62 6c 63 6d 70 2e 6f | 62 6a 2c 79 79 6c 65 78 |tblcmp.o|bj,yylex|
|00000a20| 2e 6f 62 6a 0a 58 0a 58 | 64 65 66 61 75 6c 74 20 |.obj.X.X|default |
|00000a30| 3a 20 66 6c 65 78 0a 58 | 09 21 20 69 6e 73 74 61 |: flex.X|.! insta|
|00000a40| 6c 6c 65 64 20 46 4c 45 | 58 0a 58 0a 58 69 6e 73 |lled FLE|X.X.Xins|
|00000a50| 74 61 6c 6c 20 3a 20 6c | 69 62 20 6d 61 6e 20 62 |tall : l|ib man b|
|00000a60| 69 6e 20 0a 58 09 21 49 | 6e 73 74 61 6c 6c 65 64 |in .X.!I|nstalled|
|00000a70| 20 46 4c 45 58 20 61 6e | 64 20 4c 49 42 52 41 52 | FLEX an|d LIBRAR|
|00000a80| 49 45 53 0a 58 0a 58 6c | 69 62 20 3a 20 24 28 4c |IES.X.Xl|ib : $(L|
|00000a90| 49 42 29 3a 66 6c 65 78 | 2e 73 6b 65 6c 0a 58 09 |IB):flex|.skel.X.|
|00000aa0| 21 20 49 6e 73 74 61 6c | 6c 65 64 20 24 28 4c 49 |! Instal|led $(LI|
|00000ab0| 42 29 3a 66 6c 65 78 2e | 73 6b 65 6c 0a 58 0a 58 |B):flex.|skel.X.X|
|00000ac0| 62 69 6e 20 3a 20 24 28 | 42 49 4e 29 3a 66 6c 65 |bin : $(|BIN):fle|
|00000ad0| 78 2e 65 78 65 0a 58 09 | 66 6c 65 78 20 3a 3d 3d |x.exe.X.|flex :==|
|00000ae0| 20 24 20 24 28 42 49 4e | 29 3a 66 6c 65 78 2e 65 | $ $(BIN|):flex.e|
|00000af0| 78 65 0a 58 0a 58 6d 61 | 6e 20 3a 20 24 28 4d 41 |xe.X.Xma|n : $(MA|
|00000b00| 4e 29 3a 66 6c 65 78 2e | 64 6f 63 0a 58 09 21 20 |N):flex.|doc.X.! |
|00000b10| 69 6e 73 74 61 6c 6c 65 | 64 20 24 28 4d 41 4e 29 |installe|d $(MAN)|
|00000b20| 3a 66 6c 65 78 2e 64 6f | 63 0a 58 0a 58 24 28 4c |:flex.do|c.X.X$(L|
|00000b30| 49 42 29 3a 66 6c 65 78 | 2e 73 6b 65 6c 20 3a 20 |IB):flex|.skel : |
|00000b40| 66 6c 65 78 2e 73 6b 65 | 6c 0a 58 09 63 6f 70 79 |flex.ske|l.X.copy|
|00000b50| 20 66 6c 65 78 2e 73 6b | 65 6c 20 24 28 4c 49 42 | flex.sk|el $(LIB|
|00000b60| 29 3a 66 6c 65 78 2e 73 | 6b 65 6c 0a 58 24 28 42 |):flex.s|kel.X$(B|
|00000b70| 49 4e 29 3a 66 6c 65 78 | 2e 65 78 65 20 3a 20 66 |IN):flex|.exe : f|
|00000b80| 6c 65 78 2e 65 78 65 0a | 58 09 63 6f 70 79 20 66 |lex.exe.|X.copy f|
|00000b90| 6c 65 78 2e 65 78 65 20 | 24 28 42 49 4e 29 3a 66 |lex.exe |$(BIN):f|
|00000ba0| 6c 65 78 2e 65 78 65 0a | 58 24 28 4d 41 4e 29 3a |lex.exe.|X$(MAN):|
|00000bb0| 66 6c 65 78 2e 64 6f 63 | 20 3a 20 66 6c 65 78 2e |flex.doc| : flex.|
|00000bc0| 31 0a 58 09 63 6f 70 79 | 20 66 6c 65 78 2e 31 20 |1.X.copy| flex.1 |
|00000bd0| 24 28 4d 41 4e 29 3a 66 | 6c 65 78 2e 64 6f 63 0a |$(MAN):f|lex.doc.|
|00000be0| 58 0a 58 66 6c 65 78 20 | 3a 20 66 6c 65 78 2e 65 |X.Xflex |: flex.e|
|00000bf0| 78 65 0a 58 09 63 6f 70 | 79 20 66 6c 65 78 2e 65 |xe.X.cop|y flex.e|
|00000c00| 78 65 20 24 28 42 49 4e | 29 3a 66 6c 65 78 2e 65 |xe $(BIN|):flex.e|
|00000c10| 78 65 0a 58 0a 58 66 6c | 65 78 2e 65 78 65 20 3a |xe.X.Xfl|ex.exe :|
|00000c20| 20 24 28 46 4c 45 58 4f | 42 4a 53 29 0a 58 09 6c | $(FLEXO|BJS).X.l|
|00000c30| 69 6e 6b 20 2f 65 78 65 | 3d 66 6c 65 78 2e 65 78 |ink /exe|=flex.ex|
|00000c40| 65 20 2d 0a 58 09 09 24 | 28 4f 42 4a 29 2c 20 20 |e -.X..$|(OBJ), |
|00000c50| 2d 0a 58 09 09 24 28 47 | 4e 55 4c 49 42 29 61 6c |-.X..$(G|NULIB)al|
|00000c60| 6c 6f 63 61 2e 6f 62 6a | 2c 20 20 2d 0a 58 09 09 |loca.obj|, -.X..|
|00000c70| 24 28 47 4e 55 4c 49 42 | 29 62 63 6f 70 79 2e 6f |$(GNULIB|)bcopy.o|
|00000c80| 62 6a 0a 58 0a 58 0a 58 | 70 61 72 73 65 2e 63 20 |bj.X.X.X|parse.c |
|00000c90| 3a 20 70 61 72 73 65 2e | 79 0a 58 09 62 69 73 6f |: parse.|y.X.biso|
|00000ca0| 6e 2f 64 65 66 69 6e 65 | 73 2f 76 65 72 62 6f 73 |n/define|s/verbos|
|00000cb0| 65 2f 66 69 78 65 64 5f | 6f 75 74 66 69 6c 65 73 |e/fixed_|outfiles|
|00000cc0| 20 70 61 72 73 65 2e 79 | 0a 58 09 63 6f 70 79 20 | parse.y|.X.copy |
|00000cd0| 79 5f 74 61 62 2e 63 20 | 70 61 72 73 65 2e 63 0a |y_tab.c |parse.c.|
|00000ce0| 58 09 64 65 6c 2f 6e 6f | 63 6f 6e 66 69 72 6d 20 |X.del/no|confirm |
|00000cf0| 79 5f 74 61 62 2e 63 3b | 2a 0a 58 0a 58 70 61 72 |y_tab.c;|*.X.Xpar|
|00000d00| 73 65 2e 68 20 3a 20 70 | 61 72 73 65 2e 63 0a 58 |se.h : p|arse.c.X|
|00000d10| 09 63 6f 70 79 20 79 5f | 74 61 62 2e 68 20 70 61 |.copy y_|tab.h pa|
|00000d20| 72 73 65 2e 68 0a 58 09 | 64 65 6c 2f 6e 6f 63 6f |rse.h.X.|del/noco|
|00000d30| 6e 66 69 72 6d 20 79 5f | 74 61 62 2e 68 3b 2a 0a |nfirm y_|tab.h;*.|
|00000d40| 58 0a 58 73 63 61 6e 2e | 63 20 3a 20 69 6e 69 74 |X.Xscan.|c : init|
|00000d50| 73 63 61 6e 2e 63 0a 58 | 09 63 6f 70 79 20 69 6e |scan.c.X|.copy in|
|00000d60| 69 74 73 63 61 6e 2e 63 | 20 73 63 61 6e 2e 63 0a |itscan.c| scan.c.|
|00000d70| 58 0a 58 63 63 6c 2e 6f | 62 6a 20 3a 20 63 63 6c |X.Xccl.o|bj : ccl|
|00000d80| 2e 63 20 66 6c 65 78 64 | 65 66 2e 68 0a 58 09 63 |.c flexd|ef.h.X.c|
|00000d90| 63 20 2f 64 65 66 69 6e | 65 3d 28 24 28 43 43 46 |c /defin|e=($(CCF|
|00000da0| 4c 41 47 53 29 29 20 63 | 63 6c 2e 63 0a 58 64 66 |LAGS)) c|cl.c.Xdf|
|00000db0| 61 2e 6f 62 6a 20 3a 20 | 64 66 61 2e 63 20 66 6c |a.obj : |dfa.c fl|
|00000dc0| 65 78 64 65 66 2e 68 0a | 58 09 63 63 20 2f 64 65 |exdef.h.|X.cc /de|
|00000dd0| 66 69 6e 65 3d 28 24 28 | 43 43 46 4c 41 47 53 29 |fine=($(|CCFLAGS)|
|00000de0| 29 20 64 66 61 2e 63 0a | 58 65 63 73 2e 6f 62 6a |) dfa.c.|Xecs.obj|
|00000df0| 20 3a 20 65 63 73 2e 63 | 20 66 6c 65 78 64 65 66 | : ecs.c| flexdef|
|00000e00| 2e 68 0a 58 09 63 63 20 | 2f 64 65 66 69 6e 65 3d |.h.X.cc |/define=|
|00000e10| 28 24 28 43 43 46 4c 41 | 47 53 29 29 20 65 63 73 |($(CCFLA|GS)) ecs|
|00000e20| 2e 63 0a 58 67 65 6e 2e | 6f 62 6a 20 3a 20 67 65 |.c.Xgen.|obj : ge|
|00000e30| 6e 2e 63 20 66 6c 65 78 | 64 65 66 2e 68 0a 58 09 |n.c flex|def.h.X.|
|00000e40| 63 63 20 2f 64 65 66 69 | 6e 65 3d 28 24 28 43 43 |cc /defi|ne=($(CC|
|00000e50| 46 4c 41 47 53 29 29 20 | 67 65 6e 2e 63 0a 58 6d |FLAGS)) |gen.c.Xm|
|00000e60| 61 69 6e 2e 6f 62 6a 20 | 3a 20 6d 61 69 6e 2e 63 |ain.obj |: main.c|
|00000e70| 20 66 6c 65 78 64 65 66 | 2e 68 0a 58 09 63 63 20 | flexdef|.h.X.cc |
|00000e80| 2f 64 65 66 69 6e 65 3d | 28 24 28 43 43 46 4c 41 |/define=|($(CCFLA|
|00000e90| 47 53 29 2c 24 28 53 4b | 45 4c 45 54 4f 4e 5f 46 |GS),$(SK|ELETON_F|
|00000ea0| 49 4c 45 29 29 20 6d 61 | 69 6e 2e 63 0a 58 6d 69 |ILE)) ma|in.c.Xmi|
|00000eb0| 73 63 2e 6f 62 6a 20 3a | 20 6d 69 73 63 2e 63 20 |sc.obj :| misc.c |
|00000ec0| 66 6c 65 78 64 65 66 2e | 68 0a 58 09 63 63 20 2f |flexdef.|h.X.cc /|
|00000ed0| 64 65 66 69 6e 65 3d 28 | 24 28 43 43 46 4c 41 47 |define=(|$(CCFLAG|
|00000ee0| 53 29 29 20 6d 69 73 63 | 2e 63 0a 58 6e 66 61 2e |S)) misc|.c.Xnfa.|
|00000ef0| 6f 62 6a 20 3a 20 6e 66 | 61 2e 63 20 66 6c 65 78 |obj : nf|a.c flex|
|00000f00| 64 65 66 2e 68 0a 58 09 | 63 63 20 2f 64 65 66 69 |def.h.X.|cc /defi|
|00000f10| 6e 65 3d 28 24 28 43 43 | 46 4c 41 47 53 29 29 20 |ne=($(CC|FLAGS)) |
|00000f20| 6e 66 61 2e 63 0a 58 70 | 61 72 73 65 2e 6f 62 6a |nfa.c.Xp|arse.obj|
|00000f30| 20 3a 20 70 61 72 73 65 | 2e 63 20 66 6c 65 78 64 | : parse|.c flexd|
|00000f40| 65 66 2e 68 20 70 61 72 | 73 65 2e 68 0a 58 09 63 |ef.h par|se.h.X.c|
|00000f50| 63 20 2f 64 65 66 69 6e | 65 3d 28 24 28 43 43 46 |c /defin|e=($(CCF|
|00000f60| 4c 41 47 53 29 29 20 70 | 61 72 73 65 2e 63 0a 58 |LAGS)) p|arse.c.X|
|00000f70| 73 63 61 6e 2e 6f 62 6a | 20 3a 20 73 63 61 6e 2e |scan.obj| : scan.|
|00000f80| 63 20 70 61 72 73 65 2e | 68 20 66 6c 65 78 64 65 |c parse.|h flexde|
|00000f90| 66 2e 68 0a 58 09 63 63 | 20 2f 64 65 66 69 6e 65 |f.h.X.cc| /define|
|00000fa0| 3d 28 24 28 43 43 46 4c | 41 47 53 29 29 20 73 63 |=($(CCFL|AGS)) sc|
|00000fb0| 61 6e 2e 63 0a 58 73 79 | 6d 2e 6f 62 6a 20 3a 20 |an.c.Xsy|m.obj : |
|00000fc0| 73 79 6d 2e 63 20 66 6c | 65 78 64 65 66 2e 68 0a |sym.c fl|exdef.h.|
|00000fd0| 58 09 63 63 20 2f 64 65 | 66 69 6e 65 3d 28 24 28 |X.cc /de|fine=($(|
|00000fe0| 43 43 46 4c 41 47 53 29 | 29 20 73 79 6d 2e 63 0a |CCFLAGS)|) sym.c.|
|00000ff0| 58 74 62 6c 63 6d 70 2e | 6f 62 6a 20 3a 20 74 62 |Xtblcmp.|obj : tb|
|00001000| 6c 63 6d 70 2e 63 20 66 | 6c 65 78 64 65 66 2e 68 |lcmp.c f|lexdef.h|
|00001010| 0a 58 09 63 63 20 2f 64 | 65 66 69 6e 65 3d 28 24 |.X.cc /d|efine=($|
|00001020| 28 43 43 46 4c 41 47 53 | 29 29 20 74 62 6c 63 6d |(CCFLAGS|)) tblcm|
|00001030| 70 2e 63 0a 58 79 79 6c | 65 78 2e 6f 62 6a 20 3a |p.c.Xyyl|ex.obj :|
|00001040| 20 79 79 6c 65 78 2e 63 | 20 70 61 72 73 65 2e 68 | yylex.c| parse.h|
|00001050| 20 66 6c 65 78 64 65 66 | 2e 68 0a 58 09 63 63 20 | flexdef|.h.X.cc |
|00001060| 2f 64 65 66 69 6e 65 3d | 28 24 28 43 43 46 4c 41 |/define=|($(CCFLA|
|00001070| 47 53 29 29 20 79 79 6c | 65 78 2e 63 0a 58 0a 58 |GS)) yyl|ex.c.X.X|
|00001080| 63 6c 65 61 6e 20 3a 0a | 58 09 21 20 43 6c 65 61 |clean :.|X.! Clea|
|00001090| 6e 69 6e 67 20 75 70 20 | 62 79 20 64 65 6c 65 74 |ning up |by delet|
|000010a0| 69 6e 67 20 75 6e 6e 65 | 63 65 73 73 61 72 79 20 |ing unne|cessary |
|000010b0| 6f 62 6a 65 63 74 20 66 | 69 6c 65 73 20 65 74 63 |object f|iles etc|
|000010c0| 2e 0a 58 09 2d 20 64 65 | 6c 65 74 65 2f 6e 6f 63 |..X.- de|lete/noc|
|000010d0| 6f 6e 66 69 72 6d 20 73 | 63 61 6e 2e 63 3b 2a 0a |onfirm s|can.c;*.|
|000010e0| 58 09 2d 20 64 65 6c 65 | 74 65 2f 6e 6f 63 6f 6e |X.- dele|te/nocon|
|000010f0| 66 69 72 6d 20 70 61 72 | 73 65 2e 63 3b 2a 0a 58 |firm par|se.c;*.X|
|00001100| 09 2d 20 64 65 6c 65 74 | 65 2f 6e 6f 63 6f 6e 66 |.- delet|e/noconf|
|00001110| 69 72 6d 20 70 61 72 73 | 65 2e 68 3b 2a 0a 58 09 |irm pars|e.h;*.X.|
|00001120| 2d 20 64 65 6c 65 74 65 | 2f 6e 6f 63 6f 6e 66 69 |- delete|/noconfi|
|00001130| 72 6d 20 6c 65 78 79 79 | 2e 63 3b 2a 0a 58 09 2d |rm lexyy|.c;*.X.-|
|00001140| 20 64 65 6c 65 74 65 2f | 6e 6f 63 6f 6e 66 69 72 | delete/|noconfir|
|00001150| 6d 20 2a 2e 6f 62 6a 3b | 2a 0a 58 09 2d 20 64 65 |m *.obj;|*.X.- de|
|00001160| 6c 65 74 65 2f 6e 6f 63 | 6f 6e 66 69 72 6d 20 66 |lete/noc|onfirm f|
|00001170| 6c 65 78 2a 2e 74 6d 70 | 3b 2a 0a 58 09 2d 20 64 |lex*.tmp|;*.X.- d|
|00001180| 65 6c 65 74 65 2f 6e 6f | 63 6f 6e 66 69 72 6d 20 |elete/no|confirm |
|00001190| 79 2e 6f 75 74 70 75 74 | 3b 2a 0a 58 09 2d 20 64 |y.output|;*.X.- d|
|000011a0| 65 6c 65 74 65 2f 6e 6f | 63 6f 6e 66 69 72 6d 20 |elete/no|confirm |
|000011b0| 2a 2e 64 69 66 66 3b 2a | 0a 58 09 2d 20 64 65 6c |*.diff;*|.X.- del|
|000011c0| 65 74 65 2f 6e 6f 63 6f | 6e 66 69 72 6d 20 79 5f |ete/noco|nfirm y_|
|000011d0| 74 61 62 2e 2a 3b 2a 0a | 58 09 2d 20 70 75 72 67 |tab.*;*.|X.- purg|
|000011e0| 65 2f 6c 6f 67 0a 58 0a | 58 74 65 73 74 20 3a 20 |e/log.X.|Xtest : |
|000011f0| 20 24 28 42 49 4e 29 3a | 66 6c 65 78 2e 65 78 65 | $(BIN):|flex.exe|
|00001200| 0a 58 09 66 6c 65 78 20 | 3a 3d 3d 20 24 20 24 28 |.X.flex |:== $ $(|
|00001210| 42 49 4e 29 3a 66 6c 65 | 78 2e 65 78 65 0a 58 09 |BIN):fle|x.exe.X.|
|00001220| 64 65 66 69 6e 65 20 74 | 6f 6f 6c 73 24 24 6c 69 |define t|ools$$li|
|00001230| 62 72 61 72 79 20 27 66 | 24 65 6e 76 69 72 6f 6e |brary 'f|$environ|
|00001240| 6d 65 6e 74 28 22 64 65 | 66 61 75 6c 74 22 29 27 |ment("de|fault")'|
|00001250| 0a 58 09 73 68 6f 20 6c | 6f 67 20 74 6f 6f 6c 24 |.X.sho l|og tool$|
|00001260| 24 6c 69 62 72 61 72 79 | 0a 58 09 66 6c 65 78 20 |$library|.X.flex |
|00001270| 24 28 46 4c 45 58 5f 46 | 4c 41 47 53 29 20 73 63 |$(FLEX_F|LAGS) sc|
|00001280| 61 6e 2e 6c 0a 58 09 64 | 69 66 66 2f 6f 75 74 3d |an.l.X.d|iff/out=|
|00001290| 66 6c 65 78 2e 64 69 66 | 66 20 69 6e 69 74 73 63 |flex.dif|f initsc|
|000012a0| 61 6e 2e 63 20 6c 65 78 | 79 79 2e 63 0a 58 09 74 |an.c lex|yy.c.X.t|
|000012b0| 79 70 65 2f 70 61 67 65 | 20 66 6c 65 78 2e 64 69 |ype/page| flex.di|
|000012c0| 66 66 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |ff.END_O|F_FILE. |
|000012d0| 20 69 66 20 74 65 73 74 | 20 33 35 33 37 20 2d 6e | if test| 3537 -n|
|000012e0| 65 20 60 77 63 20 2d 63 | 20 3c 27 4d 49 53 43 2f |e `wc -c| <'MISC/|
|000012f0| 4d 61 6b 65 66 69 6c 65 | 2e 56 4d 53 27 60 3b 20 |Makefile|.VMS'`; |
|00001300| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00001310| 61 72 3a 20 5c 22 27 4d | 49 53 43 2f 4d 61 6b 65 |ar: \"'M|ISC/Make|
|00001320| 66 69 6c 65 2e 56 4d 53 | 27 5c 22 20 75 6e 70 61 |file.VMS|'\" unpa|
|00001330| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|00001340| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|00001350| 6e 64 20 6f 66 20 27 4d | 49 53 43 2f 4d 61 6b 65 |nd of 'M|ISC/Make|
|00001360| 66 69 6c 65 2e 56 4d 53 | 27 0a 66 69 0a 69 66 20 |file.VMS|'.fi.if |
|00001370| 74 65 73 74 20 2d 66 20 | 27 4d 61 6b 65 66 69 6c |test -f |'Makefil|
|00001380| 65 27 20 2d 61 20 22 24 | 7b 31 7d 22 20 21 3d 20 |e' -a "$|{1}" != |
|00001390| 22 2d 63 22 20 3b 20 74 | 68 65 6e 20 0a 20 20 65 |"-c" ; t|hen . e|
|000013a0| 63 68 6f 20 73 68 61 72 | 3a 20 57 69 6c 6c 20 6e |cho shar|: Will n|
|000013b0| 6f 74 20 63 6c 6f 62 62 | 65 72 20 65 78 69 73 74 |ot clobb|er exist|
|000013c0| 69 6e 67 20 66 69 6c 65 | 20 5c 22 27 4d 61 6b 65 |ing file| \"'Make|
|000013d0| 66 69 6c 65 27 5c 22 0a | 65 6c 73 65 0a 20 20 65 |file'\".|else. e|
|000013e0| 63 68 6f 20 73 68 61 72 | 3a 20 45 78 74 72 61 63 |cho shar|: Extrac|
|000013f0| 74 69 6e 67 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |ting \"'|Makefile|
|00001400| 27 5c 22 20 5c 28 34 38 | 37 36 20 63 68 61 72 61 |'\" \(48|76 chara|
|00001410| 63 74 65 72 73 5c 29 0a | 20 20 73 65 64 20 22 73 |cters\).| sed "s|
|00001420| 2f 5e 58 2f 2f 22 20 3e | 27 4d 61 6b 65 66 69 6c |/^X//" >|'Makefil|
|00001430| 65 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |e' <<'EN|D_OF_FIL|
|00001440| 45 27 0a 58 23 20 6d 61 | 6b 65 20 66 69 6c 65 20 |E'.X# ma|ke file |
|00001450| 66 6f 72 20 22 66 6c 65 | 78 22 20 74 6f 6f 6c 0a |for "fle|x" tool.|
|00001460| 58 0a 58 23 20 40 28 23 | 29 20 24 48 65 61 64 65 |X.X# @(#|) $Heade|
|00001470| 72 3a 20 2f 75 73 72 2f | 66 73 79 73 2f 6f 64 69 |r: /usr/|fsys/odi|
|00001480| 6e 2f 61 2f 76 65 72 6e | 2f 66 6c 65 78 2f 52 43 |n/a/vern|/flex/RC|
|00001490| 53 2f 4d 61 6b 65 66 69 | 6c 65 2c 76 20 32 2e 39 |S/Makefi|le,v 2.9|
|000014a0| 20 39 30 2f 30 35 2f 32 | 36 20 31 37 3a 32 38 3a | 90/05/2|6 17:28:|
|000014b0| 34 34 20 76 65 72 6e 20 | 45 78 70 20 24 20 28 4c |44 vern |Exp $ (L|
|000014c0| 42 4c 29 0a 58 0a 58 23 | 20 50 6f 72 74 69 6e 67 |BL).X.X#| Porting|
|000014d0| 20 63 6f 6e 73 69 64 65 | 72 61 74 69 6f 6e 73 3a | conside|rations:|
|000014e0| 0a 58 23 0a 58 23 20 20 | 20 20 46 6f 72 20 53 79 |.X#.X# | For Sy|
|000014f0| 73 74 65 6d 20 56 20 55 | 6e 69 78 20 6d 61 63 68 |stem V U|nix mach|
|00001500| 69 6e 65 73 2c 20 61 64 | 64 20 2d 44 55 53 47 20 |ines, ad|d -DUSG |
|00001510| 74 6f 20 43 46 4c 41 47 | 53 20 28 69 66 20 69 74 |to CFLAG|S (if it|
|00001520| 27 73 20 6e 6f 74 0a 58 | 23 20 20 20 20 20 20 20 |'s not.X|# |
|00001530| 20 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 | automa|tically |
|00001540| 64 65 66 69 6e 65 64 29 | 0a 58 23 20 20 20 20 46 |defined)|.X# F|
|00001550| 6f 72 20 56 61 78 2f 56 | 4d 53 2c 20 61 64 64 20 |or Vax/V|MS, add |
|00001560| 22 2d 44 56 4d 53 20 2d | 44 55 53 47 22 20 74 6f |"-DVMS -|DUSG" to|
|00001570| 20 43 46 4c 41 47 53 2e | 0a 58 23 20 20 20 20 46 | CFLAGS.|.X# F|
|00001580| 6f 72 20 4d 53 2d 44 4f | 53 2c 20 61 64 64 20 22 |or MS-DO|S, add "|
|00001590| 2d 44 4d 53 5f 44 4f 53 | 20 2d 44 55 53 47 22 20 |-DMS_DOS| -DUSG" |
|000015a0| 74 6f 20 43 46 4c 41 47 | 53 2e 20 20 43 72 65 61 |to CFLAG|S. Crea|
|000015b0| 74 65 20 5c 74 6d 70 20 | 69 66 20 6e 6f 74 20 70 |te \tmp |if not p|
|000015c0| 72 65 73 65 6e 74 2e 0a | 58 23 20 20 20 20 20 20 |resent..|X# |
|000015d0| 20 20 20 59 6f 75 20 77 | 69 6c 6c 20 61 6c 73 6f | You w|ill also|
|000015e0| 20 77 61 6e 74 20 74 6f | 20 72 65 6e 61 6d 65 20 | want to| rename |
|000015f0| 66 6c 65 78 2e 73 6b 65 | 6c 20 74 6f 20 73 6f 6d |flex.ske|l to som|
|00001600| 65 74 68 69 6e 67 20 77 | 69 74 68 20 61 20 74 68 |ething w|ith a th|
|00001610| 72 65 65 0a 58 23 20 20 | 20 20 20 20 20 20 20 63 |ree.X# | c|
|00001620| 68 61 72 61 63 74 65 72 | 20 65 78 74 65 6e 73 69 |haracter| extensi|
|00001630| 6f 6e 2c 20 63 68 61 6e | 67 65 20 53 4b 45 4c 45 |on, chan|ge SKELE|
|00001640| 54 4f 4e 5f 46 49 4c 45 | 20 62 65 6c 6f 77 20 61 |TON_FILE| below a|
|00001650| 70 70 72 6f 70 72 69 61 | 74 65 6c 79 2c 0a 58 23 |ppropria|tely,.X#|
|00001660| 09 20 20 53 65 65 20 4d | 53 44 4f 53 2e 6e 6f 74 |. See M|SDOS.not|
|00001670| 65 73 20 66 6f 72 20 6d | 6f 72 65 20 69 6e 66 6f |es for m|ore info|
|00001680| 2e 0a 58 23 20 20 20 20 | 46 6f 72 20 41 6d 69 67 |..X# |For Amig|
|00001690| 61 2c 20 61 64 64 20 22 | 2d 44 41 4d 49 47 41 20 |a, add "|-DAMIGA |
|000016a0| 2d 44 55 53 47 22 20 74 | 6f 20 43 46 4c 41 47 53 |-DUSG" t|o CFLAGS|
|000016b0| 2e 0a 58 23 20 20 20 20 | 46 6f 72 20 53 43 4f 20 |..X# |For SCO |
|000016c0| 55 6e 69 78 2c 20 61 64 | 64 20 22 2d 44 53 43 4f |Unix, ad|d "-DSCO|
|000016d0| 5f 55 4e 49 58 22 20 74 | 6f 20 43 46 4c 41 47 53 |_UNIX" t|o CFLAGS|
|000016e0| 2e 0a 58 23 0a 58 23 20 | 20 20 20 46 6f 72 20 43 |..X#.X# | For C|
|000016f0| 20 63 6f 6d 70 69 6c 65 | 72 73 20 77 68 69 63 68 | compile|rs which|
|00001700| 20 64 6f 6e 27 74 20 6b | 6e 6f 77 20 61 62 6f 75 | don't k|now abou|
|00001710| 74 20 22 76 6f 69 64 22 | 2c 20 61 64 64 20 2d 44 |t "void"|, add -D|
|00001720| 76 6f 69 64 3d 69 6e 74 | 20 74 6f 20 43 46 4c 41 |void=int| to CFLA|
|00001730| 47 53 2e 0a 58 23 0a 58 | 23 20 20 20 20 49 66 20 |GS..X#.X|# If |
|00001740| 79 6f 75 72 20 43 20 63 | 6f 6d 70 69 6c 65 72 20 |your C c|ompiler |
|00001750| 69 73 20 41 4e 53 49 20 | 73 74 61 6e 64 61 72 64 |is ANSI |standard|
|00001760| 20 62 75 74 20 64 6f 65 | 73 20 6e 6f 74 20 69 6e | but doe|s not in|
|00001770| 63 6c 75 64 65 20 74 68 | 65 20 3c 73 74 64 6c 69 |clude th|e <stdli|
|00001780| 62 2e 68 3e 0a 58 23 20 | 20 20 20 68 65 61 64 65 |b.h>.X# | heade|
|00001790| 72 20 66 69 6c 65 20 28 | 73 6f 6d 65 20 69 6e 73 |r file (|some ins|
|000017a0| 74 61 6c 6c 61 74 69 6f | 6e 73 20 6f 66 20 67 63 |tallatio|ns of gc|
|000017b0| 63 20 68 61 76 65 20 74 | 68 69 73 20 70 72 6f 62 |c have t|his prob|
|000017c0| 6c 65 6d 29 2c 20 74 68 | 65 6e 20 61 64 64 0a 58 |lem), th|en add.X|
|000017d0| 23 20 20 20 20 2d 44 44 | 4f 4e 54 5f 48 41 56 45 |# -DD|ONT_HAVE|
|000017e0| 5f 53 54 44 4c 49 42 5f | 48 20 74 6f 20 43 46 4c |_STDLIB_|H to CFL|
|000017f0| 41 47 53 2e 0a 58 23 0a | 58 23 20 42 79 20 64 65 |AGS..X#.|X# By de|
|00001800| 66 61 75 6c 74 2c 20 66 | 6c 65 78 20 77 69 6c 6c |fault, f|lex will|
|00001810| 20 62 65 20 63 6f 6e 66 | 69 67 75 72 65 64 20 74 | be conf|igured t|
|00001820| 6f 20 67 65 6e 65 72 61 | 74 65 20 38 2d 62 69 74 |o genera|te 8-bit|
|00001830| 20 73 63 61 6e 6e 65 72 | 73 20 6f 6e 6c 79 0a 58 | scanner|s only.X|
|00001840| 23 20 69 66 20 74 68 65 | 20 2d 38 20 66 6c 61 67 |# if the| -8 flag|
|00001850| 20 69 73 20 67 69 76 65 | 6e 2e 20 20 49 66 20 79 | is give|n. If y|
|00001860| 6f 75 20 77 61 6e 74 20 | 69 74 20 74 6f 20 61 6c |ou want |it to al|
|00001870| 77 61 79 73 20 67 65 6e | 65 72 61 74 65 20 38 2d |ways gen|erate 8-|
|00001880| 62 69 74 0a 58 23 20 73 | 63 61 6e 6e 65 72 73 2c |bit.X# s|canners,|
|00001890| 20 61 64 64 20 22 2d 44 | 44 45 46 41 55 4c 54 5f | add "-D|DEFAULT_|
|000018a0| 43 53 49 5a 45 3d 32 35 | 36 22 20 74 6f 20 43 46 |CSIZE=25|6" to CF|
|000018b0| 4c 41 47 53 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |LAGS. N|ote that|
|000018c0| 20 64 6f 69 6e 67 0a 58 | 23 20 73 6f 20 77 69 6c | doing.X|# so wil|
|000018d0| 6c 20 64 6f 75 62 6c 65 | 20 74 68 65 20 73 69 7a |l double| the siz|
|000018e0| 65 20 6f 66 20 61 6c 6c | 20 75 6e 63 6f 6d 70 72 |e of all| uncompr|
|000018f0| 65 73 73 65 64 20 73 63 | 61 6e 6e 65 72 73 2e 0a |essed sc|anners..|
|00001900| 58 23 20 0a 58 23 20 49 | 66 20 6f 6e 20 79 6f 75 |X# .X# I|f on you|
|00001910| 72 20 73 79 73 74 65 6d | 20 79 6f 75 20 68 61 76 |r system| you hav|
|00001920| 65 20 74 72 6f 75 62 6c | 65 20 62 75 69 6c 64 69 |e troubl|e buildi|
|00001930| 6e 67 20 66 6c 65 78 20 | 64 75 65 20 74 6f 20 38 |ng flex |due to 8|
|00001940| 2d 62 69 74 0a 58 23 20 | 63 68 61 72 61 63 74 65 |-bit.X# |characte|
|00001950| 72 20 70 72 6f 62 6c 65 | 6d 73 2c 20 72 65 6d 6f |r proble|ms, remo|
|00001960| 76 65 20 74 68 65 20 2d | 38 20 66 72 6f 6d 20 46 |ve the -|8 from F|
|00001970| 4c 45 58 5f 46 4c 41 47 | 53 20 61 6e 64 20 74 68 |LEX_FLAG|S and th|
|00001980| 65 0a 58 23 20 22 23 64 | 65 66 69 6e 65 20 46 4c |e.X# "#d|efine FL|
|00001990| 45 58 5f 38 5f 42 49 54 | 5f 43 48 41 52 53 22 20 |EX_8_BIT|_CHARS" |
|000019a0| 66 72 6f 6d 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |from the| beginni|
|000019b0| 6e 67 20 6f 66 20 66 6c | 65 78 64 65 66 2e 68 2e |ng of fl|exdef.h.|
|000019c0| 0a 58 0a 58 0a 58 23 20 | 74 68 65 20 66 69 72 73 |.X.X.X# |the firs|
|000019d0| 74 20 74 69 6d 65 20 61 | 72 6f 75 6e 64 20 75 73 |t time a|round us|
|000019e0| 65 20 22 6d 61 6b 65 20 | 66 69 72 73 74 5f 66 6c |e "make |first_fl|
|000019f0| 65 78 22 0a 58 0a 58 0a | 58 23 20 49 6e 73 74 61 |ex".X.X.|X# Insta|
|00001a00| 6c 6c 61 74 69 6f 6e 20 | 74 61 72 67 65 74 69 6e |llation |targetin|
|00001a10| 67 2e 20 20 46 69 6c 65 | 73 20 77 69 6c 6c 20 62 |g. File|s will b|
|00001a20| 65 20 69 6e 73 74 61 6c | 6c 65 64 20 75 6e 64 65 |e instal|led unde|
|00001a30| 72 20 74 68 65 20 74 72 | 65 65 20 72 6f 6f 74 65 |r the tr|ee roote|
|00001a40| 64 0a 58 23 20 61 74 20 | 44 45 53 54 44 49 52 2e |d.X# at |DESTDIR.|
|00001a50| 20 20 55 73 65 72 20 63 | 6f 6d 6d 61 6e 64 73 20 | User c|ommands |
|00001a60| 77 69 6c 6c 20 62 65 20 | 69 6e 73 74 61 6c 6c 65 |will be |installe|
|00001a70| 64 20 69 6e 20 42 49 4e | 44 49 52 2c 20 6c 69 62 |d in BIN|DIR, lib|
|00001a80| 72 61 72 79 20 66 69 6c | 65 73 0a 58 23 20 69 6e |rary fil|es.X# in|
|00001a90| 20 4c 49 42 44 49 52 20 | 28 77 68 69 63 68 20 77 | LIBDIR |(which w|
|00001aa0| 69 6c 6c 20 62 65 20 63 | 72 65 61 74 65 64 20 69 |ill be c|reated i|
|00001ab0| 66 20 6e 65 63 65 73 73 | 61 72 79 29 2c 20 61 75 |f necess|ary), au|
|00001ac0| 78 69 6c 69 61 72 79 20 | 66 69 6c 65 73 20 69 6e |xiliary |files in|
|00001ad0| 0a 58 23 20 41 55 58 44 | 49 52 2c 20 6d 61 6e 75 |.X# AUXD|IR, manu|
|00001ae0| 61 6c 20 70 61 67 65 73 | 20 77 69 6c 6c 20 62 65 |al pages| will be|
|00001af0| 20 69 6e 73 74 61 6c 6c | 65 64 20 69 6e 20 4d 41 | install|ed in MA|
|00001b00| 4e 44 49 52 20 77 69 74 | 68 20 65 78 74 65 6e 73 |NDIR wit|h extens|
|00001b10| 69 6f 6e 20 4d 41 4e 45 | 58 54 2e 0a 58 23 20 52 |ion MANE|XT..X# R|
|00001b20| 61 77 2c 20 75 6e 66 6f | 72 6d 61 74 74 65 64 20 |aw, unfo|rmatted |
|00001b30| 74 72 6f 66 66 20 73 6f | 75 72 63 65 20 77 69 6c |troff so|urce wil|
|00001b40| 6c 20 62 65 20 69 6e 73 | 74 61 6c 6c 65 64 20 69 |l be ins|talled i|
|00001b50| 66 20 49 4e 53 54 41 4c | 4c 4d 41 4e 3d 6d 61 6e |f INSTAL|LMAN=man|
|00001b60| 2c 20 6e 72 6f 66 66 0a | 58 23 20 70 72 65 66 6f |, nroff.|X# prefo|
|00001b70| 72 6d 61 74 74 65 64 20 | 76 65 72 73 69 6f 6e 73 |rmatted |versions|
|00001b80| 20 77 69 6c 6c 20 62 65 | 20 69 6e 73 74 61 6c 6c | will be| install|
|00001b90| 65 64 20 69 66 20 49 4e | 53 54 41 4c 4c 4d 41 4e |ed if IN|STALLMAN|
|00001ba0| 3d 63 61 74 2e 0a 58 44 | 45 53 54 44 49 52 20 3d |=cat..XD|ESTDIR =|
|00001bb0| 0a 58 42 49 4e 44 49 52 | 20 3d 20 2f 75 73 72 2f |.XBINDIR| = /usr/|
|00001bc0| 6c 6f 63 61 6c 0a 58 4c | 49 42 44 49 52 20 3d 20 |local.XL|IBDIR = |
|00001bd0| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6c 69 62 0a 58 |/usr/loc|al/lib.X|
|00001be0| 41 55 58 44 49 52 20 3d | 20 2f 75 73 72 2f 6c 6f |AUXDIR =| /usr/lo|
|00001bf0| 63 61 6c 2f 6c 69 62 0a | 58 4d 41 4e 44 49 52 20 |cal/lib.|XMANDIR |
|00001c00| 3d 20 2f 75 73 72 2f 6d | 61 6e 2f 6d 61 6e 6c 0a |= /usr/m|an/manl.|
|00001c10| 58 4d 41 4e 45 58 54 20 | 3d 20 6c 0a 58 49 4e 53 |XMANEXT |= l.XINS|
|00001c20| 54 41 4c 4c 4d 41 4e 20 | 3d 20 6d 61 6e 0a 58 0a |TALLMAN |= man.X.|
|00001c30| 58 23 20 4d 41 4b 45 20 | 3d 20 6d 61 6b 65 0a 58 |X# MAKE |= make.X|
|00001c40| 0a 58 0a 58 53 4b 45 4c | 45 54 4f 4e 5f 46 49 4c |.X.XSKEL|ETON_FIL|
|00001c50| 45 20 3d 20 24 28 44 45 | 53 54 44 49 52 29 24 28 |E = $(DE|STDIR)$(|
|00001c60| 41 55 58 44 49 52 29 2f | 66 6c 65 78 2e 73 6b 65 |AUXDIR)/|flex.ske|
|00001c70| 6c 0a 58 53 4b 45 4c 46 | 4c 41 47 53 20 3d 20 2d |l.XSKELF|LAGS = -|
|00001c80| 44 44 45 46 41 55 4c 54 | 5f 53 4b 45 4c 45 54 4f |DDEFAULT|_SKELETO|
|00001c90| 4e 5f 46 49 4c 45 3d 5c | 22 24 28 53 4b 45 4c 45 |N_FILE=\|"$(SKELE|
|00001ca0| 54 4f 4e 5f 46 49 4c 45 | 29 5c 22 0a 58 43 46 4c |TON_FILE|)\".XCFL|
|00001cb0| 41 47 53 20 3d 20 2d 4f | 0a 58 4c 44 46 4c 41 47 |AGS = -O|.XLDFLAG|
|00001cc0| 53 20 3d 20 2d 73 0a 58 | 0a 58 43 4f 4d 50 52 45 |S = -s.X|.XCOMPRE|
|00001cd0| 53 53 49 4f 4e 20 3d 0a | 58 46 4c 45 58 5f 46 4c |SSION =.|XFLEX_FL|
|00001ce0| 41 47 53 20 3d 20 2d 69 | 73 74 38 20 2d 53 66 6c |AGS = -i|st8 -Sfl|
|00001cf0| 65 78 2e 73 6b 65 6c 0a | 58 23 20 77 68 69 63 68 |ex.skel.|X# which|
|00001d00| 20 22 66 6c 65 78 22 20 | 74 6f 20 75 73 65 20 74 | "flex" |to use t|
|00001d10| 6f 20 67 65 6e 65 72 61 | 74 65 20 73 63 61 6e 2e |o genera|te scan.|
|00001d20| 63 20 66 72 6f 6d 20 73 | 63 61 6e 2e 6c 0a 58 46 |c from s|can.l.XF|
|00001d30| 4c 45 58 20 3d 20 2e 2f | 66 6c 65 78 0a 58 23 20 |LEX = ./|flex.X# |
|00001d40| 43 43 20 3d 20 63 63 0a | 58 0a 58 41 52 20 3d 20 |CC = cc.|X.XAR = |
|00001d50| 61 72 0a 58 52 41 4e 4c | 49 42 20 3d 20 72 61 6e |ar.XRANL|IB = ran|
|00001d60| 6c 69 62 0a 58 0a 58 46 | 4c 45 58 4f 42 4a 53 20 |lib.X.XF|LEXOBJS |
|00001d70| 3d 20 5c 0a 58 09 63 63 | 6c 2e 6f 20 5c 0a 58 09 |= \.X.cc|l.o \.X.|
|00001d80| 64 66 61 2e 6f 20 5c 0a | 58 09 65 63 73 2e 6f 20 |dfa.o \.|X.ecs.o |
|00001d90| 5c 0a 58 09 67 65 6e 2e | 6f 20 5c 0a 58 09 6d 61 |\.X.gen.|o \.X.ma|
|00001da0| 69 6e 2e 6f 20 5c 0a 58 | 09 6d 69 73 63 2e 6f 20 |in.o \.X|.misc.o |
|00001db0| 5c 0a 58 09 6e 66 61 2e | 6f 20 5c 0a 58 09 70 61 |\.X.nfa.|o \.X.pa|
|00001dc0| 72 73 65 2e 6f 20 5c 0a | 58 09 73 63 61 6e 2e 6f |rse.o \.|X.scan.o|
|00001dd0| 20 5c 0a 58 09 73 79 6d | 2e 6f 20 5c 0a 58 09 74 | \.X.sym|.o \.X.t|
|00001de0| 62 6c 63 6d 70 2e 6f 20 | 5c 0a 58 09 79 79 6c 65 |blcmp.o |\.X.yyle|
|00001df0| 78 2e 6f 0a 58 0a 58 46 | 4c 45 58 5f 43 5f 53 4f |x.o.X.XF|LEX_C_SO|
|00001e00| 55 52 43 45 53 20 3d 20 | 5c 0a 58 09 63 63 6c 2e |URCES = |\.X.ccl.|
|00001e10| 63 20 5c 0a 58 09 64 66 | 61 2e 63 20 5c 0a 58 09 |c \.X.df|a.c \.X.|
|00001e20| 65 63 73 2e 63 20 5c 0a | 58 09 67 65 6e 2e 63 20 |ecs.c \.|X.gen.c |
|00001e30| 5c 0a 58 09 6d 61 69 6e | 2e 63 20 5c 0a 58 09 6d |\.X.main|.c \.X.m|
|00001e40| 69 73 63 2e 63 20 5c 0a | 58 09 6e 66 61 2e 63 20 |isc.c \.|X.nfa.c |
|00001e50| 5c 0a 58 09 70 61 72 73 | 65 2e 63 20 5c 0a 58 09 |\.X.pars|e.c \.X.|
|00001e60| 73 63 61 6e 2e 63 20 5c | 0a 58 09 73 79 6d 2e 63 |scan.c \|.X.sym.c|
|00001e70| 20 5c 0a 58 09 74 62 6c | 63 6d 70 2e 63 20 5c 0a | \.X.tbl|cmp.c \.|
|00001e80| 58 09 79 79 6c 65 78 2e | 63 0a 58 0a 58 46 4c 45 |X.yylex.|c.X.XFLE|
|00001e90| 58 5f 4c 49 42 5f 4f 42 | 4a 53 20 3d 20 5c 0a 58 |X_LIB_OB|JS = \.X|
|00001ea0| 09 6c 69 62 6d 61 69 6e | 2e 6f 0a 58 0a 58 46 4c |.libmain|.o.X.XFL|
|00001eb0| 45 58 4c 49 42 20 3d 20 | 66 6c 65 78 6c 69 62 2e |EXLIB = |flexlib.|
|00001ec0| 61 0a 58 0a 58 0a 58 61 | 6c 6c 20 3a 20 66 6c 65 |a.X.X.Xa|ll : fle|
|00001ed0| 78 20 24 28 46 4c 45 58 | 4c 49 42 29 0a 58 0a 58 |x $(FLEX|LIB).X.X|
|00001ee0| 66 6c 65 78 20 3a 20 24 | 28 46 4c 45 58 4f 42 4a |flex : $|(FLEXOBJ|
|00001ef0| 53 29 0a 58 09 24 28 43 | 43 29 20 24 28 43 46 4c |S).X.$(C|C) $(CFL|
|00001f00| 41 47 53 29 20 2d 6f 20 | 66 6c 65 78 20 24 28 4c |AGS) -o |flex $(L|
|00001f10| 44 46 4c 41 47 53 29 20 | 24 28 46 4c 45 58 4f 42 |DFLAGS) |$(FLEXOB|
|00001f20| 4a 53 29 0a 58 0a 58 66 | 69 72 73 74 5f 66 6c 65 |JS).X.Xf|irst_fle|
|00001f30| 78 3a 0a 58 09 63 70 20 | 69 6e 69 74 73 63 61 6e |x:.X.cp |initscan|
|00001f40| 2e 63 20 73 63 61 6e 2e | 63 0a 58 09 24 28 4d 41 |.c scan.|c.X.$(MA|
|00001f50| 4b 45 29 20 24 28 4d 46 | 4c 41 47 53 29 20 66 6c |KE) $(MF|LAGS) fl|
|00001f60| 65 78 0a 58 0a 58 70 61 | 72 73 65 2e 68 20 70 61 |ex.X.Xpa|rse.h pa|
|00001f70| 72 73 65 2e 63 20 3a 20 | 70 61 72 73 65 2e 79 0a |rse.c : |parse.y.|
|00001f80| 58 09 24 28 59 41 43 43 | 29 20 2d 64 20 70 61 72 |X.$(YACC|) -d par|
|00001f90| 73 65 2e 79 0a 58 09 40 | 6d 76 20 79 2e 74 61 62 |se.y.X.@|mv y.tab|
|00001fa0| 2e 63 20 70 61 72 73 65 | 2e 63 0a 58 09 40 6d 76 |.c parse|.c.X.@mv|
|00001fb0| 20 79 2e 74 61 62 2e 68 | 20 70 61 72 73 65 2e 68 | y.tab.h| parse.h|
|00001fc0| 0a 58 0a 58 73 63 61 6e | 2e 63 20 3a 20 73 63 61 |.X.Xscan|.c : sca|
|00001fd0| 6e 2e 6c 0a 58 09 24 28 | 46 4c 45 58 29 20 24 28 |n.l.X.$(|FLEX) $(|
|00001fe0| 46 4c 45 58 5f 46 4c 41 | 47 53 29 20 24 28 43 4f |FLEX_FLA|GS) $(CO|
|00001ff0| 4d 50 52 45 53 53 49 4f | 4e 29 20 73 63 61 6e 2e |MPRESSIO|N) scan.|
|00002000| 6c 20 3e 73 63 61 6e 2e | 63 0a 58 0a 58 73 63 61 |l >scan.|c.X.Xsca|
|00002010| 6e 2e 6f 20 3a 20 73 63 | 61 6e 2e 63 20 70 61 72 |n.o : sc|an.c par|
|00002020| 73 65 2e 68 20 66 6c 65 | 78 64 65 66 2e 68 0a 58 |se.h fle|xdef.h.X|
|00002030| 0a 58 6d 61 69 6e 2e 6f | 20 3a 20 6d 61 69 6e 2e |.Xmain.o| : main.|
|00002040| 63 20 66 6c 65 78 64 65 | 66 2e 68 0a 58 09 24 28 |c flexde|f.h.X.$(|
|00002050| 43 43 29 20 24 28 43 46 | 4c 41 47 53 29 20 2d 63 |CC) $(CF|LAGS) -c|
|00002060| 20 24 28 53 4b 45 4c 46 | 4c 41 47 53 29 20 6d 61 | $(SKELF|LAGS) ma|
|00002070| 69 6e 2e 63 0a 58 0a 58 | 63 63 6c 2e 6f 20 3a 20 |in.c.X.X|ccl.o : |
|00002080| 63 63 6c 2e 63 20 66 6c | 65 78 64 65 66 2e 68 0a |ccl.c fl|exdef.h.|
|00002090| 58 64 66 61 2e 6f 20 3a | 20 64 66 61 2e 63 20 66 |Xdfa.o :| dfa.c f|
|000020a0| 6c 65 78 64 65 66 2e 68 | 0a 58 65 63 73 2e 6f 20 |lexdef.h|.Xecs.o |
|000020b0| 3a 20 65 63 73 2e 63 20 | 66 6c 65 78 64 65 66 2e |: ecs.c |flexdef.|
|000020c0| 68 0a 58 67 65 6e 2e 6f | 20 3a 20 67 65 6e 2e 63 |h.Xgen.o| : gen.c|
|000020d0| 20 66 6c 65 78 64 65 66 | 2e 68 0a 58 6d 69 73 63 | flexdef|.h.Xmisc|
|000020e0| 2e 6f 20 3a 20 6d 69 73 | 63 2e 63 20 66 6c 65 78 |.o : mis|c.c flex|
|000020f0| 64 65 66 2e 68 0a 58 6e | 66 61 2e 6f 20 3a 20 6e |def.h.Xn|fa.o : n|
|00002100| 66 61 2e 63 20 66 6c 65 | 78 64 65 66 2e 68 0a 58 |fa.c fle|xdef.h.X|
|00002110| 70 61 72 73 65 2e 6f 20 | 3a 20 70 61 72 73 65 2e |parse.o |: parse.|
|00002120| 63 20 66 6c 65 78 64 65 | 66 2e 68 0a 58 73 79 6d |c flexde|f.h.Xsym|
|00002130| 2e 6f 20 3a 20 73 79 6d | 2e 63 20 66 6c 65 78 64 |.o : sym|.c flexd|
|00002140| 65 66 2e 68 0a 58 74 62 | 6c 63 6d 70 2e 6f 20 3a |ef.h.Xtb|lcmp.o :|
|00002150| 20 74 62 6c 63 6d 70 2e | 63 20 66 6c 65 78 64 65 | tblcmp.|c flexde|
|00002160| 66 2e 68 0a 58 79 79 6c | 65 78 2e 6f 20 3a 20 79 |f.h.Xyyl|ex.o : y|
|00002170| 79 6c 65 78 2e 63 20 66 | 6c 65 78 64 65 66 2e 68 |ylex.c f|lexdef.h|
|00002180| 0a 58 0a 58 66 6c 65 78 | 2e 6d 61 6e 20 3a 20 66 |.X.Xflex|.man : f|
|00002190| 6c 65 78 2e 31 0a 58 09 | 6e 72 6f 66 66 20 2d 6d |lex.1.X.|nroff -m|
|000021a0| 61 6e 20 66 6c 65 78 2e | 31 20 3e 66 6c 65 78 2e |an flex.|1 >flex.|
|000021b0| 6d 61 6e 0a 58 0a 58 24 | 28 46 4c 45 58 4c 49 42 |man.X.X$|(FLEXLIB|
|000021c0| 29 20 3a 20 24 28 46 4c | 45 58 5f 4c 49 42 5f 4f |) : $(FL|EX_LIB_O|
|000021d0| 42 4a 53 29 0a 58 09 24 | 28 41 52 29 20 63 72 75 |BJS).X.$|(AR) cru|
|000021e0| 20 24 28 46 4c 45 58 4c | 49 42 29 20 24 28 46 4c | $(FLEXL|IB) $(FL|
|000021f0| 45 58 5f 4c 49 42 5f 4f | 42 4a 53 29 0a 58 0a 58 |EX_LIB_O|BJS).X.X|
|00002200| 6c 69 6e 74 20 3a 20 24 | 28 46 4c 45 58 5f 43 5f |lint : $|(FLEX_C_|
|00002210| 53 4f 55 52 43 45 53 29 | 0a 58 09 6c 69 6e 74 20 |SOURCES)|.X.lint |
|00002220| 24 28 46 4c 45 58 5f 43 | 5f 53 4f 55 52 43 45 53 |$(FLEX_C|_SOURCES|
|00002230| 29 20 3e 20 66 6c 65 78 | 2e 6c 69 6e 74 0a 58 0a |) > flex|.lint.X.|
|00002240| 58 64 69 73 74 72 69 62 | 20 3a 0a 58 09 6d 76 20 |Xdistrib| :.X.mv |
|00002250| 73 63 61 6e 2e 63 20 69 | 6e 69 74 73 63 61 6e 2e |scan.c i|nitscan.|
|00002260| 63 0a 58 09 63 68 6d 6f | 64 20 34 34 34 20 69 6e |c.X.chmo|d 444 in|
|00002270| 69 74 73 63 61 6e 2e 63 | 0a 58 09 24 28 4d 41 4b |itscan.c|.X.$(MAK|
|00002280| 45 29 20 24 28 4d 46 4c | 41 47 53 29 20 63 6c 65 |E) $(MFL|AGS) cle|
|00002290| 61 6e 0a 58 0a 58 69 6e | 73 74 61 6c 6c 3a 20 66 |an.X.Xin|stall: f|
|000022a0| 6c 65 78 20 24 28 44 45 | 53 54 44 49 52 29 24 28 |lex $(DE|STDIR)$(|
|000022b0| 4c 49 42 44 49 52 29 20 | 66 6c 65 78 2e 73 6b 65 |LIBDIR) |flex.ske|
|000022c0| 6c 20 69 6e 73 74 61 6c | 6c 2e 24 28 49 4e 53 54 |l instal|l.$(INST|
|000022d0| 41 4c 4c 4d 41 4e 29 20 | 69 6e 73 74 61 6c 6c 2d |ALLMAN) |install-|
|000022e0| 6c 69 62 0a 58 09 69 6e | 73 74 61 6c 6c 20 2d 73 |lib.X.in|stall -s|
|000022f0| 20 2d 6d 20 37 35 35 20 | 66 6c 65 78 20 24 28 44 | -m 755 |flex $(D|
|00002300| 45 53 54 44 49 52 29 24 | 28 42 49 4e 44 49 52 29 |ESTDIR)$|(BINDIR)|
|00002310| 2f 66 6c 65 78 0a 58 09 | 69 6e 73 74 61 6c 6c 20 |/flex.X.|install |
|00002320| 2d 63 20 2d 6d 20 36 34 | 34 20 66 6c 65 78 2e 73 |-c -m 64|4 flex.s|
|00002330| 6b 65 6c 20 24 28 53 4b | 45 4c 45 54 4f 4e 5f 46 |kel $(SK|ELETON_F|
|00002340| 49 4c 45 29 0a 58 0a 58 | 69 6e 73 74 61 6c 6c 2d |ILE).X.X|install-|
|00002350| 6c 69 62 3a 20 24 28 44 | 45 53 54 44 49 52 29 24 |lib: $(D|ESTDIR)$|
|00002360| 28 4c 49 42 44 49 52 29 | 20 24 28 46 4c 45 58 4c |(LIBDIR)| $(FLEXL|
|00002370| 49 42 29 0a 58 09 69 6e | 73 74 61 6c 6c 20 2d 63 |IB).X.in|stall -c|
|00002380| 20 2d 6d 20 36 34 34 20 | 24 28 46 4c 45 58 4c 49 | -m 644 |$(FLEXLI|
|00002390| 42 29 20 24 28 44 45 53 | 54 44 49 52 29 24 28 4c |B) $(DES|TDIR)$(L|
|000023a0| 49 42 44 49 52 29 2f 6c | 69 62 66 6c 2e 61 0a 58 |IBDIR)/l|ibfl.a.X|
|000023b0| 09 24 28 52 41 4e 4c 49 | 42 29 20 24 28 44 45 53 |.$(RANLI|B) $(DES|
|000023c0| 54 44 49 52 29 24 28 4c | 49 42 44 49 52 29 2f 6c |TDIR)$(L|IBDIR)/l|
|000023d0| 69 62 66 6c 2e 61 0a 58 | 0a 58 24 28 44 45 53 54 |ibfl.a.X|.X$(DEST|
|000023e0| 44 49 52 29 24 28 4c 49 | 42 44 49 52 29 3a 0a 58 |DIR)$(LI|BDIR):.X|
|000023f0| 09 6d 6b 64 69 72 20 24 | 40 0a 58 0a 58 69 6e 73 |.mkdir $|@.X.Xins|
|00002400| 74 61 6c 6c 2e 6d 61 6e | 3a 20 66 6c 65 78 2e 31 |tall.man|: flex.1|
|00002410| 20 66 6c 65 78 64 6f 63 | 2e 31 0a 58 09 69 6e 73 | flexdoc|.1.X.ins|
|00002420| 74 61 6c 6c 20 2d 63 20 | 2d 6d 20 36 34 34 20 66 |tall -c |-m 644 f|
|00002430| 6c 65 78 2e 31 20 24 28 | 44 45 53 54 44 49 52 29 |lex.1 $(|DESTDIR)|
|00002440| 24 28 4d 41 4e 44 49 52 | 29 2f 66 6c 65 78 2e 24 |$(MANDIR|)/flex.$|
|00002450| 28 4d 41 4e 45 58 54 29 | 0a 58 09 69 6e 73 74 61 |(MANEXT)|.X.insta|
|00002460| 6c 6c 20 2d 63 20 2d 6d | 20 36 34 34 20 66 6c 65 |ll -c -m| 644 fle|
|00002470| 78 64 6f 63 2e 31 20 24 | 28 44 45 53 54 44 49 52 |xdoc.1 $|(DESTDIR|
|00002480| 29 24 28 4d 41 4e 44 49 | 52 29 2f 66 6c 65 78 64 |)$(MANDI|R)/flexd|
|00002490| 6f 63 2e 24 28 4d 41 4e | 45 58 54 29 0a 58 0a 58 |oc.$(MAN|EXT).X.X|
|000024a0| 69 6e 73 74 61 6c 6c 2e | 63 61 74 3a 20 66 6c 65 |install.|cat: fle|
|000024b0| 78 2e 31 20 66 6c 65 78 | 64 6f 63 2e 31 0a 58 09 |x.1 flex|doc.1.X.|
|000024c0| 6e 72 6f 66 66 20 2d 68 | 20 2d 6d 61 6e 20 66 6c |nroff -h| -man fl|
|000024d0| 65 78 2e 31 20 3e 20 24 | 28 44 45 53 54 44 49 52 |ex.1 > $|(DESTDIR|
|000024e0| 29 24 28 4d 41 4e 44 49 | 52 29 2f 66 6c 65 78 2e |)$(MANDI|R)/flex.|
|000024f0| 24 28 4d 41 4e 45 58 54 | 29 0a 58 09 6e 72 6f 66 |$(MANEXT|).X.nrof|
|00002500| 66 20 2d 68 20 2d 6d 61 | 6e 20 66 6c 65 78 64 6f |f -h -ma|n flexdo|
|00002510| 63 2e 31 20 3e 20 24 28 | 44 45 53 54 44 49 52 29 |c.1 > $(|DESTDIR)|
|00002520| 24 28 4d 41 4e 44 49 52 | 29 2f 66 6c 65 78 64 6f |$(MANDIR|)/flexdo|
|00002530| 63 2e 24 28 4d 41 4e 45 | 58 54 29 0a 58 09 63 68 |c.$(MANE|XT).X.ch|
|00002540| 6d 6f 64 20 36 34 34 20 | 24 28 44 45 53 54 44 49 |mod 644 |$(DESTDI|
|00002550| 52 29 24 28 4d 41 4e 44 | 49 52 29 2f 66 6c 65 78 |R)$(MAND|IR)/flex|
|00002560| 2e 24 28 4d 41 4e 45 58 | 54 29 0a 58 09 63 68 6d |.$(MANEX|T).X.chm|
|00002570| 6f 64 20 36 34 34 20 24 | 28 44 45 53 54 44 49 52 |od 644 $|(DESTDIR|
|00002580| 29 24 28 4d 41 4e 44 49 | 52 29 2f 66 6c 65 78 64 |)$(MANDI|R)/flexd|
|00002590| 6f 63 2e 24 28 4d 41 4e | 45 58 54 29 0a 58 0a 58 |oc.$(MAN|EXT).X.X|
|000025a0| 63 6c 65 61 6e 20 3a 0a | 58 09 72 6d 20 2d 66 20 |clean :.|X.rm -f |
|000025b0| 63 6f 72 65 20 65 72 72 | 73 20 66 6c 65 78 20 2a |core err|s flex *|
|000025c0| 2e 6f 20 70 61 72 73 65 | 2e 63 20 2a 2e 6c 69 6e |.o parse|.c *.lin|
|000025d0| 74 20 70 61 72 73 65 2e | 68 20 66 6c 65 78 2e 6d |t parse.|h flex.m|
|000025e0| 61 6e 20 74 61 67 73 20 | 5c 0a 58 09 09 24 28 46 |an tags |\.X..$(F|
|000025f0| 4c 45 58 4c 49 42 29 0a | 58 0a 58 74 61 67 73 20 |LEXLIB).|X.Xtags |
|00002600| 3a 0a 58 09 63 74 61 67 | 73 20 24 28 46 4c 45 58 |:.X.ctag|s $(FLEX|
|00002610| 5f 43 5f 53 4f 55 52 43 | 45 53 29 0a 58 0a 58 76 |_C_SOURC|ES).X.Xv|
|00002620| 6d 73 20 3a 09 66 6c 65 | 78 2e 6d 61 6e 0a 58 09 |ms :.fle|x.man.X.|
|00002630| 24 28 4d 41 4b 45 29 20 | 24 28 4d 46 4c 41 47 53 |$(MAKE) |$(MFLAGS|
|00002640| 29 20 64 69 73 74 72 69 | 62 0a 58 0a 58 74 65 73 |) distri|b.X.Xtes|
|00002650| 74 20 3a 20 66 6c 65 78 | 0a 58 09 2e 2f 66 6c 65 |t : flex|.X../fle|
|00002660| 78 20 24 28 46 4c 45 58 | 5f 46 4c 41 47 53 29 20 |x $(FLEX|_FLAGS) |
|00002670| 24 28 43 4f 4d 50 52 45 | 53 53 49 4f 4e 29 20 73 |$(COMPRE|SSION) s|
|00002680| 63 61 6e 2e 6c 20 7c 20 | 64 69 66 66 20 73 63 61 |can.l | |diff sca|
|00002690| 6e 2e 63 20 2d 0a 58 0a | 58 62 69 67 74 65 73 74 |n.c -.X.|Xbigtest|
|000026a0| 20 3a 0a 58 09 72 6d 20 | 2d 66 20 73 63 61 6e 2e | :.X.rm |-f scan.|
|000026b0| 63 20 3b 20 24 28 4d 41 | 4b 45 29 20 43 4f 4d 50 |c ; $(MA|KE) COMP|
|000026c0| 52 45 53 53 49 4f 4e 3d | 22 2d 43 22 20 74 65 73 |RESSION=|"-C" tes|
|000026d0| 74 0a 58 09 72 6d 20 2d | 66 20 73 63 61 6e 2e 63 |t.X.rm -|f scan.c|
|000026e0| 20 3b 20 24 28 4d 41 4b | 45 29 20 43 4f 4d 50 52 | ; $(MAK|E) COMPR|
|000026f0| 45 53 53 49 4f 4e 3d 22 | 2d 43 65 22 20 74 65 73 |ESSION="|-Ce" tes|
|00002700| 74 0a 58 09 72 6d 20 2d | 66 20 73 63 61 6e 2e 63 |t.X.rm -|f scan.c|
|00002710| 20 3b 20 24 28 4d 41 4b | 45 29 20 43 4f 4d 50 52 | ; $(MAK|E) COMPR|
|00002720| 45 53 53 49 4f 4e 3d 22 | 2d 43 6d 22 20 74 65 73 |ESSION="|-Cm" tes|
|00002730| 74 0a 58 09 72 6d 20 2d | 66 20 73 63 61 6e 2e 63 |t.X.rm -|f scan.c|
|00002740| 20 3b 20 24 28 4d 41 4b | 45 29 20 43 4f 4d 50 52 | ; $(MAK|E) COMPR|
|00002750| 45 53 53 49 4f 4e 3d 22 | 2d 43 66 65 22 20 74 65 |ESSION="|-Cfe" te|
|00002760| 73 74 0a 58 09 72 6d 20 | 2d 66 20 73 63 61 6e 2e |st.X.rm |-f scan.|
|00002770| 63 20 3b 20 24 28 4d 41 | 4b 45 29 20 43 4f 4d 50 |c ; $(MA|KE) COMP|
|00002780| 52 45 53 53 49 4f 4e 3d | 22 2d 43 46 65 22 20 74 |RESSION=|"-CFe" t|
|00002790| 65 73 74 0a 58 09 72 6d | 20 2d 66 20 73 63 61 6e |est.X.rm| -f scan|
|000027a0| 2e 63 20 3b 20 24 28 4d | 41 4b 45 29 20 43 4f 4d |.c ; $(M|AKE) COM|
|000027b0| 50 52 45 53 53 49 4f 4e | 3d 22 2d 43 66 22 20 74 |PRESSION|="-Cf" t|
|000027c0| 65 73 74 0a 58 09 72 6d | 20 2d 66 20 73 63 61 6e |est.X.rm| -f scan|
|000027d0| 2e 63 20 3b 20 24 28 4d | 41 4b 45 29 20 43 4f 4d |.c ; $(M|AKE) COM|
|000027e0| 50 52 45 53 53 49 4f 4e | 3d 22 2d 43 46 22 20 74 |PRESSION|="-CF" t|
|000027f0| 65 73 74 0a 58 09 72 6d | 20 2d 66 20 73 63 61 6e |est.X.rm| -f scan|
|00002800| 2e 63 20 3b 20 24 28 4d | 41 4b 45 29 0a 45 4e 44 |.c ; $(M|AKE).END|
|00002810| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00002820| 73 74 20 34 38 37 36 20 | 2d 6e 65 20 60 77 63 20 |st 4876 |-ne `wc |
|00002830| 2d 63 20 3c 27 4d 61 6b | 65 66 69 6c 65 27 60 3b |-c <'Mak|efile'`;|
|00002840| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00002850| 68 61 72 3a 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |har: \"'|Makefile|
|00002860| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00002870| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|00002880| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 4d |fi. # e|nd of 'M|
|00002890| 61 6b 65 66 69 6c 65 27 | 0a 66 69 0a 69 66 20 74 |akefile'|.fi.if t|
|000028a0| 65 73 74 20 2d 66 20 27 | 63 63 6c 2e 63 27 20 2d |est -f '|ccl.c' -|
|000028b0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000028c0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000028d0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000028e0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000028f0| 66 69 6c 65 20 5c 22 27 | 63 63 6c 2e 63 27 5c 22 |file \"'|ccl.c'\"|
|00002900| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|00002910| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00002920| 27 63 63 6c 2e 63 27 5c | 22 20 5c 28 34 31 31 35 |'ccl.c'\|" \(4115|
|00002930| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00002940| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 63 |sed "s/^|X//" >'c|
|00002950| 63 6c 2e 63 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |cl.c' <<|'END_OF_|
|00002960| 46 49 4c 45 27 0a 58 2f | 2a 20 63 63 6c 20 2d 20 |FILE'.X/|* ccl - |
|00002970| 72 6f 75 74 69 6e 65 73 | 20 66 6f 72 20 63 68 61 |routines| for cha|
|00002980| 72 61 63 74 65 72 20 63 | 6c 61 73 73 65 73 20 2a |racter c|lasses *|
|00002990| 2f 0a 58 0a 58 2f 2a 2d | 0a 58 20 2a 20 43 6f 70 |/.X.X/*-|.X * Cop|
|000029a0| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 39 30 20 |yright (|c) 1990 |
|000029b0| 54 68 65 20 52 65 67 65 | 6e 74 73 20 6f 66 20 74 |The Rege|nts of t|
|000029c0| 68 65 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 |he Unive|rsity of|
|000029d0| 20 43 61 6c 69 66 6f 72 | 6e 69 61 2e 0a 58 20 2a | Califor|nia..X *|
|000029e0| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|000029f0| 72 76 65 64 2e 0a 58 20 | 2a 0a 58 20 2a 20 54 68 |rved..X |*.X * Th|
|00002a00| 69 73 20 63 6f 64 65 20 | 69 73 20 64 65 72 69 76 |is code |is deriv|
|00002a10| 65 64 20 66 72 6f 6d 20 | 73 6f 66 74 77 61 72 65 |ed from |software|
|00002a20| 20 63 6f 6e 74 72 69 62 | 75 74 65 64 20 74 6f 20 | contrib|uted to |
|00002a30| 42 65 72 6b 65 6c 65 79 | 20 62 79 0a 58 20 2a 20 |Berkeley| by.X * |
|00002a40| 56 65 72 6e 20 50 61 78 | 73 6f 6e 2e 0a 58 20 2a |Vern Pax|son..X *|
|00002a50| 20 0a 58 20 2a 20 54 68 | 65 20 55 6e 69 74 65 64 | .X * Th|e United|
|00002a60| 20 53 74 61 74 65 73 20 | 47 6f 76 65 72 6e 6d 65 | States |Governme|
|00002a70| 6e 74 20 68 61 73 20 72 | 69 67 68 74 73 20 69 6e |nt has r|ights in|
|00002a80| 20 74 68 69 73 20 77 6f | 72 6b 20 70 75 72 73 75 | this wo|rk pursu|
|00002a90| 61 6e 74 0a 58 20 2a 20 | 74 6f 20 63 6f 6e 74 72 |ant.X * |to contr|
|00002aa0| 61 63 74 20 6e 6f 2e 20 | 44 45 2d 41 43 30 33 2d |act no. |DE-AC03-|
|00002ab0| 37 36 53 46 30 30 30 39 | 38 20 62 65 74 77 65 65 |76SF0009|8 betwee|
|00002ac0| 6e 20 74 68 65 20 55 6e | 69 74 65 64 20 53 74 61 |n the Un|ited Sta|
|00002ad0| 74 65 73 0a 58 20 2a 20 | 44 65 70 61 72 74 6d 65 |tes.X * |Departme|
|00002ae0| 6e 74 20 6f 66 20 45 6e | 65 72 67 79 20 61 6e 64 |nt of En|ergy and|
|00002af0| 20 74 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | the Uni|versity |
|00002b00| 6f 66 20 43 61 6c 69 66 | 6f 72 6e 69 61 2e 0a 58 |of Calif|ornia..X|
|00002b10| 20 2a 0a 58 20 2a 20 52 | 65 64 69 73 74 72 69 62 | *.X * R|edistrib|
|00002b20| 75 74 69 6f 6e 20 61 6e | 64 20 75 73 65 20 69 6e |ution an|d use in|
|00002b30| 20 73 6f 75 72 63 65 20 | 61 6e 64 20 62 69 6e 61 | source |and bina|
|00002b40| 72 79 20 66 6f 72 6d 73 | 20 61 72 65 20 70 65 72 |ry forms| are per|
|00002b50| 6d 69 74 74 65 64 20 70 | 72 6f 76 69 64 65 64 0a |mitted p|rovided.|
|00002b60| 58 20 2a 20 74 68 61 74 | 3a 20 28 31 29 20 73 6f |X * that|: (1) so|
|00002b70| 75 72 63 65 20 64 69 73 | 74 72 69 62 75 74 69 6f |urce dis|tributio|
|00002b80| 6e 73 20 72 65 74 61 69 | 6e 20 74 68 69 73 20 65 |ns retai|n this e|
|00002b90| 6e 74 69 72 65 20 63 6f | 70 79 72 69 67 68 74 20 |ntire co|pyright |
|00002ba0| 6e 6f 74 69 63 65 20 61 | 6e 64 0a 58 20 2a 20 63 |notice a|nd.X * c|
|00002bb0| 6f 6d 6d 65 6e 74 2c 20 | 61 6e 64 20 28 32 29 20 |omment, |and (2) |
|00002bc0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 73 20 69 6e |distribu|tions in|
|00002bd0| 63 6c 75 64 69 6e 67 20 | 62 69 6e 61 72 69 65 73 |cluding |binaries|
|00002be0| 20 64 69 73 70 6c 61 79 | 20 74 68 65 20 66 6f 6c | display| the fol|
|00002bf0| 6c 6f 77 69 6e 67 0a 58 | 20 2a 20 61 63 6b 6e 6f |lowing.X| * ackno|
|00002c00| 77 6c 65 64 67 65 6d 65 | 6e 74 3a 20 20 60 60 54 |wledgeme|nt: ``T|
|00002c10| 68 69 73 20 70 72 6f 64 | 75 63 74 20 69 6e 63 6c |his prod|uct incl|
|00002c20| 75 64 65 73 20 73 6f 66 | 74 77 61 72 65 20 64 65 |udes sof|tware de|
|00002c30| 76 65 6c 6f 70 65 64 20 | 62 79 20 74 68 65 0a 58 |veloped |by the.X|
|00002c40| 20 2a 20 55 6e 69 76 65 | 72 73 69 74 79 20 6f 66 | * Unive|rsity of|
|00002c50| 20 43 61 6c 69 66 6f 72 | 6e 69 61 2c 20 42 65 72 | Califor|nia, Ber|
|00002c60| 6b 65 6c 65 79 20 61 6e | 64 20 69 74 73 20 63 6f |keley an|d its co|
|00002c70| 6e 74 72 69 62 75 74 6f | 72 73 27 27 20 69 6e 20 |ntributo|rs'' in |
|00002c80| 74 68 65 0a 58 20 2a 20 | 64 6f 63 75 6d 65 6e 74 |the.X * |document|
|00002c90| 61 74 69 6f 6e 20 6f 72 | 20 6f 74 68 65 72 20 6d |ation or| other m|
|00002ca0| 61 74 65 72 69 61 6c 73 | 20 70 72 6f 76 69 64 65 |aterials| provide|
|00002cb0| 64 20 77 69 74 68 20 74 | 68 65 20 64 69 73 74 72 |d with t|he distr|
|00002cc0| 69 62 75 74 69 6f 6e 20 | 61 6e 64 20 69 6e 0a 58 |ibution |and in.X|
|00002cd0| 20 2a 20 61 6c 6c 20 61 | 64 76 65 72 74 69 73 69 | * all a|dvertisi|
|00002ce0| 6e 67 20 6d 61 74 65 72 | 69 61 6c 73 20 6d 65 6e |ng mater|ials men|
|00002cf0| 74 69 6f 6e 69 6e 67 20 | 66 65 61 74 75 72 65 73 |tioning |features|
|00002d00| 20 6f 72 20 75 73 65 20 | 6f 66 20 74 68 69 73 20 | or use |of this |
|00002d10| 73 6f 66 74 77 61 72 65 | 2e 0a 58 20 2a 20 4e 65 |software|..X * Ne|
|00002d20| 69 74 68 65 72 20 74 68 | 65 20 6e 61 6d 65 20 6f |ither th|e name o|
|00002d30| 66 20 74 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |f the Un|iversity|
|00002d40| 20 6e 6f 72 20 74 68 65 | 20 6e 61 6d 65 73 20 6f | nor the| names o|
|00002d50| 66 20 69 74 73 20 63 6f | 6e 74 72 69 62 75 74 6f |f its co|ntributo|
|00002d60| 72 73 20 6d 61 79 0a 58 | 20 2a 20 62 65 20 75 73 |rs may.X| * be us|
|00002d70| 65 64 20 74 6f 20 65 6e | 64 6f 72 73 65 20 6f 72 |ed to en|dorse or|
|00002d80| 20 70 72 6f 6d 6f 74 65 | 20 70 72 6f 64 75 63 74 | promote| product|
|00002d90| 73 20 64 65 72 69 76 65 | 64 20 66 72 6f 6d 20 74 |s derive|d from t|
|00002da0| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 77 69 74 |his soft|ware wit|
|00002db0| 68 6f 75 74 0a 58 20 2a | 20 73 70 65 63 69 66 69 |hout.X *| specifi|
|00002dc0| 63 20 70 72 69 6f 72 20 | 77 72 69 74 74 65 6e 20 |c prior |written |
|00002dd0| 70 65 72 6d 69 73 73 69 | 6f 6e 2e 0a 58 20 2a 20 |permissi|on..X * |
|00002de0| 54 48 49 53 20 53 4f 46 | 54 57 41 52 45 20 49 53 |THIS SOF|TWARE IS|
|00002df0| 20 50 52 4f 56 49 44 45 | 44 20 60 60 41 53 20 49 | PROVIDE|D ``AS I|
|00002e00| 53 27 27 20 41 4e 44 20 | 57 49 54 48 4f 55 54 20 |S'' AND |WITHOUT |
|00002e10| 41 4e 59 20 45 58 50 52 | 45 53 53 20 4f 52 20 49 |ANY EXPR|ESS OR I|
|00002e20| 4d 50 4c 49 45 44 0a 58 | 20 2a 20 57 41 52 52 41 |MPLIED.X| * WARRA|
|00002e30| 4e 54 49 45 53 2c 20 49 | 4e 43 4c 55 44 49 4e 47 |NTIES, I|NCLUDING|
|00002e40| 2c 20 57 49 54 48 4f 55 | 54 20 4c 49 4d 49 54 41 |, WITHOU|T LIMITA|
|00002e50| 54 49 4f 4e 2c 20 54 48 | 45 20 49 4d 50 4c 49 45 |TION, TH|E IMPLIE|
|00002e60| 44 20 57 41 52 52 41 4e | 54 49 45 53 20 4f 46 0a |D WARRAN|TIES OF.|
|00002e70| 58 20 2a 20 4d 45 52 43 | 48 41 4e 54 41 42 49 4c |X * MERC|HANTABIL|
|00002e80| 49 54 59 20 41 4e 44 20 | 46 49 54 4e 45 53 53 20 |ITY AND |FITNESS |
|00002e90| 46 4f 52 20 41 20 50 41 | 52 54 49 43 55 4c 41 52 |FOR A PA|RTICULAR|
|00002ea0| 20 50 55 52 50 4f 53 45 | 2e 0a 58 20 2a 2f 0a 58 | PURPOSE|..X */.X|
|00002eb0| 0a 58 23 69 66 6e 64 65 | 66 20 6c 69 6e 74 0a 58 |.X#ifnde|f lint.X|
|00002ec0| 73 74 61 74 69 63 20 63 | 68 61 72 20 72 63 73 69 |static c|har rcsi|
|00002ed0| 64 5b 5d 20 3d 0a 58 20 | 20 20 20 22 40 28 23 29 |d[] =.X | "@(#)|
|00002ee0| 20 24 48 65 61 64 65 72 | 3a 20 2f 75 73 72 2f 66 | $Header|: /usr/f|
|00002ef0| 73 79 73 2f 6f 64 69 6e | 2f 61 2f 76 65 72 6e 2f |sys/odin|/a/vern/|
|00002f00| 66 6c 65 78 2f 52 43 53 | 2f 63 63 6c 2e 63 2c 76 |flex/RCS|/ccl.c,v|
|00002f10| 20 32 2e 35 20 39 30 2f | 30 36 2f 32 37 20 32 33 | 2.5 90/|06/27 23|
|00002f20| 3a 34 38 3a 31 33 20 76 | 65 72 6e 20 45 78 70 20 |:48:13 v|ern Exp |
|00002f30| 24 20 28 4c 42 4c 29 22 | 3b 0a 58 23 65 6e 64 69 |$ (LBL)"|;.X#endi|
|00002f40| 66 0a 58 0a 58 23 69 6e | 63 6c 75 64 65 20 22 66 |f.X.X#in|clude "f|
|00002f50| 6c 65 78 64 65 66 2e 68 | 22 0a 58 0a 58 2f 2a 20 |lexdef.h|".X.X/* |
|00002f60| 63 63 6c 61 64 64 20 2d | 20 61 64 64 20 61 20 73 |ccladd -| add a s|
|00002f70| 69 6e 67 6c 65 20 63 68 | 61 72 61 63 74 65 72 20 |ingle ch|aracter |
|00002f80| 74 6f 20 61 20 63 63 6c | 0a 58 20 2a 0a 58 20 2a |to a ccl|.X *.X *|
|00002f90| 20 73 79 6e 6f 70 73 69 | 73 0a 58 20 2a 20 20 20 | synopsi|s.X * |
|00002fa0| 20 69 6e 74 20 63 63 6c | 70 3b 0a 58 20 2a 20 20 | int ccl|p;.X * |
|00002fb0| 20 20 69 6e 74 20 63 68 | 3b 0a 58 20 2a 20 20 20 | int ch|;.X * |
|00002fc0| 20 63 63 6c 61 64 64 28 | 20 63 63 6c 70 2c 20 63 | ccladd(| cclp, c|
|00002fd0| 68 20 29 3b 0a 58 20 2a | 2f 0a 58 0a 58 76 6f 69 |h );.X *|/.X.Xvoi|
|00002fe0| 64 20 63 63 6c 61 64 64 | 28 20 63 63 6c 70 2c 20 |d ccladd|( cclp, |
|00002ff0| 63 68 20 29 0a 58 69 6e | 74 20 63 63 6c 70 3b 0a |ch ).Xin|t cclp;.|
|00003000| 58 69 6e 74 20 63 68 3b | 0a 58 0a 58 20 20 20 20 |Xint ch;|.X.X |
|00003010| 7b 0a 58 20 20 20 20 69 | 6e 74 20 69 6e 64 2c 20 |{.X i|nt ind, |
|00003020| 6c 65 6e 2c 20 6e 65 77 | 70 6f 73 2c 20 69 3b 0a |len, new|pos, i;.|
|00003030| 58 0a 58 20 20 20 20 6c | 65 6e 20 3d 20 63 63 6c |X.X l|en = ccl|
|00003040| 6c 65 6e 5b 63 63 6c 70 | 5d 3b 0a 58 20 20 20 20 |len[cclp|];.X |
|00003050| 69 6e 64 20 3d 20 63 63 | 6c 6d 61 70 5b 63 63 6c |ind = cc|lmap[ccl|
|00003060| 70 5d 3b 0a 58 0a 58 20 | 20 20 20 2f 2a 20 63 68 |p];.X.X | /* ch|
|00003070| 65 63 6b 20 74 6f 20 73 | 65 65 20 69 66 20 74 68 |eck to s|ee if th|
|00003080| 65 20 63 68 61 72 61 63 | 74 65 72 20 69 73 20 61 |e charac|ter is a|
|00003090| 6c 72 65 61 64 79 20 69 | 6e 20 74 68 65 20 63 63 |lready i|n the cc|
|000030a0| 6c 20 2a 2f 0a 58 0a 58 | 20 20 20 20 66 6f 72 20 |l */.X.X| for |
|000030b0| 28 20 69 20 3d 20 30 3b | 20 69 20 3c 20 6c 65 6e |( i = 0;| i < len|
|000030c0| 3b 20 2b 2b 69 20 29 0a | 58 09 69 66 20 28 20 63 |; ++i ).|X.if ( c|
|000030d0| 63 6c 74 62 6c 5b 69 6e | 64 20 2b 20 69 5d 20 3d |cltbl[in|d + i] =|
|000030e0| 3d 20 63 68 20 29 0a 58 | 09 20 20 20 20 72 65 74 |= ch ).X|. ret|
|000030f0| 75 72 6e 3b 0a 58 0a 58 | 20 20 20 20 6e 65 77 70 |urn;.X.X| newp|
|00003100| 6f 73 20 3d 20 69 6e 64 | 20 2b 20 6c 65 6e 3b 0a |os = ind| + len;.|
|00003110| 58 0a 58 20 20 20 20 69 | 66 20 28 20 6e 65 77 70 |X.X i|f ( newp|
|00003120| 6f 73 20 3e 3d 20 63 75 | 72 72 65 6e 74 5f 6d 61 |os >= cu|rrent_ma|
|00003130| 78 5f 63 63 6c 5f 74 62 | 6c 5f 73 69 7a 65 20 29 |x_ccl_tb|l_size )|
|00003140| 0a 58 09 7b 0a 58 09 63 | 75 72 72 65 6e 74 5f 6d |.X.{.X.c|urrent_m|
|00003150| 61 78 5f 63 63 6c 5f 74 | 62 6c 5f 73 69 7a 65 20 |ax_ccl_t|bl_size |
|00003160| 2b 3d 20 4d 41 58 5f 43 | 43 4c 5f 54 42 4c 5f 53 |+= MAX_C|CL_TBL_S|
|00003170| 49 5a 45 5f 49 4e 43 52 | 45 4d 45 4e 54 3b 0a 58 |IZE_INCR|EMENT;.X|
|00003180| 0a 58 09 2b 2b 6e 75 6d | 5f 72 65 61 6c 6c 6f 63 |.X.++num|_realloc|
|00003190| 73 3b 0a 58 0a 58 09 63 | 63 6c 74 62 6c 20 3d 20 |s;.X.X.c|cltbl = |
|000031a0| 72 65 61 6c 6c 6f 63 61 | 74 65 5f 63 68 61 72 61 |realloca|te_chara|
|000031b0| 63 74 65 72 5f 61 72 72 | 61 79 28 20 63 63 6c 74 |cter_arr|ay( cclt|
|000031c0| 62 6c 2c 20 63 75 72 72 | 65 6e 74 5f 6d 61 78 5f |bl, curr|ent_max_|
|000031d0| 63 63 6c 5f 74 62 6c 5f | 73 69 7a 65 20 29 3b 0a |ccl_tbl_|size );.|
|000031e0| 58 09 7d 0a 58 0a 58 20 | 20 20 20 63 63 6c 6c 65 |X.}.X.X | cclle|
|000031f0| 6e 5b 63 63 6c 70 5d 20 | 3d 20 6c 65 6e 20 2b 20 |n[cclp] |= len + |
|00003200| 31 3b 0a 58 20 20 20 20 | 63 63 6c 74 62 6c 5b 6e |1;.X |ccltbl[n|
|00003210| 65 77 70 6f 73 5d 20 3d | 20 63 68 3b 0a 58 20 20 |ewpos] =| ch;.X |
|00003220| 20 20 7d 0a 58 0a 58 0a | 58 2f 2a 20 63 63 6c 69 | }.X.X.|X/* ccli|
|00003230| 6e 69 74 20 2d 20 6d 61 | 6b 65 20 61 6e 20 65 6d |nit - ma|ke an em|
|00003240| 70 74 79 20 63 63 6c 0a | 58 20 2a 0a 58 20 2a 20 |pty ccl.|X *.X * |
|00003250| 73 79 6e 6f 70 73 69 73 | 0a 58 20 2a 20 20 20 20 |synopsis|.X * |
|00003260| 69 6e 74 20 63 63 6c 69 | 6e 69 74 28 29 3b 0a 58 |int ccli|nit();.X|
|00003270| 20 2a 20 20 20 20 6e 65 | 77 5f 63 63 6c 20 3d 20 | * ne|w_ccl = |
|00003280| 63 63 6c 69 6e 69 74 28 | 29 3b 0a 58 20 2a 2f 0a |cclinit(|);.X */.|
|00003290| 58 0a 58 69 6e 74 20 63 | 63 6c 69 6e 69 74 28 29 |X.Xint c|clinit()|
|000032a0| 0a 58 0a 58 20 20 20 20 | 7b 0a 58 20 20 20 20 69 |.X.X |{.X i|
|000032b0| 66 20 28 20 2b 2b 6c 61 | 73 74 63 63 6c 20 3e 3d |f ( ++la|stccl >=|
|000032c0| 20 63 75 72 72 65 6e 74 | 5f 6d 61 78 63 63 6c 73 | current|_maxccls|
|000032d0| 20 29 0a 58 09 7b 0a 58 | 09 63 75 72 72 65 6e 74 | ).X.{.X|.current|
|000032e0| 5f 6d 61 78 63 63 6c 73 | 20 2b 3d 20 4d 41 58 5f |_maxccls| += MAX_|
|000032f0| 43 43 4c 53 5f 49 4e 43 | 52 45 4d 45 4e 54 3b 0a |CCLS_INC|REMENT;.|
|00003300| 58 0a 58 09 2b 2b 6e 75 | 6d 5f 72 65 61 6c 6c 6f |X.X.++nu|m_reallo|
|00003310| 63 73 3b 0a 58 0a 58 09 | 63 63 6c 6d 61 70 20 3d |cs;.X.X.|cclmap =|
|00003320| 20 72 65 61 6c 6c 6f 63 | 61 74 65 5f 69 6e 74 65 | realloc|ate_inte|
|00003330| 67 65 72 5f 61 72 72 61 | 79 28 20 63 63 6c 6d 61 |ger_arra|y( cclma|
|00003340| 70 2c 20 63 75 72 72 65 | 6e 74 5f 6d 61 78 63 63 |p, curre|nt_maxcc|
|00003350| 6c 73 20 29 3b 0a 58 09 | 63 63 6c 6c 65 6e 20 3d |ls );.X.|ccllen =|
|00003360| 20 72 65 61 6c 6c 6f 63 | 61 74 65 5f 69 6e 74 65 | realloc|ate_inte|
|00003370| 67 65 72 5f 61 72 72 61 | 79 28 20 63 63 6c 6c 65 |ger_arra|y( cclle|
|00003380| 6e 2c 20 63 75 72 72 65 | 6e 74 5f 6d 61 78 63 63 |n, curre|nt_maxcc|
|00003390| 6c 73 20 29 3b 0a 58 09 | 63 63 6c 6e 67 20 3d 20 |ls );.X.|cclng = |
|000033a0| 72 65 61 6c 6c 6f 63 61 | 74 65 5f 69 6e 74 65 67 |realloca|te_integ|
|000033b0| 65 72 5f 61 72 72 61 79 | 28 20 63 63 6c 6e 67 2c |er_array|( cclng,|
|000033c0| 20 63 75 72 72 65 6e 74 | 5f 6d 61 78 63 63 6c 73 | current|_maxccls|
|000033d0| 20 29 3b 0a 58 09 7d 0a | 58 0a 58 20 20 20 20 69 | );.X.}.|X.X i|
|000033e0| 66 20 28 20 6c 61 73 74 | 63 63 6c 20 3d 3d 20 31 |f ( last|ccl == 1|
|000033f0| 20 29 0a 58 09 2f 2a 20 | 77 65 27 72 65 20 6d 61 | ).X./* |we're ma|
|00003400| 6b 69 6e 67 20 74 68 65 | 20 66 69 72 73 74 20 63 |king the| first c|
|00003410| 63 6c 20 2a 2f 0a 58 09 | 63 63 6c 6d 61 70 5b 6c |cl */.X.|cclmap[l|
|00003420| 61 73 74 63 63 6c 5d 20 | 3d 20 30 3b 0a 58 0a 58 |astccl] |= 0;.X.X|
|00003430| 20 20 20 20 65 6c 73 65 | 0a 58 09 2f 2a 20 74 68 | else|.X./* th|
|00003440| 65 20 6e 65 77 20 70 6f | 69 6e 74 65 72 20 69 73 |e new po|inter is|
|00003450| 20 6a 75 73 74 20 70 61 | 73 74 20 74 68 65 20 65 | just pa|st the e|
|00003460| 6e 64 20 6f 66 20 74 68 | 65 20 6c 61 73 74 20 63 |nd of th|e last c|
|00003470| 63 6c 2e 20 20 53 69 6e | 63 65 0a 58 09 20 2a 20 |cl. Sin|ce.X. * |
|00003480| 74 68 65 20 63 63 6c 6d | 61 70 20 70 6f 69 6e 74 |the cclm|ap point|
|00003490| 73 20 74 6f 20 74 68 65 | 20 5c 66 69 72 73 74 2f |s to the| \first/|
|000034a0| 20 63 68 61 72 61 63 74 | 65 72 20 6f 66 20 61 20 | charact|er of a |
|000034b0| 63 63 6c 2c 20 61 64 64 | 69 6e 67 20 74 68 65 0a |ccl, add|ing the.|
|000034c0| 58 09 20 2a 20 6c 65 6e | 67 74 68 20 6f 66 20 74 |X. * len|gth of t|
|000034d0| 68 65 20 63 63 6c 20 74 | 6f 20 74 68 65 20 63 63 |he ccl t|o the cc|
|000034e0| 6c 6d 61 70 20 70 6f 69 | 6e 74 65 72 20 77 69 6c |lmap poi|nter wil|
|000034f0| 6c 20 70 72 6f 64 75 63 | 65 20 61 20 63 75 72 73 |l produc|e a curs|
|00003500| 6f 72 0a 58 09 20 2a 20 | 74 6f 20 74 68 65 20 66 |or.X. * |to the f|
|00003510| 69 72 73 74 20 66 72 65 | 65 20 73 70 61 63 65 0a |irst fre|e space.|
|00003520| 58 09 20 2a 2f 0a 58 09 | 63 63 6c 6d 61 70 5b 6c |X. */.X.|cclmap[l|
|00003530| 61 73 74 63 63 6c 5d 20 | 3d 20 63 63 6c 6d 61 70 |astccl] |= cclmap|
|00003540| 5b 6c 61 73 74 63 63 6c | 20 2d 20 31 5d 20 2b 20 |[lastccl| - 1] + |
|00003550| 63 63 6c 6c 65 6e 5b 6c | 61 73 74 63 63 6c 20 2d |ccllen[l|astccl -|
|00003560| 20 31 5d 3b 0a 58 0a 58 | 20 20 20 20 63 63 6c 6c | 1];.X.X| ccll|
|00003570| 65 6e 5b 6c 61 73 74 63 | 63 6c 5d 20 3d 20 30 3b |en[lastc|cl] = 0;|
|00003580| 0a 58 20 20 20 20 63 63 | 6c 6e 67 5b 6c 61 73 74 |.X cc|lng[last|
|00003590| 63 63 6c 5d 20 3d 20 30 | 3b 09 2f 2a 20 63 63 6c |ccl] = 0|;./* ccl|
|000035a0| 27 73 20 73 74 61 72 74 | 20 6f 75 74 20 6c 69 66 |'s start| out lif|
|000035b0| 65 20 75 6e 2d 6e 65 67 | 61 74 65 64 20 2a 2f 0a |e un-neg|ated */.|
|000035c0| 58 0a 58 20 20 20 20 72 | 65 74 75 72 6e 20 28 20 |X.X r|eturn ( |
|000035d0| 6c 61 73 74 63 63 6c 20 | 29 3b 0a 58 20 20 20 20 |lastccl |);.X |
|000035e0| 7d 0a 58 0a 58 0a 58 2f | 2a 20 63 63 6c 6e 65 67 |}.X.X.X/|* cclneg|
|000035f0| 61 74 65 20 2d 20 6e 65 | 67 61 74 65 20 61 20 63 |ate - ne|gate a c|
|00003600| 63 6c 0a 58 20 2a 0a 58 | 20 2a 20 73 79 6e 6f 70 |cl.X *.X| * synop|
|00003610| 73 69 73 0a 58 20 2a 20 | 20 20 20 69 6e 74 20 63 |sis.X * | int c|
|00003620| 63 6c 70 3b 0a 58 20 2a | 20 20 20 20 63 63 6c 6e |clp;.X *| ccln|
|00003630| 65 67 61 74 65 28 20 63 | 63 6c 20 29 3b 0a 58 20 |egate( c|cl );.X |
|00003640| 2a 2f 0a 58 0a 58 76 6f | 69 64 20 63 63 6c 6e 65 |*/.X.Xvo|id cclne|
|00003650| 67 61 74 65 28 20 63 63 | 6c 70 20 29 0a 58 69 6e |gate( cc|lp ).Xin|
|00003660| 74 20 63 63 6c 70 3b 0a | 58 0a 58 20 20 20 20 7b |t cclp;.|X.X {|
|00003670| 0a 58 20 20 20 20 63 63 | 6c 6e 67 5b 63 63 6c 70 |.X cc|lng[cclp|
|00003680| 5d 20 3d 20 31 3b 0a 58 | 20 20 20 20 7d 0a 58 0a |] = 1;.X| }.X.|
|00003690| 58 0a 58 2f 2a 20 6c 69 | 73 74 5f 63 68 61 72 61 |X.X/* li|st_chara|
|000036a0| 63 74 65 72 5f 73 65 74 | 20 2d 20 6c 69 73 74 20 |cter_set| - list |
|000036b0| 74 68 65 20 6d 65 6d 62 | 65 72 73 20 6f 66 20 61 |the memb|ers of a|
|000036c0| 20 73 65 74 20 6f 66 20 | 63 68 61 72 61 63 74 65 | set of |characte|
|000036d0| 72 73 20 69 6e 20 43 43 | 4c 20 66 6f 72 6d 0a 58 |rs in CC|L form.X|
|000036e0| 20 2a 0a 58 20 2a 20 73 | 79 6e 6f 70 73 69 73 0a | *.X * s|ynopsis.|
|000036f0| 58 20 2a 20 20 20 20 20 | 69 6e 74 20 63 73 65 74 |X * |int cset|
|00003700| 5b 43 53 49 5a 45 5d 3b | 0a 58 20 2a 20 20 20 20 |[CSIZE];|.X * |
|00003710| 20 46 49 4c 45 20 2a 66 | 69 6c 65 3b 0a 58 20 2a | FILE *f|ile;.X *|
|00003720| 20 20 20 20 20 6c 69 73 | 74 5f 63 68 61 72 61 63 | lis|t_charac|
|00003730| 74 65 72 5f 73 65 74 28 | 20 63 73 65 74 20 29 3b |ter_set(| cset );|
|00003740| 0a 58 20 2a 0a 58 20 2a | 20 77 72 69 74 65 73 20 |.X *.X *| writes |
|00003750| 74 6f 20 74 68 65 20 67 | 69 76 65 6e 20 66 69 6c |to the g|iven fil|
|00003760| 65 20 61 20 63 68 61 72 | 61 63 74 65 72 2d 63 6c |e a char|acter-cl|
|00003770| 61 73 73 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ass repr|esentati|
|00003780| 6f 6e 20 6f 66 20 74 68 | 6f 73 65 0a 58 20 2a 20 |on of th|ose.X * |
|00003790| 63 68 61 72 61 63 74 65 | 72 73 20 70 72 65 73 65 |characte|rs prese|
|000037a0| 6e 74 20 69 6e 20 74 68 | 65 20 67 69 76 65 6e 20 |nt in th|e given |
|000037b0| 73 65 74 2e 20 20 41 20 | 63 68 61 72 61 63 74 65 |set. A |characte|
|000037c0| 72 20 69 73 20 70 72 65 | 73 65 6e 74 20 69 66 20 |r is pre|sent if |
|000037d0| 69 74 0a 58 20 2a 20 68 | 61 73 20 61 20 6e 6f 6e |it.X * h|as a non|
|000037e0| 2d 7a 65 72 6f 20 76 61 | 6c 75 65 20 69 6e 20 74 |-zero va|lue in t|
|000037f0| 68 65 20 73 65 74 20 61 | 72 72 61 79 2e 0a 58 20 |he set a|rray..X |
|00003800| 2a 2f 0a 58 0a 58 76 6f | 69 64 20 6c 69 73 74 5f |*/.X.Xvo|id list_|
|00003810| 63 68 61 72 61 63 74 65 | 72 5f 73 65 74 28 20 66 |characte|r_set( f|
|00003820| 69 6c 65 2c 20 63 73 65 | 74 20 29 0a 58 46 49 4c |ile, cse|t ).XFIL|
|00003830| 45 20 2a 66 69 6c 65 3b | 0a 58 69 6e 74 20 63 73 |E *file;|.Xint cs|
|00003840| 65 74 5b 5d 3b 0a 58 0a | 58 20 20 20 20 7b 0a 58 |et[];.X.|X {.X|
|00003850| 20 20 20 20 72 65 67 69 | 73 74 65 72 20 69 6e 74 | regi|ster int|
|00003860| 20 69 3b 0a 58 20 20 20 | 20 63 68 61 72 20 2a 72 | i;.X | char *r|
|00003870| 65 61 64 61 62 6c 65 5f | 66 6f 72 6d 28 29 3b 0a |eadable_|form();.|
|00003880| 58 0a 58 20 20 20 20 70 | 75 74 63 28 20 27 5b 27 |X.X p|utc( '['|
|00003890| 2c 20 66 69 6c 65 20 29 | 3b 0a 58 0a 58 20 20 20 |, file )|;.X.X |
|000038a0| 20 66 6f 72 20 28 20 69 | 20 3d 20 30 3b 20 69 20 | for ( i| = 0; i |
|000038b0| 3c 20 63 73 69 7a 65 3b | 20 2b 2b 69 20 29 0a 58 |< csize;| ++i ).X|
|000038c0| 09 7b 0a 58 09 69 66 20 | 28 20 63 73 65 74 5b 69 |.{.X.if |( cset[i|
|000038d0| 5d 20 29 0a 58 09 20 20 | 20 20 7b 0a 58 09 20 20 |] ).X. | {.X. |
|000038e0| 20 20 72 65 67 69 73 74 | 65 72 20 69 6e 74 20 73 | regist|er int s|
|000038f0| 74 61 72 74 5f 63 68 61 | 72 20 3d 20 69 3b 0a 58 |tart_cha|r = i;.X|
|00003900| 0a 58 09 20 20 20 20 70 | 75 74 63 28 20 27 20 27 |.X. p|utc( ' '|
|00003910| 2c 20 66 69 6c 65 20 29 | 3b 0a 58 0a 58 09 20 20 |, file )|;.X.X. |
|00003920| 20 20 66 70 75 74 73 28 | 20 72 65 61 64 61 62 6c | fputs(| readabl|
|00003930| 65 5f 66 6f 72 6d 28 20 | 69 20 29 2c 20 66 69 6c |e_form( |i ), fil|
|00003940| 65 20 29 3b 0a 58 0a 58 | 09 20 20 20 20 77 68 69 |e );.X.X|. whi|
|00003950| 6c 65 20 28 20 2b 2b 69 | 20 3c 20 63 73 69 7a 65 |le ( ++i| < csize|
|00003960| 20 26 26 20 63 73 65 74 | 5b 69 5d 20 29 0a 58 09 | && cset|[i] ).X.|
|00003970| 09 3b 0a 58 0a 58 09 20 | 20 20 20 69 66 20 28 20 |.;.X.X. | if ( |
|00003980| 69 20 2d 20 31 20 3e 20 | 73 74 61 72 74 5f 63 68 |i - 1 > |start_ch|
|00003990| 61 72 20 29 0a 58 09 09 | 2f 2a 20 74 68 69 73 20 |ar ).X..|/* this |
|000039a0| 77 61 73 20 61 20 72 75 | 6e 20 2a 2f 0a 58 09 09 |was a ru|n */.X..|
|000039b0| 66 70 72 69 6e 74 66 28 | 20 66 69 6c 65 2c 20 22 |fprintf(| file, "|
|000039c0| 2d 25 73 22 2c 20 72 65 | 61 64 61 62 6c 65 5f 66 |-%s", re|adable_f|
|000039d0| 6f 72 6d 28 20 69 20 2d | 20 31 20 29 20 29 3b 0a |orm( i -| 1 ) );.|
|000039e0| 58 0a 58 09 20 20 20 20 | 70 75 74 63 28 20 27 20 |X.X. |putc( ' |
|000039f0| 27 2c 20 66 69 6c 65 20 | 29 3b 0a 58 09 20 20 20 |', file |);.X. |
|00003a00| 20 7d 0a 58 09 7d 0a 58 | 0a 58 20 20 20 20 70 75 | }.X.}.X|.X pu|
|00003a10| 74 63 28 20 27 5d 27 2c | 20 66 69 6c 65 20 29 3b |tc( ']',| file );|
|00003a20| 0a 58 20 20 20 20 7d 0a | 45 4e 44 5f 4f 46 5f 46 |.X }.|END_OF_F|
|00003a30| 49 4c 45 0a 20 20 69 66 | 20 74 65 73 74 20 34 31 |ILE. if| test 41|
|00003a40| 31 35 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |15 -ne `|wc -c <'|
|00003a50| 63 63 6c 2e 63 27 60 3b | 20 74 68 65 6e 0a 20 20 |ccl.c'`;| then. |
|00003a60| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00003a70| 63 63 6c 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |ccl.c'\"| unpacke|
|00003a80| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00003a90| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00003aa0| 6f 66 20 27 63 63 6c 2e | 63 27 0a 66 69 0a 65 63 |of 'ccl.|c'.fi.ec|
|00003ab0| 68 6f 20 73 68 61 72 3a | 20 45 6e 64 20 6f 66 20 |ho shar:| End of |
|00003ac0| 61 72 63 68 69 76 65 20 | 31 30 20 5c 28 6f 66 20 |archive |10 \(of |
|00003ad0| 31 30 5c 29 2e 0a 63 70 | 20 2f 64 65 76 2f 6e 75 |10\)..cp| /dev/nu|
|00003ae0| 6c 6c 20 61 72 6b 31 30 | 69 73 64 6f 6e 65 0a 4d |ll ark10|isdone.M|
|00003af0| 49 53 53 49 4e 47 3d 22 | 22 0a 66 6f 72 20 49 20 |ISSING="|".for I |
|00003b00| 69 6e 20 31 20 32 20 33 | 20 34 20 35 20 36 20 37 |in 1 2 3| 4 5 6 7|
|00003b10| 20 38 20 39 20 31 30 20 | 3b 20 64 6f 0a 20 20 20 | 8 9 10 |; do. |
|00003b20| 20 69 66 20 74 65 73 74 | 20 21 20 2d 66 20 61 72 | if test| ! -f ar|
|00003b30| 6b 24 7b 49 7d 69 73 64 | 6f 6e 65 20 3b 20 74 68 |k${I}isd|one ; th|
|00003b40| 65 6e 0a 09 4d 49 53 53 | 49 4e 47 3d 22 24 7b 4d |en..MISS|ING="${M|
|00003b50| 49 53 53 49 4e 47 7d 20 | 24 7b 49 7d 22 0a 20 20 |ISSING} |${I}". |
|00003b60| 20 20 66 69 0a 64 6f 6e | 65 0a 69 66 20 74 65 73 | fi.don|e.if tes|
|00003b70| 74 20 22 24 7b 4d 49 53 | 53 49 4e 47 7d 22 20 3d |t "${MIS|SING}" =|
|00003b80| 20 22 22 20 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 | "" ; th|en. e|
|00003b90| 63 68 6f 20 59 6f 75 20 | 68 61 76 65 20 75 6e 70 |cho You |have unp|
|00003ba0| 61 63 6b 65 64 20 61 6c | 6c 20 31 30 20 61 72 63 |acked al|l 10 arc|
|00003bb0| 68 69 76 65 73 2e 0a 20 | 20 20 20 72 6d 20 2d 66 |hives.. | rm -f|
|00003bc0| 20 61 72 6b 5b 31 2d 39 | 5d 69 73 64 6f 6e 65 20 | ark[1-9|]isdone |
|00003bd0| 61 72 6b 5b 31 2d 39 5d | 5b 30 2d 39 5d 69 73 64 |ark[1-9]|[0-9]isd|
|00003be0| 6f 6e 65 0a 65 6c 73 65 | 0a 20 20 20 20 65 63 68 |one.else|. ech|
|00003bf0| 6f 20 59 6f 75 20 73 74 | 69 6c 6c 20 6d 75 73 74 |o You st|ill must|
|00003c00| 20 75 6e 70 61 63 6b 20 | 74 68 65 20 66 6f 6c 6c | unpack |the foll|
|00003c10| 6f 77 69 6e 67 20 61 72 | 63 68 69 76 65 73 3a 0a |owing ar|chives:.|
|00003c20| 20 20 20 20 65 63 68 6f | 20 22 20 20 20 20 20 20 | echo| " |
|00003c30| 20 20 22 20 24 7b 4d 49 | 53 53 49 4e 47 7d 0a 66 | " ${MI|SSING}.f|
|00003c40| 69 0a 65 78 69 74 20 30 | 0a 65 78 69 74 20 30 20 |i.exit 0|.exit 0 |
|00003c50| 23 20 4a 75 73 74 20 69 | 6e 20 63 61 73 65 2e 2e |# Just i|n case..|
|00003c60| 2e 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+