1(Message inbox:40)
2Date:  Tue, 17 Jul 1990 11:56 EDT
3From:  swl26%CAS.BITNET@CORNELLC.cit.cornell.edu
4Subject:  Re(2): port of flex-2.3 to IBM/MVS
5To:  vern@cs.cornell.edu
6
7>Message received.  I'm sending this response to
8>swl26%CAS.BITNET@CORNELLC.cit.cornell.edu.
9
10Great -- we can talk.
11
12>How extensive are the diffs?  If they're fairly short then yes, please
13>send them.  If they're pretty involved then probably not, as I'm not aware
14>of many MVS flex users ...
15
16I've built a context diff file which is ~850 lines.
17
18Summary of major changes necessary:
19
20   o a new initscan.c -- because MVS is ebcdic, the initial scanner had
21     to be changed.  I built a scanner from scan.l using -Ce, then
22     hand-manipulated the yy_ec table to fit EBCDIC instead of ASCII
23     chars.  (This is not included in the diff file above.)
24
25   o changes in main and flexdef.h to change how files are handled.  (No
26     dynamic file names, etc.)
27
28   o Some lines had to be shortened to 80 bytes.  This mostly impacted
29     your RCSID lines, which with the full path name were too long.
30
31   o SASC and the linker don't allow externals to be longer than 8 chars.
32     I thus wrote a Q&D program to shorten all externals.  (This would be
33     a separate file 'fixit.l', which is not included in the diffs.)
34
35   o There are several places where there are tests for 'isascii' (which I
36     deleted conditionally, using #ifdefs), and tests for 'A' <= x <= 'Z'
37     which I changed to 'isupper'.
38
39Many of the changes I've incorporated without impacting other systems.
40Others are with 'ifdefs'.  Still others (the short external names and new
41initscan) are 'isolable' as separate files which would have to be
42included with a distribution.
43
44Obviously, you are not going to want to (even if you can :-) ) worry about
45testing new versions in the MVS environment.  Likewise, I don't have the
46time or resources to provide much support. (I'm not sure my management
47would allow any :-( )
48
49With all of the above feel free to say "Thanks, but no thanks."  If you
50want to see the diffs anyway, I will certainly mail them.
51
52Thanks for your time and efforts.
53
54Steve Layten
55Chemical Abstracts Service, PO Box 3012, Columbus, OH 43210, +1 614 421-3600
56INET: swl26%cas.BITNET@CUNYVM.CUNY.Edu
57