Age | Commit message (Collapse) | Author |
|
git-svn-id: svn://tug.org/texlive/trunk@67801 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67800 c570f23f-e606-0410-a88d-b1316a301751
|
|
Apple's XCode 14 (Clang) issues deprecation warnings for the 'sprintf'
system function (from <stdio.h>) when used with C++. As I am compiling
CWEB as C++ code (locally, not in TeX Live), I became aware of this
possible future issue.
While common.w diligently checks user-provided file names for possible
buffer overflows before invoking 'sprintf' (sections 77--79), I replace
the uses of 'sprintf' in ctangle.w and cweave.w and cweav-twill.ch with
the safer 'snprintf' alternative.
git-svn-id: svn://tug.org/texlive/trunk@67794 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67786 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67783 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67782 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67777 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67773 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67771 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67770 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67769 c570f23f-e606-0410-a88d-b1316a301751
|
|
See 'too_long()' macro in common.w.
git-svn-id: svn://tug.org/texlive/trunk@67762 c570f23f-e606-0410-a88d-b1316a301751
|
|
CWEB learned this decades ago.
git-svn-id: svn://tug.org/texlive/trunk@67761 c570f23f-e606-0410-a88d-b1316a301751
|
|
See signatures of id_lookup and names_match.
git-svn-id: svn://tug.org/texlive/trunk@67760 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67759 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67751 c570f23f-e606-0410-a88d-b1316a301751
|
|
$ ctie -m common-twill.w common.w comm-{w2c,mini}.ch
$ mv common-twill.w common.w
$ ctwill -f -lpdf common (twice)
$ pdftex common
$ ctwill-refsort < common.ref > common.sref
$ pdftex common
TODO: Study the application of 'ctwill-twinx' and create a general index
for COMMON and CTWILL.
git-svn-id: svn://tug.org/texlive/trunk@67749 c570f23f-e606-0410-a88d-b1316a301751
|
|
This helper function had a non-trivial implementation in CWEAVE only.
The extra stuff for CTWILL is moved to 'init_node' with special
provisions for the 'name_dir' pointer.
git-svn-id: svn://tug.org/texlive/trunk@67734 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67728 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67703 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67702 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67701 c570f23f-e606-0410-a88d-b1316a301751
|
|
It's part of CWEB.
git-svn-id: svn://tug.org/texlive/trunk@67700 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67692 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67691 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67690 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67689 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67688 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67681 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67663 c570f23f-e606-0410-a88d-b1316a301751
|
|
In the context of the recent bug fix, I noticed that CWEAVE produced
significantly different output than WEAVE from my test case for overfull
lines, which -- in part -- had to be broken.
Although I am aware that Silvio Levy changed CWEAVE's behaviour already
in CWEB 0.5 (1987), I apply this new change in order to revert to DEK's
idea in WEAVE. Now the resulting TeX output has correctly placed comment
markers at the beginning of the broken lines. (To date, CWEAVE issued
material beyond 'buf_size' in overfull lines without such '%' markers.)
Of course, the resulting TeX output might not be processed as expected
because of the discarded material beyond 'buf_size', but the user has
been warned accordingly. :o).
git-svn-id: svn://tug.org/texlive/trunk@67662 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67658 c570f23f-e606-0410-a88d-b1316a301751
|
|
'break_out' and 'flush_buffer' were tricked into putting an extremely
long TeX macro (longer than 'line_length', i.e., 80 chars) into
'out_buf', which overflowed. This, of course, would wreak havoc, both in
the TeX output and in the runtime system.
See https://tug.org/pipermail/tex-live/2023-July/049306.htm for the
initial bug report.
git-svn-id: svn://tug.org/texlive/trunk@67656 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67651 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67650 c570f23f-e606-0410-a88d-b1316a301751
|
|
Ouch, my bad! 'break' jumps out of the 'for' loop, not out of the
'switch' group. :o)
git-svn-id: svn://tug.org/texlive/trunk@67649 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67648 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67647 c570f23f-e606-0410-a88d-b1316a301751
|
|
See line 3944 of WEAVE.WEB.
git-svn-id: svn://tug.org/texlive/trunk@67646 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67645 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67642 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67639 c570f23f-e606-0410-a88d-b1316a301751
|
|
HINT has different section numbers than PDF.
git-svn-id: svn://tug.org/texlive/trunk@67638 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67637 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67636 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67635 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67628 c570f23f-e606-0410-a88d-b1316a301751
|
|
'typedef int mode' was never actually used in CWEB 2.7 and up (and, most
likely, down). However, 'boolean' and the two @definitions isn't quite
correct either. See line 3907 of WEAVE.WEB for the original intent.
The new 'typedef enum' restores the classic code in C-style.
git-svn-id: svn://tug.org/texlive/trunk@67627 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67624 c570f23f-e606-0410-a88d-b1316a301751
|
|
git-svn-id: svn://tug.org/texlive/trunk@67623 c570f23f-e606-0410-a88d-b1316a301751
|