• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

examples/H03-Apr-2005-6,3855,145

MakefileH A D03-May-20224.9 KiB196114

READMEH A D14-Feb-20023.2 KiB9985

c++lib.wH A D09-May-20001.6 KiB8685

comm-amiga.chH A D19-Nov-1993544 1814

comm-bs.chH A D02-Aug-19946.2 KiB230192

comm-mac.chH A D01-Feb-20025.2 KiB151133

comm-man.chH A D01-Feb-2002782 2321

comm-os2.chH A D10-May-1995701 2520

comm-pc.chH A D02-Aug-1994937 3427

comm-ql.chH A D01-Feb-200210.6 KiB333296

comm-vms.chH A D19-Nov-19932.5 KiB8269

comm-w32.chH A D14-Feb-20023.3 KiB9580

common.cH A D29-Dec-200321.6 KiB1,243914

common.hH A D02-May-20008.7 KiB193161

common.wH A D01-Feb-200250.9 KiB1,4191,241

ctang-bs.chH A D01-Feb-20027.1 KiB203172

ctang-man.chH A D01-Feb-2002783 2321

ctang-pc.chH A D01-Feb-2002958 2521

ctang-ql.chH A D01-Feb-2002459 2620

ctang-vms.chH A D01-Feb-20021.1 KiB3629

ctang-w32.chH A D14-Feb-20021.6 KiB6759

ctangle.cH A D03-Dec-200529.8 KiB1,5671,179

ctangle.wH A D03-Dec-200553.5 KiB1,5551,374

cweav-bs.chH A D01-Feb-20028.7 KiB303251

cweav-man.chH A D01-Feb-2002783 2321

cweav-pc.chH A D01-Feb-20021.1 KiB4033

cweav-ql.chH A D01-Feb-2002483 3325

cweav-vms.chH A D01-Feb-20021.1 KiB3830

cweav-w32.chH A D14-Feb-20021.4 KiB5346

cweave.wH A D01-Feb-2002164.9 KiB4,6524,171

cweb.1H A D03-May-20223.7 KiB133131

cweb.elH A D27-Sep-20008.3 KiB216153

cwebmac.texH A D29-Mar-200525.1 KiB540518

cwebman.texH A D03-Apr-200581.5 KiB1,7621,550

makefile.bsH A D02-Aug-19941.5 KiB6122

prod.wH A D10-May-200015.3 KiB308291

readme.qlH A D13-Nov-19952.8 KiB8572

README

1% This file is part of CWEB.
2% The CWEB programs by Silvio Levy are based on programs by D. E. Knuth.
3% They are distributed WITHOUT ANY WARRANTY, express or implied.
4% This README file last updated May 2000 by Don Knuth
5
6% Copyright (C) 1987,1990,1993,2000 Silvio Levy and Donald E. Knuth
7
8% Permission is granted to make and distribute verbatim copies of this
9% document provided that the copyright notice and this permission notice
10% are preserved on all copies.
11
12% Permission is granted to copy and distribute modified versions of this
13% document under the conditions for verbatim copying, provided that the
14% entire resulting derived work is given a different name and distributed
15% under the terms of a permission notice identical to this one.
16
17% Please send comments, suggestions, etc. to levy@math.berkeley.edu.
18
19This directory contains the following files:
20
21Makefile
22README
23comm-amiga.ch
24comm-bs.ch
25comm-mac.ch
26comm-man.ch
27comm-pc.ch
28comm-ql.ch
29comm-vms.ch
30comm-w32.ch
31common.c
32common.h
33common.w
34ctang-bs.ch
35ctang-man.ch
36ctang-pc.ch
37ctang-ql.ch
38ctang-vms.ch
39ctang-w32.ch
40ctangle.c
41ctangle.w
42cweav-bs.ch
43cweav-man.ch
44cweav-pc.ch
45cweav-ql.ch
46cweav-vms.ch
47cweave-w32.ch
48cweave.w
49cweb.1
50cweb.el
51cwebmac.tex
52cwebman.tex
53examples/
54makefile.bs
55prod.w
56readme.ql
57c++lib.w
58
59The file cwebman.tex is the user manual.
60The examples directory contains additional examples of the use of CWEB.
61The files common.c and ctangle.c are used for bootstrapping.
62The file cweb.1 is a manual page.
63The file cweb.el is suggested for GNU-Emacs users.
64The file c++lib.w is for C++ users (say `@i c++lib.w' at beginning of program).
65The files *-man.ch are used if you want to make the full 239-page CWEB manual.
66The files *-bs.ch are used instead of *-pc.ch if you are doing BIG programs.
67You can use makefile.bs to make CWEB with *-bs.ch.
68The files *-ql.ch are for QDOS/SMSQ systems; see readme.ql for further info.
69The files *-w32.ch use __fastcall conventions on win32 systems.
70The file comm-mac.ch is for Macintosh conventions.
71The other files named *.ch are sample change files for local customization.
72
73IMPORTANT: Please touch *.c before proceeding.
74Then edit the opening lines of Makefile so that it has the proper
75directory information for your local system.
76
77To make ctangle and cweave say `make all'; this should produce roughly
78the following actions (possibly with harmless warning messages from cc):
79
80cc -g -w -c ctangle.c
81cc -g -w -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
82cc -g -o ctangle ctangle.o common.o
83./ctangle cweave
84cc -g -w -c cweave.c
85cc -g -w -o cweave cweave.o common.o
86
87To get some reassurance that things are OK, you can say `make cautiously',
88which ensures that CTANGLE will reproduce itself. (Otherwise the source
89files common.w and ctangle.w won't actually have been used.)
90
91To install cweave and ctangle say `make install'. You probably need to
92be superuser to do this; but it's wise to `make all' first, BEFORE
93becoming superuser and saying `make install'.
94
95Note that change files for VMS, AMIGA, MAC, and PCs are provided.  When you
96are first bootstrapping to a new system, you may need to edit common.c and
97ctangle.c by hand, but the vast majority of the change-file changes are
98minor refinements that are not necessary for a rudimentary ctangle.
99

readme.ql

1This is the readme file for CWEB for QDOS/SMSQ systems
2
3(These instructions are for systems with Toolkit II,
4 please report any problems to me, the address is at the
5 end of the file)
6
7If you want to compile CWEB for your QL system, you must first
8convert the ASCII code to the QL's character set.  Therefore you
9can use the little BASIC program appended at the end of the file.
10
11For a first version you have to alter the supplied ctangle_c file.
12Set your DATA_USE to the directory you have the CWEB sources in, and
13the PROG_USE to C68's directory.
14compile it with:
15ex cc;'common_c ctangle_c -bufp500K -octangle'
16
17then ctangle the source files with:
18ex datad$&'ctangle';'common_w comm-ql_ch'
19ex datad$&'ctangle';'ctangle_w ctang-ql_ch'
20ex datad$&'ctangle';'cweave_w cweav-ql_ch'
21
22Compile the following way (C68v4.14 +):
23
24ex cc;'-c common_c'
25ex cc;'-c ctangle_c'
26ex cc;'-c cweave_c'
27ex ld;'-bufp500K common_o ctangle_o -octangle'
28ex ld;'-bufp500K common_o cweave_o -ocweave'
29
30After that copy the ctangle and cweave executables into your
31programs directory (if you want them there).
32
33The DATA default may be used as usual.  E.g. if you have
34a file win2_data_test_w and the DATA default set to
35win2_data_ you may call ctangle with
36     ex ctangle;'test'
37assuming that ctangle is in your PROG default.
38
39Please report any problems with the QL version to:
40Robert Klein
41Bluecherstrasse 24
42D-56349 Kaub
43Germany
44
45
46**************** ASCII Conversion program ***************
47With this program you can convert DOS and Unix 7-Bit ASCII
48files to the QL's character set.  You'll need Toolkit II.
49The program will take all the files in the source directory
50and put them converted into the destination&source directory,
51e.g. you have as drive1$='win2_', drive2$='win3_',
52path1$='cweb_' and path2$='ql_'.  Then the routine will take
53all files in win2_cweb_ (wthout subdirectories!) convert them
54and write them to 'win3_ql_cweb_'.  It's only a lousy hack,
55but it'll do it's job.
56
571000 DEFine PROCedure dos2ql (drive1$,path1$,drive2$,path2$)
581002 LOCal zx$,zx%,ishl,ashl
591005 DELETE drive2$&path2$&'dirlist'
601010 OPEN_NEW#5,drive2$&path2$&'dirlist'
611020 DIR#5,drive1$&path1$
621030 CLOSE#5
631040 OPEN_IN#5,drive2$&path2$&'dirlist'
641050 INPUT#5,zx$:INPUT#5,zx$:REMark devicename and sectors
651060 REPeat ashl
661070   IF EOF(#5)THEN EXIT ashl
671080   INPUT#5,zx$
681085   IF '->' INSTR zx$ THEN NEXT ashl
691090   OPEN_IN#3,drive1$&zx$
701100   OPEN_NEW#4,drive2$&path2$&zx$
711110   REPeat ishl
721120     IF EOF(#3)THEN EXIT ishl
731130     BGET#3,zx%
741140     SELect ON zx%
751150       = 13:REMark do nothing (DOS LineFeed)
761155       = 26:REMark do nothing (DOS EOF sign)
771160       = 96: BPUT#4,159:REMark Unix/DOS beginning quote sign
781170       = REMAINDER : BPUT#4,zx%
791180     END SELect
801190   END REPeat ishl
811195   CLOSE#3:CLOSE#4
821200 END REPeat ashl
831205 CLOSE#5
841210 END DEFine dos2ql
85