w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

comm-w2c.h File Reference
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for comm-w2c.h:

Go to the source code of this file.

Macros

#define HAVE_GETTEXT   0
 
#define gettext(A)   A
 

Typedefs

typedef uint8_t eight_bits
 
typedef uint16_t sixteen_bits
 
typedef name_infoname_pointer
 
typedef name_pointerhash_pointer
 

Enumerations

enum  cweb {
  ctangle , cweave , ctwill , ctangle ,
  cweave , ctwill , ctangle , cweave ,
  ctwill , ctangle , cweave , ctwill ,
  ctangle , cweave , ctwill , ctangle ,
  cweave , ctwill
}
 

Functions

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version February (works also with later versions) % Copyright(C) 1987
 
You may have noticed that almost we wrap things for neutral behavior without internationalization d _ (S) gettext(S) @< Include files@>
 
< Predecl...@> void check_complete (void)
 
void reset_input (void)
 
Code related to identifier and section name length ((c))) @d llink link @d rlink dummy.Rlink @d root name_dir -> rlink @< Common code...@>=typedef struct name_info
 
< Predecl...@> name_pointer id_lookup (const char *, const char *, char)
 
name_pointer section_lookup (char *, char *, int)
 
void init_node (name_pointer)
 
void init_p (name_pointer, eight_bits)
 
void print_prefix_name (name_pointer)
 
void print_section_name (name_pointer)
 
void sprint_section_name (char *, name_pointer)
 
< Predecl...@> void err_print (const char *)
 
void fatal (const char *, const char *)
 
void overflow (const char *)
 
Code related to b fflush (stdout)
 
Code related to b fwrite (a, sizeof(char), b, stdout) @d C_printf(c
 
Code related to b a fprintf (C_file, c, a) @d C_putc(c) putc(c
 
void print_stats (void)
 
void cb_show_banner (void)
 

Variables

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY WARRANTY
 
This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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
 
This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send comments
 
This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send suggestions
 
This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send etc to tex k tug org The next few sections contain stuff from the file common w that has to be included in both ctangle w and cweave w It appears in this file common h
 
This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send etc to tex k tug org The next few sections contain stuff from the file common w that has to be included in both ctangle w and cweave w It appears in this file common which is also included in common w to propagate possible changes from this single source consistently First comes general stuff
 
cweb program
 
int phase
 
You may have noticed that almost all
 
char * section_text_end
 
char * id_first
 
char * id_loc
 
Code related to input routines
 
char * buffer_end
 
char * loc
 
char * limit
 
Code related to file handling
 
FILEfile []
 
FILEchange_file
 
char file_name [][max_file_name_length]
 
char change_file_name []
 
char check_file_name []
 
int line []
 
int change_line
 
int change_depth
 
boolean input_has_ended
 
boolean changing
 
boolean web_file_open
 
Code related to section numbers
 
boolean changed_section []
 
boolean change_pending
 
boolean print_where
 
Code related to identifier and section name storage
 
 name_info
 
char byte_mem []
 
char * byte_mem_end
 
char * byte_ptr
 
name_info name_dir []
 
name_pointer name_dir_end
 
name_pointer name_ptr
 
name_pointer hash []
 
hash_pointer hash_end
 
d mark_error history
 
Code related to command line arguments
 
char ** argv
 
char C_file_name []
 
char tex_file_name []
 
char idx_file_name []
 
char scn_file_name []
 
boolean flags []
 
const char * use_language
 
Code related to output
 
Code related to b a C_file< Common code...@> FILEtex_file
 
FILEidx_file
 
FILEscn_file
 
FILEactive_file
 
FILEcheck_file
 
The procedure that gets everything rolling
 
The following parameters were sufficient in the original
 

Macro Definition Documentation

◆ gettext

#define gettext (   A)    A

◆ HAVE_GETTEXT

#define HAVE_GETTEXT   0

Typedef Documentation

◆ eight_bits

Definition at line 37 of file comm-w2c.h.

◆ hash_pointer

Definition at line 169 of file comm-w2c.h.

◆ name_pointer

Definition at line 168 of file comm-w2c.h.

◆ sixteen_bits

Definition at line 38 of file comm-w2c.h.

Enumeration Type Documentation

◆ cweb

enum cweb
Enumerator
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 

Definition at line 39 of file comm-w2c.h.

Function Documentation

◆ _()

You may have noticed that almost we wrap things for neutral behavior without internationalization d _ ( S  )

◆ cb_show_banner()

void cb_show_banner ( void  )

Definition at line 1652 of file cwebboot.c.

◆ check_complete()

<Predecl...@> void check_complete ( void  )

Definition at line 942 of file cwebboot.c.

◆ err_print()

<Predecl...@> void err_print ( const char *  s)

Definition at line 1289 of file cwebboot.c.

◆ fatal()

void fatal ( const char *  s,
const char *  t 
)

Definition at line 1374 of file cwebboot.c.

◆ February()

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version February ( works also with later  versions)

◆ fflush()

Code related to b fflush ( stdout  )

◆ fprintf()

Code related to b a fprintf ( C_file  ,
c  ,
a   
)

◆ fwrite()

Code related to b fwrite ( a  ,
sizeof(char)  ,
b  ,
stdout   
)

Referenced by __gmpf_out_str(), __gmpfr_fpif_export(), __gmpz_out_raw(), __gmpz_out_str(), _WriteWOFFFont(), a85_xship(), AppendFile(), aptex_dump_put(), array_save_ppm(), arrayWrite(), bbufferWriteStream(), Bitio_Flush(), BZ2_bzWrite(), BZ2_bzWriteClose64(), calculate_PS(), ccbaWriteStream(), ck_fwrite(), Clp_fprintf(), Clp_vfprintf(), commit_code(), compress0(), compressOrNot(), ConvertFile::convertFile(), convertpng(), convsample_40(), convsample_46(), copy(), copyfont(), data_out(), dbgcmd_print(), default_gs_addmess(), displayJob(), do_dump(), do_dump_table(), do_fnt_def(), do_ud(), do_us(), do_xxx(), doConversion(), SplashOutputDev::doUpdateFont(), draw_frame(), ImageOutputDev::drawImage(), ImageOutputDev::drawImageMask(), dummy_xship(), Dump(), dumpg___info(), dumppstr(), dumpsavedtable(), dumpstoredtable(), dvi_close(), dvi_init(), e_wsue(), FileErrorHandler::emit(), encode_row(), eps_to_pict(), extract_doseps(), Package::extractItem(), FcDirCacheCreateTagFile(), fcopy(), file_stream_write(), file_write(), filePutbuf(), FileWrite(), Efont::Type1PFBWriter::flush(), flush_char(), flushrow(), ForceFileToHaveName(), fwriteWrapper(), G___figureLookups(), g_write(), get_image(), Filter::UngetFILED::getFILE(), GetRemoteFrame(), GIFEncode(), gmp_fprintf_memory(), io_file_write(), iof_data_to_file(), iof_debug(), iof_file_write(), iof_reader_to_file(), iof_reader_to_file_handle(), JMovie2JPEG(), lj_cf_print(), lzw_xship(), main(), make_eps_metafile(), make_eps_tiff(), make_eps_user(), MightBeTrueType(), morxDumpChain(), mpq_out_str(), mpz_out_str(), mrb_bug(), mrb_dump_irep_binary(), mrb_warn(), one_liner(), otfcc_build(), otfcc_dump(), output(), output_applesingle(), output_encoding(), output_macbinary(), output_new_rsrc(), output_raw(), output_sixel_record(), output_tfm(), MediaRendition::outputToFile(), outputToFile(), outstripe(), owrite(), p(), P_fwrite(), pbm_writepbmrow_packed(), pdf_out(), pdf_out_str(), pfb_writer_output_block(), pgm_writerawsample(), PicComment(), pixWriteStreamAsciiPnm(), pixWriteStreamBmp(), pixWriteStreamPnm(), pixWriteStreamPS(), PKopen(), PKputglyph(), png_default_write_data(), pr_dump(), prepare_tex(), Object::print(), Efont::Type1PFAWriter::print0(), printCSS(), printcstr(), printDestinations(), printInfoString(), JSInfo::printJS(), printstr(), ps_to_eps(), pscopy(), pscopyuntil(), pump_from_tmp(), put_Lstring(), putbytes(), putglyph(), putinit(), putitem(), putspecl(), putstring(), puttzcode(), puttzcode64(), resolution_reduction(), save_pbm(), save_pgpm(), PDFDoc::saveAs(), PDFDoc::saveEmbeddedFile2(), scp2_put(), scp3_put(), scp_put(), SearchPostscriptResources(), SearchTtfResources(), SearchTtfResourcesFile(), seekable(), drvJAVA2::show_image(), slideout(), spc_handler_ps_tricks_bput(), spc_handler_ps_tricks_parse_path(), spc_handler_ps_tricks_pdef(), spc_handler_ps_tricks_render(), spc_handler_ps_tricks_tdef(), StartIOServer(), stderr_writer(), stdio_write(), stdio_write_func(), stdout_writer(), T_FileStream_write(), TextOutputDev_outputToFile(), tie(), u_file_write_flush_68(), uncompressStream(), unzzip_big_entry_fprint(), unzzip_cat_file(), unzzip_mem_disk_cat_file(), unzzip_mem_entry_fprint(), update_autofont_map(), FormWidgetSignature::updateOffsets(), uprint(), Files::FILEW::vformat(), Filter::PipeD::vi_precopy(), Filter::PipeE::vi_write(), Filter::FILEE::vi_write(), Files::FILEW::vi_write(), vlink_put(), work(), write_bmp(), write_body(), write_callback_test(), write_dvi(), write_encoding_file(), write_header(), write_interp_line(), write_it(), write_metafile(), write_rgb_bits(), write_tiff(), write_trailer(), SplashBitmap::writeAlphaPGMFile(), WriteDecodedFrame(), WebFont::writeOTF(), Package::writePackage(), writepfm(), SplashBitmap::writePNMFile(), WritePPM(), writer(), NetPBMWriter::writeRow(), WriteStr(), writeStream(), writetga(), writeToFile(), writeToFileFunc(), WriteYUV(), writezone(), xfwrite(), yylex(), zzip_cat_file(), zzip_entry_fprint(), zzip_mem_entry_pipe(), and drvWMF::~drvWMF().

◆ id_lookup()

<Predecl...@> name_pointer id_lookup ( const char *  first,
const char *  last,
char  t 
)

Definition at line 958 of file cwebboot.c.

◆ init_node()

void init_node ( name_pointer  node)

Definition at line 565 of file ctangleboot.c.

◆ init_p()

void init_p ( name_pointer  p,
eight_bits  t 
)

Definition at line 571 of file ctangleboot.c.

◆ length()

Code related to identifier and section name length ( (c ) -> rlink @<Common code...@>= typedef struct name_info

◆ overflow()

void overflow ( const char *  t)

Definition at line 1385 of file cwebboot.c.

◆ print_prefix_name()

void print_prefix_name ( name_pointer  p)

Definition at line 1058 of file cwebboot.c.

◆ print_section_name()

void print_section_name ( name_pointer  p)

Definition at line 1014 of file cwebboot.c.

◆ print_stats()

void print_stats ( void  )

Definition at line 1930 of file ctangleboot.c.

◆ reset_input()

void reset_input ( void  )

Definition at line 761 of file cwebboot.c.

◆ section_lookup()

name_pointer section_lookup ( char *  first,
char *  last,
int  ispref 
)

Definition at line 1150 of file cwebboot.c.

◆ sprint_section_name()

void sprint_section_name ( char *  dest,
name_pointer  p 
)

Definition at line 1035 of file cwebboot.c.

Variable Documentation

◆ active_file

FILE* active_file
extern

Definition at line 394 of file cwebboot.c.

◆ all

You may have noticed that almost all
Initial value:
{"strings"} in the \.{CWEB} sources
are placed in the context of the `|_|'~macro. This is just a shortcut for the
`|@!gettext|' function from the ``GNU~~gettext utilities.'' For systems that do
not have this library installed
#define the
Definition: aptex-macros.h:490
FT_Library library
Definition: cffdrivr.c:660
#define CWEB
Definition: cwebboot.c:49
You may have noticed that almost we wrap things for neutral behavior without internationalization d _(S) gettext(S) @< Include files@>
static FILE * in
Definition: squeeze.c:36
@ systems
Definition: preamble.c:51

Definition at line 45 of file comm-w2c.h.

◆ arguments

Definition at line 210 of file comm-w2c.h.

◆ argv

char** argv
extern

Definition at line 9 of file config.h.

◆ buffer_end

char* buffer_end
extern

Definition at line 308 of file cwebboot.c.

◆ byte_mem

char byte_mem[]
extern

Definition at line 347 of file cwebboot.c.

◆ byte_mem_end

char* byte_mem_end
extern

Definition at line 348 of file cwebboot.c.

◆ byte_ptr

char* byte_ptr
extern

Definition at line 355 of file cwebboot.c.

◆ C_file_name

char C_file_name[]
extern

Definition at line 375 of file cwebboot.c.

◆ change_depth

int change_depth
extern

Definition at line 324 of file cwebboot.c.

◆ change_file

FILE* change_file
extern

Definition at line 317 of file cwebboot.c.

◆ change_file_name

char change_file_name[]
extern

Definition at line 320 of file cwebboot.c.

◆ change_line

int change_line
extern

Definition at line 323 of file cwebboot.c.

◆ change_pending

boolean change_pending
extern

Definition at line 340 of file cwebboot.c.

◆ changed_section

boolean changed_section[]
extern

Definition at line 339 of file cwebboot.c.

◆ changing

boolean changing
extern

Definition at line 326 of file cwebboot.c.

◆ check_file

FILE* check_file
extern

Definition at line 392 of file cwebboot.c.

◆ check_file_name

char check_file_name[]
extern

Definition at line 380 of file cwebboot.c.

◆ comments

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send comments

Definition at line 21 of file comm-w2c.h.

◆ copying

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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

Definition at line 14 of file comm-w2c.h.

◆ file

FILE* file[]
extern

Definition at line 930 of file t4ht.c.

◆ file_name

char file_name[][max_file_name_length]
extern

Definition at line 318 of file cwebboot.c.

◆ flags

boolean flags[]
extern

Definition at line 1168 of file t4ht.c.

◆ h

Definition at line 25 of file comm-w2c.h.

◆ handling

Code related to error handling

Definition at line 111 of file comm-w2c.h.

◆ hash

name_pointer hash[]
extern

Definition at line 361 of file cwebboot.c.

◆ hash_end

hash_pointer hash_end
extern

Definition at line 362 of file cwebboot.c.

◆ history

d mark_error history
Initial value:
@d confusion(s) fatal(_("! This can't happen: "),s)
@.This can't happen@>
@<Common code...@>=
extern int history
#define s
Definition: afcover.h:80
#define d(n)
Definition: gpos-common.c:151
#define error_message
Definition: ctangleboot.c:74
#define confusion(s)
Definition: ctangleboot.c:78
void fatal(const char *, const char *)
Definition: cwebboot.c:1374

Definition at line 197 of file comm-w2c.h.

◆ id_first

char* id_first
extern

Definition at line 301 of file cwebboot.c.

◆ id_loc

char* id_loc
extern

Definition at line 302 of file cwebboot.c.

◆ idx_file

FILE* idx_file
extern

Definition at line 389 of file cwebboot.c.

◆ idx_file_name

char idx_file_name[]
extern

Definition at line 377 of file cwebboot.c.

◆ input_has_ended

boolean input_has_ended
extern

Definition at line 179 of file ctie-k.c.

◆ limit

char* limit
extern

Definition at line 310 of file cwebboot.c.

◆ line

int line[]
extern

Definition at line 29 of file process_score.c.

◆ loc

char* loc
extern

Definition at line 309 of file cwebboot.c.

◆ name_dir

name_info name_dir[]
extern

Definition at line 349 of file cwebboot.c.

◆ name_dir_end

name_pointer name_dir_end
extern

Definition at line 350 of file cwebboot.c.

◆ name_info

Definition at line 167 of file comm-w2c.h.

◆ name_ptr

name_pointer name_ptr
extern

Definition at line 356 of file cwebboot.c.

◆ numbers

◆ original

◆ output

Code related to output

Definition at line 228 of file comm-w2c.h.

◆ phase

int phase
extern

Definition at line 294 of file cwebboot.c.

◆ print_where

boolean print_where
extern

Definition at line 342 of file cwebboot.c.

◆ program

cweb program
extern

Definition at line 152 of file dv2dt.c.

◆ rolling

The procedure that gets everything rolling

Definition at line 243 of file comm-w2c.h.

Referenced by leapadd().

◆ routines

Code related to input routines

Definition at line 97 of file comm-w2c.h.

◆ scn_file

FILE* scn_file
extern

Definition at line 391 of file cwebboot.c.

◆ scn_file_name

char scn_file_name[]
extern

Definition at line 379 of file cwebboot.c.

◆ section_text_end

char* section_text_end
extern

Definition at line 300 of file cwebboot.c.

◆ storage

Code related to identifier and section name storage

Definition at line 149 of file comm-w2c.h.

◆ stuff

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send etc to tex k tug org The next few sections contain stuff from the file common w that has to be included in both ctangle w and cweave w It appears in this file common which is also included in common w to propagate possible changes from this single source consistently First comes general stuff

Definition at line 28 of file comm-w2c.h.

Referenced by gww_iconv_open().

◆ suggestions

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY express or implied Version 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 provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one Amendments to common h resulting in this updated version were created by numerous collaborators over the course of many years Please send suggestions

Definition at line 21 of file comm-w2c.h.

◆ tex_file

Code related to b a C_file<Common code...@> FILE* tex_file
extern
Initial value:
=
extern FILE *C_file
FILE * C_file
Definition: cwebboot.c:387
#define FILE
Definition: t1stdio.h:34

Definition at line 388 of file cwebboot.c.

◆ tex_file_name

char tex_file_name[]
extern

Definition at line 376 of file cwebboot.c.

◆ use_language

const char* use_language
extern

Definition at line 402 of file cwebboot.c.

◆ WARRANTY

This file is part of CWEB This program by Silvio Levy and Donald E Knuth is based on a program by Knuth It is distributed WITHOUT ANY WARRANTY

Definition at line 4 of file comm-w2c.h.

◆ web_file_open

boolean web_file_open
extern

Definition at line 327 of file cwebboot.c.