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)  

cfg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ConfigEntryT
 

Macros

#define DIRECT_A   0
 
#define FONT_A   1
 
#define IGNORE_A   2
 
#define STYLE_A   3
 
#define LANGUAGE_A   4
 
#define CFGDIR   ""
 
#define TRUE   1
 
#define FALSE   0
 

Typedefs

typedef int(* fptr) (const void *, const void *)
 
typedef struct ConfigEntryT ConfigEntryT
 

Functions

void ReadLanguage (char *lang)
 
void ConvertBabelName (char *name)
 
void ReadCfg (void)
 
int SearchRtfIndex (const char *theCommand, int WhichArray)
 
char * SearchRtfCmd (const char *theCommand, int WhichArray)
 
ConfigEntryT ** CfgStartIterate (int WhichCfg)
 
ConfigEntryT ** CfgNext (int WhichCfg, ConfigEntryT **last)
 
voidopen_cfg (const char *name, int quit_on_error)
 

Macro Definition Documentation

◆ CFGDIR

#define CFGDIR   ""

Definition at line 8 of file cfg.h.

◆ DIRECT_A

#define DIRECT_A   0

Definition at line 1 of file cfg.h.

◆ FALSE

#define FALSE   0

Definition at line 13 of file cfg.h.

◆ FONT_A

#define FONT_A   1

Definition at line 2 of file cfg.h.

◆ IGNORE_A

#define IGNORE_A   2

Definition at line 3 of file cfg.h.

◆ LANGUAGE_A

#define LANGUAGE_A   4

Definition at line 5 of file cfg.h.

◆ STYLE_A

#define STYLE_A   3

Definition at line 4 of file cfg.h.

◆ TRUE

#define TRUE   1

Definition at line 12 of file cfg.h.

Typedef Documentation

◆ ConfigEntryT

typedef struct ConfigEntryT ConfigEntryT

◆ fptr

typedef int(* fptr) (const void *, const void *)

Definition at line 16 of file cfg.h.

Function Documentation

◆ CfgNext()

ConfigEntryT** CfgNext ( int  WhichCfg,
ConfigEntryT **  last 
)

purpose: Get the next entry from specified configuration data

Definition at line 370 of file cfg.c.

References ConfigInfoT::config_info, configinfo, last, and NULL.

Referenced by CurrentCyrillicFontFamily(), RtfFontNumber(), WriteFontHeader(), and WriteStyleHeader().

◆ CfgStartIterate()

ConfigEntryT** CfgStartIterate ( int  WhichCfg)

purpose: Start iterating of configuration data

Definition at line 361 of file cfg.c.

References NULL.

Referenced by CurrentCyrillicFontFamily(), RtfFontNumber(), WriteFontHeader(), and WriteStyleHeader().

◆ ConvertBabelName()

void ConvertBabelName ( char *  name)

purpose : returns a pointer to the Printout name of a Heading, since this is read from a language file it provides translation capability. params : name, name of heading.

Definition at line 429 of file cfg.c.

References ConvertString(), LANGUAGE_A, name, NULL, s, and SearchRtfCmd().

Referenced by CmdAbstract(), CmdCaption(), CmdPs(), CmdSection(), and CmdThebibliography().

◆ open_cfg()

void* open_cfg ( const char *  name,
int  quit_on_error 
)

purpose: open config by trying multiple paths

Definition at line 117 of file cfg.c.

References CFGDIR, diagnostics(), ERROR, f, FILE, fopen, fp, free, g_config_path, getenv(), kpse_program_text_format, name, NULL, p, p1, strchr, strdup, try_path(), and WARNING__.

Referenced by my_fopen(), ReadCfg(), and ReadLanguage().

◆ ReadCfg()

void ReadCfg ( void  )

purpose: opens config-files & reads them globals: Direct-, Font- IgnoreArray[Size/Root]

Definition at line 278 of file cfg.c.

References ConfigInfoT::config_info_size, CONFIG_SIZE, configinfo, diagnostics(), fclose, FILE, ConfigInfoT::filename, fname, fp, i, open_cfg(), read_cfg(), TRUE, and void.

Referenced by main().

◆ ReadLanguage()

void ReadLanguage ( char *  lang)

opens and reads the language configuration file named in lang

Opens language file & builds a search tree for the translation of "Hardcoded" latex headings like "Part", "References", ... The file format is: LATEXTOKEN,Translation.

Definition at line 399 of file cfg.c.

References ConfigInfoT::config_info_size, configinfo, diagnostics(), ERROR, fclose, FILE, fp, free, lang, LANGUAGE_A, malloc, NULL, open_cfg(), read_cfg(), strcpy(), strlen(), TRUE, and void.

Referenced by setPackageBabel().

◆ SearchRtfCmd()

char* SearchRtfCmd ( const char *  theTexCommand,
int  WhichCfg 
)

purpose: search theTexCommand in a specified config data and return pointer to the data

Definition at line 344 of file cfg.c.

References fc-lang::help, NULL, and search_rtf().

Referenced by ConvertBabelName(), InsertStyle(), TryDirectConvert(), TryStyleConvert(), and TryVariableIgnore().

◆ SearchRtfIndex()

int SearchRtfIndex ( const char *  theTexCommand,
int  WhichCfg 
)

purpose: search theTexCommand in a specified config data and return index

Definition at line 329 of file cfg.c.

References ConfigInfoT::config_info, configinfo, fc-lang::help, NULL, and search_rtf().

Referenced by TexFontNumber().