Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/web/c_cpp/cweb

% This file is part of CWEB.
% The CWEB programs by Silvio Levy are based on programs by D. E. Knuth.
% They are distributed WITHOUT ANY WARRANTY, express or implied.
% This README file last updated May 2000 by Don Knuth

% Copyright (C) 1987,1990,1993,2000 Silvio Levy and Donald E. Knuth

% Permission is granted to make and distribute verbatim copies of this
% document provided that the copyright notice and this permission notice
% are preserved on all copies.

% Permission is granted to copy and distribute modified versions of this
% document under the conditions for verbatim copying, provided that the
% entire resulting derived work is given a different name and distributed
% under the terms of a permission notice identical to this one.

% Please send comments, suggestions, etc. to levy@math.berkeley.edu.

This directory contains the following files:

Makefile
README
comm-amiga.ch
comm-bs.ch
comm-mac.ch
comm-man.ch
comm-pc.ch
comm-ql.ch
comm-vms.ch
comm-w32.ch
common.c
common.h
common.w
ctang-bs.ch
ctang-man.ch
ctang-pc.ch
ctang-ql.ch
ctang-vms.ch
ctang-w32.ch
ctangle.c
ctangle.w
cweav-bs.ch
cweav-man.ch
cweav-pc.ch
cweav-ql.ch
cweav-vms.ch
cweave-w32.ch
cweave.w
cweb.1
cweb.el
cwebmac.tex
cwebman.tex
examples/
makefile.bs
prod.w
readme.ql
c++lib.w

The file cwebman.tex is the user manual.
The examples directory contains additional examples of the use of CWEB.
The files common.c and ctangle.c are used for bootstrapping.
The file cweb.1 is a manual page.
The file cweb.el is suggested for GNU-Emacs users.
The file c++lib.w is for C++ users (say `@i c++lib.w' at beginning of program).
The files *-man.ch are used if you want to make the full 239-page CWEB manual.
The files *-bs.ch are used instead of *-pc.ch if you are doing BIG programs.
You can use makefile.bs to make CWEB with *-bs.ch.
The files *-ql.ch are for QDOS/SMSQ systems; see readme.ql for further info.
The files *-w32.ch use __fastcall conventions on win32 systems.
The file comm-mac.ch is for Macintosh conventions.
The other files named *.ch are sample change files for local customization.

IMPORTANT: Please touch *.c before proceeding.
Then edit the opening lines of Makefile so that it has the proper
directory information for your local system.

To make ctangle and cweave say `make all'; this should produce roughly
the following actions (possibly with harmless warning messages from cc):

cc -g -w -c ctangle.c
cc -g -w -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
cc -g -o ctangle ctangle.o common.o 
./ctangle cweave
cc -g -w -c cweave.c
cc -g -w -o cweave cweave.o common.o

To get some reassurance that things are OK, you can say `make cautiously',
which ensures that CTANGLE will reproduce itself. (Otherwise the source
files common.w and ctangle.w won't actually have been used.)

To install cweave and ctangle say `make install'. You probably need to
be superuser to do this; but it's wise to `make all' first, BEFORE
becoming superuser and saying `make install'.

Note that change files for VMS, AMIGA, MAC, and PCs are provided.  When you
are first bootstrapping to a new system, you may need to edit common.c and
ctangle.c by hand, but the vast majority of the change-file changes are
minor refinements that are not necessary for a rudimentary ctangle.

Direc­to­ries

Name Notes
examples

Files

Name Size Date Notes
Makefile 4962 2003-12-29 01:00
README 3270 2002-02-14 01:00
c++lib.w 1674 2000-05-09 01:00
comm-amiga.ch 544 1994-04-21 01:00
comm-bs.ch 6306 1994-08-02 01:00
comm-mac.ch 5322 2002-02-01 01:00
comm-man.ch 782 2002-02-01 01:00
comm-os2.ch 701 1995-05-10 01:00
comm-pc.ch 937 1994-08-02 01:00
comm-ql.ch 10896 2002-02-01 01:00
comm-vms.ch 2546 1994-04-21 01:00
comm-w32.ch 3385 2002-02-14 01:00
common.c 22142 2003-12-29 01:00
common.h 8879 2000-05-02 01:00
common.w 52096 2002-02-01 01:00
ctang-bs.ch 7273 2002-02-01 01:00
ctang-man.ch 783 2002-02-01 01:00
ctang-pc.ch 958 2002-02-01 01:00
ctang-ql.ch 459 2002-02-01 01:00
ctang-vms.ch 1103 2002-02-01 01:00
ctang-w32.ch 1670 2002-02-14 01:00
ctangle.c 30238 2003-12-29 01:00
ctangle.w 54830 2005-12-06 01:00
cweav-bs.ch 8880 2002-02-01 01:00
cweav-man.ch 783 2002-02-01 01:00
cweav-pc.ch 1132 2002-02-01 01:00
cweav-ql.ch 483 2002-02-01 01:00
cweav-vms.ch 1140 2002-02-01 01:00
cweav-w32.ch 1423 2002-02-14 01:00
cweave.w 168884 2002-02-01 01:00
cweb-3.64.tar.gz 212010 2002-07-12 01:00
cweb-3.64a.tar.gz 223943 2005-04-05 01:00
cweb-3.64aa.tar.gz 223945 2005-12-06 01:00
cweb-3.64ab.tar.gz 232813 2006-07-20 01:00
cweb-3.64ac.tar.gz 224027 2006-09-01 01:00
cweb-3.64ad.tar.gz 224023 2006-10-24 01:00
cweb.1 3884 2002-04-23 01:00
cweb.el 8502 2000-09-27 01:00
224023 2006-10-24 01:00 ==> /web/c_cpp/cweb/cweb-3.64ad.tar.gz
cwebmac.tex 26008 2006-07-20 01:00
cwebman.tex 83456 2006-10-24 01:00
makefile.bs 1542 1994-08-02 01:00
prod.w 15618 2000-05-10 01:00
readme.ql 2858 1995-11-13 01:00

Down­load the con­tents of this pack­age in one zip archive (1.7M).

cweb – A Web sys­tem in C

The Cweb sys­tem is a sys­tem for Struc­tured Soft­ware Doc­u­men­ta­tion (also known as Lit­er­ate Pro­gram­ming) in the pro­gram­ming lan­guage C.

Pack­age De­tailscweb
Ver­sion3.64ad
Li­censeKnuth Li­cense
Copy­right1987,1990,1993,2000 Sil­vio Levy and Don­ald E. Knuth
Main­tainerDon­ald E. Knuth
Sil­vio Levy
Con­tained inTeXlive as cweb
MikTeX as mik­tex-cweb-bin-2.9
Topics lit­er­ate pro­gram­ming
Guest Book Sitemap Contact