Skip to content

Commit

Permalink
CWEB - release 4.4, 2021-06-06.
Browse files Browse the repository at this point in the history
This is a service release for CWEB 4.3:

* All buffer sizes were reset to their original values from CWEB 3.64c.
* A few old and new (typographical) bugs were fixed.
* Tons of minutiae were addressed in 'fullmanual'
  • Loading branch information
ascherer committed Jun 6, 2021
1 parent f6c8f2d commit 8beb834
Show file tree
Hide file tree
Showing 25 changed files with 607 additions and 679 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is part of CWEB.
# It is distributed WITHOUT ANY WARRANTY, express or implied.
# Version 4.3 --- May 2021
# Version 4.4 --- June 2021

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

Expand Down Expand Up @@ -149,16 +149,16 @@ cweave.c: cweave.w $(WCHANGES) common.h prod.w
doc: $(SOURCES:.w=.dvi)

usermanual: cwebman.tex cwebmac.tex
tex cwebman
$(PDF)tex cwebman

fullmanual: usermanual $(SOURCES) comm-man.ch ctang-man.ch cweav-man.ch
make cweave
./cweave common.w comm-man.ch
tex common.tex
$(PDF)tex common.tex
./cweave ctangle.w ctang-man.ch
tex ctangle.tex
$(PDF)tex ctangle.tex
./cweave cweave.w cweav-man.ch
tex cweave.tex
$(PDF)tex cweave.tex

# be sure to leave ctangle.c and common.c for bootstrapping
clean:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cweb 4.3
# cweb 4.4

people have been accumulating several decades of experience with
[cweb](http://www-cs-faculty.stanford.edu/~uno/cweb.html), and we know that
Expand All @@ -19,7 +19,7 @@ details in the
besides for further development, this ‘project’ is used as an – obviously
incomplete – repository of original release versions of levy/knuth
[cweb](http://www-cs-faculty.stanford.edu/~uno/cweb.html). you can either
compile these sources directly or stick the recent version “cweb-4.3” into my
compile these sources directly or stick the recent version “cweb-4.4” into my
[cwebbin](https://github.com/ascherer/cwebbin), which introduces convenient
extensions and prepares cweb for inclusion in the “tex live” distribution.

Expand Down
4 changes: 2 additions & 2 deletions comm-mac.ch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ No changes to CTANGLE or CWEAVE are needed.
(Contributed 13 Oct 2000 by [email protected]; slightly edited by Don Knuth)
@x in limbo, change the title page document to specify Mac version
\centerline{(Version 4.3)}
\centerline{(Version 4.4)}
@y
\centerline{(Version 4.3 for MacOS)}
\centerline{(Version 4.4 for MacOS)}
@z
@x section 23: Make input_ln accept \n, \r, \n\r, or \r\n as line endings
Expand Down
2 changes: 1 addition & 1 deletion comm-pc.ch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Note: The change to section 16 is not necessary if using a compiler
that allows >64K arrays.
@x section 16
@d max_bytes 1000000 /* the number of bytes in identifiers,
@d max_bytes 90000 /* the number of bytes in identifiers,
@y
@d max_bytes (unsigned)60000 /* the number of bytes in identifiers,
@z
Expand Down
18 changes: 9 additions & 9 deletions comm-ql.ch
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ ex <dev_>cc;'-v -h -c -=500000 -DCWEBINPUTS=flp2_ common_c'
@x
\def\v{\char'174} % vertical (|) in typewriter font

\def\title{Common code for CTANGLE and CWEAVE (Version 4.3)}
\def\title{Common code for CTANGLE and CWEAVE (Version 4.4)}
\def\topofcontents{\null\vfill
\centerline{\titlefont Common code for {\ttitlefont CTANGLE} and
{\ttitlefont CWEAVE}}
\vskip 15pt
\centerline{(Version 4.3)}
\centerline{(Version 4.4)}
\vfill}
\def\botofcontents{\vfill
\noindent
@y
\def\v{\char'174} % vertical (|) in typewriter font
\def\title{Common code for CTANGLE and CWEAVE (QL Version 4.3)}
\def\title{Common code for CTANGLE and CWEAVE (QL Version 4.4)}
\def\topofcontents{\null\vfill
\centerline{\titlefont Common code for {\ttitlefont CTANGLE} and
{\ttitlefont CWEAVE}}
\vskip 15pt
\centerline{(Version 4.3)}
\centerline{(Version 4.4)}
\vfill}
\def\botofcontents{\vfill
\noindent
Expand All @@ -40,7 +40,7 @@ for the file name plus one character as string terminator. (Note that
(current) QDOS/SMSQ file systems have a limitation of 36 characters as
maximum length for a file name.
@x
@d max_file_name_length 1024
@d max_file_name_length 60
@y
@d max_file_name_length 42
@z
Expand Down Expand Up @@ -148,7 +148,7 @@ the routine as if it would work.
sprintf(web_file_name,"%s.w",*argv);
else {
strcpy(web_file_name,*argv);
*dot_pos=0; /* string now ends where the dot was */
*dot_pos='\0'; /* string now ends where the dot was */
}
sprintf(alt_web_file_name,"%s.web",*argv);
sprintf(tex_file_name,"%s.tex",name_pos); /* strip off directory name */
Expand All @@ -166,7 +166,7 @@ the routine as if it would work.
sprintf(web_file_name,"%s_w",*argv);
else {
strcpy(web_file_name,*argv);
*dot_pos=0; /* string now ends where the dot was */
*dot_pos='\0'; /* string now ends where the dot was */
}
sprintf(alt_web_file_name,"%s_web",*argv);
sprintf(tex_file_name,"%s_tex",name_pos); /* strip off directory name */
Expand Down Expand Up @@ -219,7 +219,7 @@ the routine as if it would work.
strcpy(tex_file_name,*argv);
strcpy(C_file_name,*argv);
if (make_xrefs) { /* indexes will be generated */
*dot_pos=0;
*dot_pos='\0';
sprintf(idx_file_name,"%s.idx",*argv);
sprintf(scn_file_name,"%s.scn",*argv);
}
Expand All @@ -240,7 +240,7 @@ the routine as if it would work.
strcpy(tex_file_name,*argv);
strcpy(C_file_name,*argv);
if (make_xrefs) { /* indexes will be generated */
*dot_pos=0;
*dot_pos='\0';
sprintf(idx_file_name,"%s_idx",*argv);
sprintf(scn_file_name,"%s_scn",*argv);
}
Expand Down
Loading

0 comments on commit 8beb834

Please sign in to comment.