Skip to content

Commit

Permalink
CWEB - 4.8 release, 2022-06-05.
Browse files Browse the repository at this point in the history
  • Loading branch information
ascherer committed Jun 5, 2022
1 parent 1214dff commit 837f017
Show file tree
Hide file tree
Showing 26 changed files with 288 additions and 181 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ README.md export-ignore
my-changes.md export-ignore
testthings.w export-ignore
indentation.w export-ignore
if.w export-ignore
8 changes: 4 additions & 4 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.7 --- February 2022
# Version 4.8 --- June 2022

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

Expand All @@ -13,7 +13,7 @@
# entire resulting derived work is given a different name and distributed
# under the terms of a permission notice identical to this one.

#
#
# Read the README file, then edit this file to reflect local conditions
#

Expand Down Expand Up @@ -50,7 +50,7 @@ TCHANGES=
WCHANGES=

# We keep debugging info around, for fun, but most users don't need it
CFLAGS = -g
CFLAGS = -g # -Wall -Wextra -Wimplicit-fallthrough=2 # check compiler warnings
#CFLAGS = -O
LINKFLAGS = -g
#LINKFLAGS = -s # for smaller (stripped) executables on many UNIX systems
Expand Down Expand Up @@ -138,7 +138,7 @@ common.o: common.c
$(CC) $(CFLAGS) -DCWEBINPUTS=\"$(CWEBINPUTS)\" -c common.c

ctangle: ctangle.o common.o
$(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o
$(CC) $(LINKFLAGS) -o ctangle ctangle.o common.o

ctangle.c: ctangle.w $(TCHANGES) common.h
$(CTANGLE) ctangle $(TCHANGES)
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# cweb 4.7
# cweb 4.8

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 @@ -10,18 +10,20 @@ devote full time to

however, further significant developments, including versions that don himself
does not maintain, are ongoing. all of the really current news about cweb is,
in fact, now to be found in this cweb development project. Check out the
in fact, now to be found in this cweb development project; check out the
details in the
[releases description](https://github.com/ascherer/cweb/releases).

you can either compile these sources as directed in the
[readme file](README) or stick the recent version “cweb-4.8” into my
[cwebbin](https://github.com/ascherer/cwebbin), which introduces convenient
extensions and prepares cweb for inclusion in the “tex live” distribution.

# software archæology

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.7” into my
[cwebbin](https://github.com/ascherer/cwebbin), which introduces convenient
extensions and prepares cweb for inclusion in the “tex live” distribution.
[cweb](http://www-cs-faculty.stanford.edu/~uno/cweb.html).

## call for help

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.7)}
\centerline{(Version 4.8)}
@y
\centerline{(Version 4.7 for MacOS)}
\centerline{(Version 4.8 for MacOS)}
@z
@x section 23: Make input_ln accept \n, \r, \n\r, or \r\n as line endings
Expand Down
8 changes: 4 additions & 4 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.7)}
\def\title{Common code for CTANGLE and CWEAVE (Version 4.8)}
\def\topofcontents{\null\vfill
\centerline{\titlefont Common code for {\ttitlefont CTANGLE} and
{\ttitlefont CWEAVE}}
\vskip 15pt
\centerline{(Version 4.7)}
\centerline{(Version 4.8)}
\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.7)}
\def\title{Common code for CTANGLE and CWEAVE (QL Version 4.8)}
\def\topofcontents{\null\vfill
\centerline{\titlefont Common code for {\ttitlefont CTANGLE} and
{\ttitlefont CWEAVE}}
\vskip 15pt
\centerline{(Version 4.7)}
\centerline{(Version 4.8)}
\vfill}
\def\botofcontents{\vfill
\noindent
Expand Down
6 changes: 4 additions & 2 deletions common.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,10 @@ else{
if((l= strlen(CWEBINPUTS))> max_file_name_length-2)too_long();
strcpy(temp_file_name,CWEBINPUTS);
#else
l= 0;
#line 474 "common.w"
l= 0;
#endif
#line 476 "common.w"
}
if(l> 0){
if(k+l+2>=cur_file_name_end)too_long();
Expand Down Expand Up @@ -1015,7 +1017,7 @@ print_section_name(r);
err_print(">");
}
else if(name_len<prefix_length(r))set_prefix_length(r,name_len);

/* fall through */
case equal:break;
case extension:if(!ispref||first<=last)
extend_section_name(r,first,last+1,ispref);
Expand Down
2 changes: 1 addition & 1 deletion common.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% This program by Silvio Levy and Donald E. Knuth
% is based on a program by Knuth.
% It is distributed WITHOUT ANY WARRANTY, express or implied.
% Version 4.7 --- February 2022 (works also with later versions)
% Version 4.8 --- June 2022 (works also with later versions)

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

Expand Down
12 changes: 6 additions & 6 deletions common.w
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% This program by Silvio Levy and Donald E. Knuth
% is based on a program by Knuth.
% It is distributed WITHOUT ANY WARRANTY, express or implied.
% Version 4.7 --- February 2022
% Version 4.8 --- June 2022

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

Expand All @@ -22,12 +22,12 @@

\def\v{\char'174} % vertical (|) in typewriter font

\def\title{Common code for CTANGLE and CWEAVE (Version 4.7)}
\def\title{Common code for CTANGLE and CWEAVE (Version 4.8)}
\def\topofcontents{\null\vfill
\centerline{\titlefont Common code for {\ttitlefont CTANGLE} and
{\ttitlefont CWEAVE}}
\vskip 15pt
\centerline{(Version 4.7)}
\centerline{(Version 4.8)}
\vfill}
\def\botofcontents{\vfill
\noindent
Expand Down Expand Up @@ -66,8 +66,8 @@ The file begins with a few basic definitions.
@<Global variables@>@/
@<Predeclaration of procedures@>

@ The details will be filled in due course. The interface of this module
is included first. It is also used by the main programs.
@ The details will be filled in due course. The interface |"common.h"| of this
\.{COMMON} module is included first. It is also used by the main programs.

@i common.h

Expand Down Expand Up @@ -919,7 +919,7 @@ switch(section_name_cmp(&first,name_len,r)) {
err_print(">");
}
else if (name_len<prefix_length(r)) set_prefix_length(r,name_len);
/* fall through */
@=/* fall through */@>@;
case equal: break;
case extension: if (!ispref || first<=last)
extend_section_name(r,first,last+1,ispref);
Expand Down
4 changes: 2 additions & 2 deletions ctang-bs.ch
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ by using "huge" pointers.
The ``banner line'' defined here should be changed whenever \.{CTANGLE}
is modified.

@d banner "This is CTANGLE (Version 4.7)"
@d banner "This is CTANGLE (Version 4.8)"
@y
The ``banner line'' defined here should be changed whenever \.{CTANGLE}
is modified.

@d banner "This is CTANGLE (Version 4.7pc/big)"
@d banner "This is CTANGLE (Version 4.8pc/big)"
@z


Expand Down
4 changes: 2 additions & 2 deletions ctang-pc.ch
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ that allows >64K arrays. If you need lots of bytes and toks, try the
alternate change files with -bs suffix instead of -pc.
@x section 1
@d banner "This is CTANGLE (Version 4.7)"
@d banner "This is CTANGLE (Version 4.8)"
@y
@d banner "This is CTANGLE (Version 4.7pc)"
@d banner "This is CTANGLE (Version 4.8pc)"
@z
@x section 17
@d max_bytes 100000 /* the number of bytes in identifiers,
Expand Down
8 changes: 4 additions & 4 deletions ctang-ql.ch
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ ex <dev_>cc;"-v -h -c -=500000 ctangle_c"
@x
\def\title{CTANGLE (Version 4.7)}
\def\title{CTANGLE (Version 4.8)}
@y
\def\title{CTANGLE (QL Version 4.7)}
\def\title{CTANGLE (QL Version 4.8)}
@z
@x section 1
@d banner "This is CTANGLE (Version 4.7)"
@d banner "This is CTANGLE (Version 4.8)"
@y
@d banner "This is CTANGLE (QL Version 4.7)"
@d banner "This is CTANGLE (QL Version 4.8)"
@z
@x
Expand Down
4 changes: 2 additions & 2 deletions ctang-vms.ch
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ created:
(these changes not necessary for initial bootstrapping)
@x section 1 (01-FEB-1992 ST)
@d banner "This is CTANGLE (Version 4.7)"
@d banner "This is CTANGLE (Version 4.8)"
@y
@d banner "This is CTANGLE (VAX/VMS Version 4.7)"
@d banner "This is CTANGLE (VAX/VMS Version 4.8)"
@z
@x section 4 (01-FEB-1992 ST)
Expand Down
4 changes: 2 additions & 2 deletions ctang-w32.ch
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ This is the change file for CWEB's CTANGLE under Win32
Changes necessary for compiling with Borland C/C++
@x section 1
@d banner "This is CTANGLE (Version 4.7)"
@d banner "This is CTANGLE (Version 4.8)"
@y
@d banner "This is CTANGLE (Version 4.7win32)"
@d banner "This is CTANGLE (Version 4.8win32)"
@z
@x
Expand Down
Loading

0 comments on commit 837f017

Please sign in to comment.