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)  

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

Go to the source code of this file.

Macros

#define PREAMBLE   1
 
#define DOCUMENT   2
 
#define ITEMIZE   3
 
#define ENUMERATE   4
 
#define DESCRIPTION   5
 
#define LETTER   8
 
#define IGN_ENV_CMD   9
 
#define HYPERLATEX   10
 
#define FIGURE_ENV   11
 
#define GERMAN_MODE   12
 
#define FRENCH_MODE   13
 
#define RUSSIAN_MODE   14
 
#define GENERIC_ENV   15
 
#define CZECH_MODE   16
 
#define APACITE_MODE   17
 
#define NATBIB_MODE   18
 
#define ON   0x4000
 
#define OFF   0x0000
 

Functions

void PushEnvironment (int code)
 
void PopEnvironment ()
 
void ClearEnvironment ()
 
bool CallCommandFunc (char *cCommand)
 
void CallParamFunc (char *cCommand, int AddParam)
 
int CurrentEnvironmentCount (void)
 

Macro Definition Documentation

◆ APACITE_MODE

#define APACITE_MODE   17

Definition at line 17 of file commands.h.

◆ CZECH_MODE

#define CZECH_MODE   16

Definition at line 16 of file commands.h.

◆ DESCRIPTION

#define DESCRIPTION   5

Definition at line 7 of file commands.h.

◆ DOCUMENT

#define DOCUMENT   2

Definition at line 4 of file commands.h.

◆ ENUMERATE

#define ENUMERATE   4

Definition at line 6 of file commands.h.

◆ FIGURE_ENV

#define FIGURE_ENV   11

Definition at line 11 of file commands.h.

◆ FRENCH_MODE

#define FRENCH_MODE   13

Definition at line 13 of file commands.h.

◆ GENERIC_ENV

#define GENERIC_ENV   15

Definition at line 15 of file commands.h.

◆ GERMAN_MODE

#define GERMAN_MODE   12

Definition at line 12 of file commands.h.

◆ HYPERLATEX

#define HYPERLATEX   10

Definition at line 10 of file commands.h.

◆ IGN_ENV_CMD

#define IGN_ENV_CMD   9

Definition at line 9 of file commands.h.

◆ ITEMIZE

#define ITEMIZE   3

Definition at line 5 of file commands.h.

◆ LETTER

#define LETTER   8

Definition at line 8 of file commands.h.

◆ NATBIB_MODE

#define NATBIB_MODE   18

Definition at line 18 of file commands.h.

◆ OFF

#define OFF   0x0000

Definition at line 20 of file commands.h.

◆ ON

#define ON   0x4000

Definition at line 19 of file commands.h.

◆ PREAMBLE

#define PREAMBLE   1

Definition at line 3 of file commands.h.

◆ RUSSIAN_MODE

#define RUSSIAN_MODE   14

Definition at line 14 of file commands.h.

Function Documentation

◆ CallCommandFunc()

bool CallCommandFunc ( char *  cCommand)

purpose: Tries to call the command-function for the commandname params: string with command name returns: success or failure globals: command-functions have side effects or recursive calls

Definition at line 726 of file commands.c.

References CmdIgnoreParameter(), ConvertString(), diagnostics(), Environments, existsDefinition(), expandDefinition(), FALSE, free, commandtag::func, func, i, iEnvCount, j, NULL, param, strcmp(), TRUE, and WARNING__.

Referenced by TranslateCommand().

◆ CallParamFunc()

void CallParamFunc ( char *  cCommand,
int  AddParam 
)

purpose: Try to call the environment-function for the commandname params: cCommand - string with command name AddParam - param "ORed"(||) to the int param of command-funct returns: sucess or not globals: command-functions have side effects or recursive calls

Definition at line 773 of file commands.c.

References assert(), diagnostics(), commandtag::func, func, i, Ignore_Environment(), NULL, ON, param, params, snprintf, strcmp(), and WARNING__.

Referenced by CmdBeginEnd(), and CmdPreambleBeginEnd().

◆ ClearEnvironment()

void ClearEnvironment ( )

purpose: removes all environment-commands lists globals: changes Environment - array of active environments iEnvCount - counter of active environments

Definition at line 929 of file commands.c.

References Environments, iEnvCount, and NULL.

◆ CurrentEnvironmentCount()

int CurrentEnvironmentCount ( void  )

purpose: to eliminate the iEnvCount global variable

Definition at line 803 of file commands.c.

References iEnvCount.

Referenced by diagnostics().

◆ PopEnvironment()

void PopEnvironment ( )

purpose: removes the environment-commands list added by last PushEnvironment; globals: changes Environment - array of active environments iEnvCount - counter of active environments

Definition at line 903 of file commands.c.

References diagnostics(), Environments, g_left_indent_array, g_left_margin_indent, g_par_indent_array, g_right_indent_array, g_right_margin_indent, iEnvCount, NULL, and setLength().

Referenced by CmdLetter(), CmdList(), CmdQuote(), CmdThebibliography(), CmdVerse(), and Environment().

◆ PushEnvironment()