MiKTeX 25.2-next
A scalable TeX distribution
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Namespaces | Functions | Variables
Web2C emulation

Utilities for emulating Web2c. More...

Namespaces

namespace  MiKTeX::Web2C
 MiKTeX Web2C emulation utilities.
 

Functions

integer miktex_zround (double r)
 
void miktex_web2c_change_recorder_file_name (const char *path)
 
void miktex_web2c_record_file_name (const char *path, int reading)
 
void miktex_setupboundvariable (integer *pVar, const char *lpszVarName, integer dflt)
 
const char * miktex_web2c_get_output_directory ()
 
void miktex_web2c_set_output_directory (const char *path)
 

Variables

boolean miktex_web2c_recorder_enabled
 
const_string miktex_web2c_version_string
 
string miktex_web2c_fullnameoffile
 

cpascal.h

Stuff from cpascal.h.

typedef double real
 
template<class T >
T * addressof (T &x)
 
template<class T >
const char * conststringcast (T *s)
 
#define decr(x)   --(x)
 
#define incr(x)   ++(x)
 
#define halfp(i)   ((i) >> 1)
 
#define ISDIRSEP   IS_DIR_SEP
 
#define libcfree   free
 
#define odd(x)   ((x) & 1)
 
#define round(x)   miktex_zround((double) (x))
 
#define xmallocarray(type, size)    ((type*)xmalloc(((size) + 1) * sizeof(type)))
 
#define xreallocarray(ptr, type, size)    ((type*)xrealloc(ptr, ((size) + 1) * sizeof(type)))
 
#define nil   nullptr
 
#define kpsevarvalue   kpse_var_value
 
#define kpseinitprog   kpse_init_prog
 
#define kpsesetprogramenabled   kpse_set_program_enabled
 
#define kpsepkformat   kpse_pk_format
 
#define kpsesrccmdline   kpse_src_cmdline
 
#define kpsemaketexdiscarderrors   kpse_make_tex_discard_errors
 
#define intcast(x)   ((integer)(x))
 
#define stringcast(x)   ((char *) (x))
 
#define ucharcast(x)   ((unsigned char)(x))
 
#define ustringcast(x)   ((unsigned char *) (x))
 
#define promptfilenamehelpmsg   "(Press Enter to retry, or Control-Z to exit"
 
#define vgetc(f)   (void)getc(f)
 
#define cinttype   int
 

lib.h

Stuff from lib.h.

constexpr const char * versionstring = " (" MIKTEX_PRODUCTNAME_STR " " MIKTEX_DISPLAY_VERSION_STR ")"
 
int open_input (FILE **f_ptr, kpse_file_format_type filefmt, const char *fopen_mode)
 
void recorder_change_filename (const char *new_name)
 
void recorder_record_input (const char *fname)
 
void recorder_record_output (const char *fname)
 
#define output_directory   miktex_web2c_get_output_directory()
 
#define recorder_enabled   miktex_web2c_recorder_enabled
 
#define fullnameoffile   miktex_web2c_fullnameoffile
 

texmfmp.h

Stuff from texmfmp.h.

char * generic_synctex_get_current_name ()
 
int runsystem (const char *cmd)
 
void secondsandmicros (integer &s, integer &m)
 

Detailed Description

Utilities for emulating Web2c.

In order to support programs relying on Web2c, we implement an emulation library.