summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir
AgeCommit message (Collapse)Author
2022-05-22[CWEB] Fix production rule 117 similar to 35.Andreas Scherer
Now 'gb_words.w' is formatted correctly again. git-svn-id: svn://tug.org/texlive/trunk@63376 c570f23f-e606-0410-a88d-b1316a301751
2022-05-03[CWEB] Use non-breaking thin space for simple cast.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@63216 c570f23f-e606-0410-a88d-b1316a301751
2022-04-30[CWEB] Fix a preprocessor issue.Andreas Scherer
In the very rare case of a multi-line preprocessor macro as in file 'gb_io.w' of The Stanford GraphBase, CWEAVE issued a spurious line '\1\1\2\2\6' that forces an extra empty line in the TeX output. git-svn-id: svn://tug.org/texlive/trunk@63183 c570f23f-e606-0410-a88d-b1316a301751
2022-03-10[CWEB] Redundant control code.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62590 c570f23f-e606-0410-a88d-b1316a301751
2022-03-10[CWEB] CWEAVE needs a little help.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62588 c570f23f-e606-0410-a88d-b1316a301751
2022-03-10[CWEB] Another 'fall thru' comment.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62586 c570f23f-e606-0410-a88d-b1316a301751
2022-03-10[CWEB] Make 'fall thru' comments active.Andreas Scherer
This is specific for GCC, but totally harmless for any other C compiler: GCC accepts 'fall thru' comments from the CWEB sources with its option '-Wimplicit-fallthrough=2', when we push these comments over to the tangled C code. git-svn-id: svn://tug.org/texlive/trunk@62584 c570f23f-e606-0410-a88d-b1316a301751
2022-02-19[CWEB] Permit indentation of preprocessing directives.Andreas Scherer
The C processor allows whitespace before and after the '#' of preprocessing directives, e.g., some MetaPost code uses this feature. In order to permit more liberal code layout, we only expect the '#' to be the first character in the buffer, followed by some optional whitespace. CWEB takes care that 'id_first' is the first non-whitespace character in the 'buffer' (and 'id_loc' is the first character _after_ the directive name). git-svn-id: svn://tug.org/texlive/trunk@62084 c570f23f-e606-0410-a88d-b1316a301751
2022-02-18[CWEB] Remove redundancy.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62068 c570f23f-e606-0410-a88d-b1316a301751
2022-02-18[CWEB] Avoid preprocessor calamities.Andreas Scherer
Trying to fix all loopholes in weird stuff like https://github.com/ascherer/cweb/blob/cweb-4.8-dev/if.w by repeating '#line' directives after all '#elif', '#else', and '#endif' preprocessor statements. In almost all cases this information is redundant, but in the past years people have come up with the idea to jump to '@<code sections@>' in '#if' blocks. git-svn-id: svn://tug.org/texlive/trunk@62066 c570f23f-e606-0410-a88d-b1316a301751
2022-02-14[CWEB] Adapt HINT to ifhint.tex.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@62022 c570f23f-e606-0410-a88d-b1316a301751
2022-02-14[CWEB] Add '#line' after '#endif'.Andreas Scherer
Some people incorporate '@<Section code@>' in preprocessor #if-blocks. (AFAIKS, DEK did this exactly _once_ in his 'reflect.w' example code, but never in any larger system program.) This adds material (lines of code) in the ctangle'd C code wrapped in '#line' directives for the benefit of the compiler/debugger/w.h.y. Depending on the #if-condition, the #line directives in the #if-block get eliminated and the resulting status from previous #line directives kicks the compiler (__LINE__ and possibly __FILE__) and the debugger (e.g., gdb, MSVS) off the track. git-svn-id: svn://tug.org/texlive/trunk@62021 c570f23f-e606-0410-a88d-b1316a301751
2022-02-10[CWEB] Fix \ATH and \datecontentspage.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61966 c570f23f-e606-0410-a88d-b1316a301751
2022-02-10[CWEB] Fix '\ATH' macro.Andreas Scherer
'\pdfnote' has moved from '\ifacro' to '\ifacroHINT' block. '\rangle' was placed too far left and over 'definitions'. git-svn-id: svn://tug.org/texlive/trunk@61965 c570f23f-e606-0410-a88d-b1316a301751
2022-02-05[CWEB] Release 4.7.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61893 c570f23f-e606-0410-a88d-b1316a301751
2022-02-03[CWEB] Purge a few WEB leftovers.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61863 c570f23f-e606-0410-a88d-b1316a301751
2022-02-02[CWEB] Reshuffle '\.pdfURL' for HiTeX.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61852 c570f23f-e606-0410-a88d-b1316a301751
2022-01-30[CWEB] Add paragraph about HiTeX support.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61805 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] CTWILL does not support HiTeX.Andreas Scherer
HiTeX has no concept of 'Page', let alobe of 'Spread', so there's no useful spot for the mini-indexes. git-svn-id: svn://tug.org/texlive/trunk@61791 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] Use \HINTversion to detect HiTeX.Andreas Scherer
ATTOW, this requires $ hitex -ini -jobname=hitex **tex.ini to activate the HiTeX extensions. git-svn-id: svn://tug.org/texlive/trunk@61790 c570f23f-e606-0410-a88d-b1316a301751
2022-01-29[CWEB] Support HINT format.Andreas Scherer
The upcoming CWEB 4.7 will support HiTeX and its HINT format. To use this material you can $ hitex -ini -jobname=hitex tex.ini $ make all PDF=hi fullmanual $ hintview common.hnt # et al. git-svn-id: svn://tug.org/texlive/trunk@61785 c570f23f-e606-0410-a88d-b1316a301751
2022-01-15[CWEB] Add a few auto-generated files from CWEBbin.Andreas Scherer
These are not required for TeX Live at this time. git-svn-id: svn://tug.org/texlive/trunk@61611 c570f23f-e606-0410-a88d-b1316a301751
2022-01-15[CWEB] Increase array sizes in CWEB 4.6.1.Andreas Scherer
Without affecting CWEB in TeX Live, various array sizes in 'original' CWEB (release 4.6.1) were increased so that both CTANGLE and CWEAVE (but unfortunately _not_ CTWILL) can process CTEX.W in Martin Ruckert's WEB2W project (https://w3-o.cs.hm.edu/users/ruckert/public_html/web2w/index.html). git-svn-id: svn://tug.org/texlive/trunk@61610 c570f23f-e606-0410-a88d-b1316a301751
2021-12-26[CWEB] New release 4.6.Andreas Scherer
Major changes since CWEB 4.5: * Restore '\T' macro backward compatibility. CWEB 4.3 introduced a major change in the '\T' macro to allow C++ 'hex exponent' notation (e.g., 0x1FFFFp10). This made CWEAVE/CTWILL mutually incompatible with non-matching versions of their set of macros and v.v. This release tries to reestablish the standard behavior at least for numeric constants. Of course, 'old' CWEAVE/CTWILL won't deliver on 'hex exponents' in the CWEB input, but those should be rare anyway. * Restore 'classic' PDF page dimensions. Heiko's PDF files of 2014 used 'Executive' page dimensions, i.e., 7.5in times 10in. C/WEB's internal inch values suggest to use those plus a 0.5in border on each side. * Revert meaning of option 'c'. Option 'c' is OFF by default to avoid spurious entries in build.log. * 'squash'/'reduce' have been straightened out for k=1,..,4. * Code beautifications for 'make fullmanual'. * Code cleanup for internal reasons. * Cleanup in 'prod.w' (indentation et al.). * New 'prod-cweave.w' (along 'prod-twill.w') for material from CWEBbin. * Fixes for option '-o' (didn't work as advertised in border cases). * New signature for the 'make_ministring' function in CTWILL. git-svn-id: svn://tug.org/texlive/trunk@61411 c570f23f-e606-0410-a88d-b1316a301751
2021-12-20[CWEB] Adapt page break in CTWILL.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61353 c570f23f-e606-0410-a88d-b1316a301751
2021-12-20[CWEB] Reshuffle 'gettext' header.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61352 c570f23f-e606-0410-a88d-b1316a301751
2021-12-05[CWEB] Active link to the CTWILL user manual.Andreas Scherer
Fix several FIXME references on the go. git-svn-id: svn://tug.org/texlive/trunk@61220 c570f23f-e606-0410-a88d-b1316a301751
2021-11-26[CWEB] Adapt CTWILL to recent changes.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61158 c570f23f-e606-0410-a88d-b1316a301751
2021-11-24[CWEB] Reshuffle code in CWEAVE.Andreas Scherer
The 'mathness' stuff can be factored out from the 'big_app' stuff. git-svn-id: svn://tug.org/texlive/trunk@61138 c570f23f-e606-0410-a88d-b1316a301751
2021-11-22[CWEB] Copyright text in common interface.Andreas Scherer
'common.h' has the same copyright text as 'common.w'. git-svn-id: svn://tug.org/texlive/trunk@61118 c570f23f-e606-0410-a88d-b1316a301751
2021-11-14[CWEB] More generic point of interest.Andreas Scherer
Instead of to the tex-k mail address, we direct the CWEB user to the package home page on CTAN, where more detailed information is listed. git-svn-id: svn://tug.org/texlive/trunk@61053 c570f23f-e606-0410-a88d-b1316a301751
2021-11-12[CWEB] Consistently refer to the COMMON module.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@61035 c570f23f-e606-0410-a88d-b1316a301751
2021-10-31[CWEB] Restore '\T' macro backward compatibility.Andreas Scherer
CWEB 4.3 introduced a major change in the '\T' macro to allow C++ 'hex exponent' notation (e.g., 0x1FFFFp10). This made CWEAVE/CTWILL mutually incompatible with non-matching versions of their set of macros and v.v. This change tries to reestablish the standard behavior at least for numeric constants. Of course, 'old' CWEAVE/CTWILL won't deliver on 'hex exponents' in the CWEB input, but those should be rare anyway. git-svn-id: svn://tug.org/texlive/trunk@60909 c570f23f-e606-0410-a88d-b1316a301751
2021-10-24[CWEB] Restore 'classic' PDF page dimensions.Andreas Scherer
Heiko's PDF files of 2014 used 'Executive' page dimensions, i.e., 7.5in times 10in. C/WEB's internal inch values suggest to use those plus a 1in border on each side. git-svn-id: svn://tug.org/texlive/trunk@60857 c570f23f-e606-0410-a88d-b1316a301751
2021-10-14[CWEB] Fix CTWILL's dyscalculia.Andreas Scherer
C/C++ calculates '0x1FFFFp10' as '134216704', which equals '131071*1024' with '1024=2^10'. ('p' is part of the 'hex-exponent'.) git-svn-id: svn://tug.org/texlive/trunk@60761 c570f23f-e606-0410-a88d-b1316a301751
2021-10-11[CWEB] Pre-release candidate 2 for CWEB 4.6.Andreas Scherer
When the CWEB programs are called with option '-c' (the default), no intermediate output files are created at all. After thoroughly testing these programs, I'll prepare the final release of CWEB 4.6 in the coming weeks (months). git-svn-id: svn://tug.org/texlive/trunk@60728 c570f23f-e606-0410-a88d-b1316a301751
2021-09-16[CWEB] Pre-release of version 4.6.Andreas Scherer
This is a service update due to general demand: * Option 'c' is OFF by default to avoid spurious entries in build.log. * 'squash'/'reduce' have been straightened out for k=1,..,4. * Code beautifications for 'make fullmanual'. * Code cleanup for internal reasons. * Cleanup in 'prod.w' (indentation et al.). * New 'prod-cweave.w' (along 'prod-twill.w') for material from CWEBbin. * Fixes for option '-o' (didn't work as advertised in border cases). * New signature for the 'make_ministring' function in CTWILL. git-svn-id: svn://tug.org/texlive/trunk@60519 c570f23f-e606-0410-a88d-b1316a301751
2021-07-14[CWEB] New release 4.5.Andreas Scherer
This is a service release for CWEB 4.0. * Upstream CWEB 4.5 was reviewed with the 'splint' utility. This resulted in lots of cast changes and a few code improvements. * All 'length' variables are retyped to 'size_t'. * <stdbool.h> is replaced by <kpathsea/simpletypes.h> to keep CWEB compatible with antique systems that still support TeX Live. git-svn-id: svn://tug.org/texlive/trunk@59926 c570f23f-e606-0410-a88d-b1316a301751
2021-06-06[CWEB] New release 4.4.Andreas Scherer
This is yet another service release for CWEB 4.0. * Upstream CWEB 4.4 has been reset to the original buffer sizes of CWEB 3.64c. These are now also used in stand-alone CWEBbin. CWEB for TeX Live uses extended/maxed-out buffer settings. * A few minor typographical bugs were fixed. * Tons of minutiae were addressed in the 'fullmanual' documents. git-svn-id: svn://tug.org/texlive/trunk@59486 c570f23f-e606-0410-a88d-b1316a301751
2021-05-03[CWEB] New release 4.3.1.Andreas Scherer
This release is almost the same as CWEB 4.3 of 2021-04-16, but * it fixes the indexing bug in CWEAVE/CTWILL that got retracted * it extracts and collects all additions made in CTWILL, so that the section numbers of CWEAVE are retained up to §272 and new material is described in the (first) appendix, including the CTWILL user manual * it provides fully revised and (hopefully) corrected mini-indexes for CTWILL, if it is processed by itself (to be published in package 'knuth-pdf' on CTAN) git-svn-id: svn://tug.org/texlive/trunk@59061 c570f23f-e606-0410-a88d-b1316a301751
2021-05-02Revert "[CWEB] New release 4.3."Andreas Scherer
This reverts commit 3ccac2a7d0f4a19dde861c6f4c178e853d90f0cc. CWEB 4.3 is seriously broken. git-svn-id: svn://tug.org/texlive/trunk@59048 c570f23f-e606-0410-a88d-b1316a301751
2021-04-16[CWEB] New release 4.3.Andreas Scherer
This release introduces new features to CWEB 4: * Former option '-t' is now called '-c'. - New option '-t' for CWEAVE when dealing with 'typename' in C++ templates. - New option '-k' for CTANGLE to keep '-separators in numeric literals. * Support for "variadic macros" along "variadic functions". * @d is printed similar to #define (and vice versa): - '#' is no longer printed in boldface. - Spacing is similar in most cases. * Support for extended C99/C++ numeric literals: - hexadecimal, octal, and -- new! -- binary numbers. - NOTE: 'cwebmac.tex 4.3' is NOT compatible with CWEAVE 4.2 and older and vice versa. * Long parameter lists in ANSI function definitions are indented similar to old-style function parameters. - Option '-i' works similar for old-style and modern function headers. * Additional C99/C++ keywords -- from 'alignas' to 'thread_local' -- are supported internally. * '@i'nclude file 'iso_types.w' for numeric types (in addition to 'c++lib.w'). * Countless code modifications, including some corrections amd improvements. Thanks and cudos to Github user "@texdraft" for numerous contributions to this feature release! git-svn-id: svn://tug.org/texlive/trunk@58884 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25restore Build,TODO from r57911Karl Berry
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25French translation for tlmgr updatedDenis Bitouzé
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
2021-02-25[CWEB] New release 4.2.Andreas Scherer
This second service release wraps up the major code overhaul of CWEB 4.0. New features will take more time. git-svn-id: svn://tug.org/texlive/trunk@57895 c570f23f-e606-0410-a88d-b1316a301751
2021-02-24[CWEB] Code review.Andreas Scherer
Compactify single function declarations. git-svn-id: svn://tug.org/texlive/trunk@57874 c570f23f-e606-0410-a88d-b1316a301751
2021-02-24[CWEB] Fix spacing for |#include| in TeX comment.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@57871 c570f23f-e606-0410-a88d-b1316a301751
2021-02-24[CWEB] Fine print for single '@' characters in TeX text.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@57870 c570f23f-e606-0410-a88d-b1316a301751
2021-02-24[CWEB] Fix ouput format when 'tracing @2' (and '-p').Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@57869 c570f23f-e606-0410-a88d-b1316a301751
2021-02-23[CWEB] Purge trivial change.Andreas Scherer
git-svn-id: svn://tug.org/texlive/trunk@57856 c570f23f-e606-0410-a88d-b1316a301751