1 This is the readme file for CWEB for QDOS/SMSQ systems
3 (These instructions are for systems with Toolkit II,
4 please report any problems to me, the address is at the
7 If you want to compile CWEB for your QL system, you must first
8 convert the ASCII code to the QL's character set. Therefore you
9 can use the little BASIC program appended at the end of the file.
11 For a first version you have to alter the supplied ctangle_c file.
12 Set your DATA_USE to the directory you have the CWEB sources in, and
13 the PROG_USE to C68's directory.
15 ex cc;'common_c ctangle_c -bufp500K -octangle'
17 then ctangle the source files with:
18 ex datad$&'ctangle';'common_w comm-ql_ch'
19 ex datad$&'ctangle';'ctangle_w ctang-ql_ch'
20 ex datad$&'ctangle';'cweave_w cweav-ql_ch'
22 Compile the following way (C68v4.14 +):
27 ex ld;'-bufp500K common_o ctangle_o -octangle'
28 ex ld;'-bufp500K common_o cweave_o -ocweave'
30 After that copy the ctangle and cweave executables into your
31 programs directory (if you want them there).
33 The DATA default may be used as usual. E.g. if you have
34 a file win2_data_test_w and the DATA default set to
35 win2_data_ you may call ctangle with
37 assuming that ctangle is in your PROG default.
39 Please report any problems with the QL version to:
46 **************** ASCII Conversion program ***************
47 With this program you can convert DOS and Unix 7-Bit ASCII
48 files to the QL's character set. You'll need Toolkit II.
49 The program will take all the files in the source directory
50 and put them converted into the destination&source directory,
51 e.g. you have as drive1$='win2_', drive2$='win3_',
52 path1$='cweb_' and path2$='ql_'. Then the routine will take
53 all files in win2_cweb_ (wthout subdirectories!) convert them
54 and write them to 'win3_ql_cweb_'. It's only a lousy hack,
55 but it'll do it's job.
57 1000 DEFine PROCedure dos2ql (drive1$,path1$,drive2$,path2$)
58 1002 LOCal zx$,zx%,ishl,ashl
59 1005 DELETE drive2$&path2$&'dirlist'
60 1010 OPEN_NEW#5,drive2$&path2$&'dirlist'
61 1020 DIR#5,drive1$&path1$
63 1040 OPEN_IN#5,drive2$&path2$&'dirlist'
64 1050 INPUT#5,zx$:INPUT#5,zx$:REMark devicename and sectors
66 1070 IF EOF(#5)THEN EXIT ashl
68 1085 IF '->' INSTR zx$ THEN NEXT ashl
69 1090 OPEN_IN#3,drive1$&zx$
70 1100 OPEN_NEW#4,drive2$&path2$&zx$
72 1120 IF EOF(#3)THEN EXIT ishl
75 1150 = 13:REMark do nothing (DOS LineFeed)
76 1155 = 26:REMark do nothing (DOS EOF sign)
77 1160 = 96: BPUT#4,159:REMark Unix/DOS beginning quote sign
78 1170 = REMAINDER : BPUT#4,zx%
84 1210 END DEFine dos2ql