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)  

main.h
Go to the documentation of this file.
1 /* $Id: main.h,v 1.63 2003/09/26 04:34:28 prahl Exp $ */
2 
3 #if defined(UNIX)
4 #define ENVSEP ':'
5 #define PATHSEP '/'
6 #endif
7 
8 #if defined(MSDOS) || defined(OS2) || defined(WIN32)
9 #define ENVSEP ';'
10 #define PATHSEP '/'
11 #include <kpathsea/config.h>
12 #endif
13 
14 #if defined(MAC_CLASSIC)
15 #define ENVSEP '^'
16 #define PATHSEP ':'
17 #include "MainMain.h"
18 #endif
19 
20 #define HAS_STRDUP 1
21 #ifdef HAS_STRDUP
22 #else
23 #define strdup my_strdup
24 #endif
25 
26 #ifndef SEEK_SET
27 #define SEEK_SET 0
28 #define SEEK_CUR 1
29 #endif
30 
31 #define ERROR 0
32 #define WARNING__ 1
33 
34 #define MAXCOMMANDLEN 100
35 
36 /* available values for alignment */
37 #define LEFT 'l'
38 #define RIGHT 'r'
39 #define CENTERED 'c'
40 #define JUSTIFIED 'j'
41 
42 #define PATHMAX 255
43 
44 /*** error constants ***/
45 #include <assert.h>
46 #include <stdio.h>
47 
48 /*** interpret comment lines that follow the '%' with this string ***/
49 extern const char * InterpretCommentString;
50 
51 typedef int bool;
52 
53 void diagnostics(int level, char *format,...);
54 
55 extern /* @dependent@ */ FILE *fRtf; /* file pointer to RTF file */
56 extern char *g_aux_name;
57 extern char *g_bbl_name;
58 extern char *g_home_dir;
59 extern char *progname; /* name of the executable file */
60 
61 extern bool GermanMode;
62 extern bool FrenchMode;
63 extern bool RussianMode;
64 extern bool CzechMode;
65 extern bool pagenumbering;
66 extern int headings;
67 
68 extern int g_verbosity_level;
69 extern int RecursionLevel;
70 extern int g_left_margin_indent;
71 extern int g_right_margin_indent;
72 extern char alignment;
73 
74 /* table & tabbing variables */
75 extern char *colFmt;
76 extern long pos_begin_kill;
77 extern int tabcounter;
78 extern int colCount;
79 extern int actCol;
80 extern int g_equation_column;
81 extern int tabcounter;
82 
83 extern bool twocolumn;
84 extern bool titlepage;
85 extern bool g_processing_equation;
86 extern bool g_processing_preamble;
87 extern bool g_processing_figure;
88 extern bool g_processing_table;
89 extern bool g_processing_tabbing;
90 extern bool g_processing_tabular;
91 extern bool g_processing_eqnarray;
92 extern int g_processing_arrays;
93 extern int g_processing_fields;
94 extern int g_dots_per_inch;
95 
96 extern int g_document_type;
97 extern int g_document_bibstyle;
98 
99 extern bool g_fields_use_EQ;
100 extern bool g_fields_use_REF;
101 
102 extern int g_equation_number;
103 extern bool g_escape_parent;
104 extern bool g_show_equation_number;
105 extern int g_enumerate_depth;
106 extern bool g_suppress_equation_number;
107 extern bool g_aux_file_missing;
108 extern char g_charset_encoding_name[20];
109 extern int g_fcharset_number;
110 
111 extern char *g_figure_label;
112 extern char *g_table_label;
113 extern char *g_equation_label;
114 extern char *g_section_label;
115 extern char *g_config_path;
116 extern char *g_script_path;
117 extern char g_field_separator;
118 extern char *g_preamble;
119 
120 extern double g_png_equation_scale;
121 extern double g_png_figure_scale;
122 extern bool g_latex_figures;
123 
124 extern bool g_equation_inline_rtf;
125 extern bool g_equation_display_rtf;
126 extern bool g_equation_inline_bitmap;
127 extern bool g_equation_display_bitmap;
128 extern bool g_equation_comment;
129 extern bool g_little_endian;
130 
131 void fprintRTF(char *format, ...);
132 void putRtfChar(char cThis);
133 char *getTmpPath(void);
134 char *my_strdup(const char *str);
135 FILE *my_fopen(char *path, char *mode);
136 
137 void debug_malloc(void);
int level
Definition: afm2pl.c:1694
#define mode
Definition: aptex-macros.h:510
bool g_suppress_equation_number
Definition: main.c:89
int g_left_margin_indent
Definition: funct1.c:53
FILE * my_fopen(char *path, char *mode)
Definition: main.c:817
void diagnostics(int level, char *format,...)
Definition: main.c:469
bool g_processing_equation
Definition: main.c:99
int bool
Definition: main.h:51
char * colFmt
Definition: tables.c:62
bool g_equation_inline_rtf
Definition: main.c:109
bool g_escape_parent
Definition: main.c:106
int actCol
Definition: tables.c:61
int g_document_bibstyle
Definition: main.c:93
bool g_show_equation_number
Definition: main.c:87
char * g_home_dir
Definition: main.c:59
double g_png_figure_scale
Definition: main.c:115
void fprintRTF(char *format,...)
Definition: main.c:722
bool RussianMode
Definition: main.c:67
bool g_aux_file_missing
Definition: main.c:90
char * my_strdup(const char *str)
Definition: main.c:798
bool g_equation_display_rtf
Definition: main.c:108
int g_fcharset_number
Definition: main.c:71
char g_charset_encoding_name[20]
Definition: main.c:70
char * g_equation_label
Definition: xref.c:41
int g_right_margin_indent
Definition: funct1.c:52
bool g_little_endian
Definition: main.c:75
int colCount
Definition: tables.c:60
bool g_processing_figure
Definition: main.c:82
bool GermanMode
Definition: main.c:65
int g_processing_fields
Definition: main.c:85
bool CzechMode
Definition: main.c:68
char g_field_separator
Definition: main.c:105
char alignment
Definition: main.c:119
int g_dots_per_inch
Definition: main.c:76
bool g_equation_display_bitmap
Definition: main.c:111
double g_png_equation_scale
Definition: main.c:114
char * g_preamble
Definition: main.c:104
bool g_equation_inline_bitmap
Definition: main.c:110
void debug_malloc(void)
Definition: main.c:850
bool FrenchMode
Definition: main.c:66
int g_verbosity_level
Definition: main.c:74
char * g_aux_name
Definition: main.c:57
bool g_latex_figures
Definition: main.c:116
char * g_table_label
Definition: xref.c:40
bool g_equation_comment
Definition: main.c:112
bool g_processing_eqnarray
Definition: main.c:83
bool twocolumn
Definition: main.c:121
int RecursionLevel
Definition: main.c:120
char * g_figure_label
Definition: xref.c:39
bool g_fields_use_REF
Definition: main.c:96
char * g_config_path
Definition: main.c:101
char * g_bbl_name
Definition: main.c:58
char * getTmpPath(void)
Definition: main.c:762
bool g_processing_tabular
Definition: tables.c:57
bool g_processing_table
Definition: tables.c:58
bool pagenumbering
Definition: main.c:78
int g_enumerate_depth
Definition: main.c:88
char * progname
Definition: jbigtopnm.c:19
bool g_processing_tabbing
Definition: tables.c:56
char * g_script_path
Definition: main.c:102
int g_processing_arrays
Definition: main.c:84
bool titlepage
Definition: main.c:122
char * g_section_label
Definition: xref.c:42
bool g_fields_use_EQ
Definition: main.c:95
int tabcounter
Definition: main.h:81
int g_document_type
Definition: main.c:92
int g_equation_column
Definition: equation.c:46
void putRtfChar(char cThis)
Definition: main.c:703
const char * InterpretCommentString
Definition: main.c:62
FILE * fRtf
Definition: main.c:54
bool g_processing_preamble
Definition: main.c:81
int g_equation_number
int headings
Definition: main.c:79
long pos_begin_kill
Definition: tables.c:55
static int format
Definition: pbmclean.c:15
#define str(s)
Definition: sh6.c:399
Definition: tpic.c:45
#define FILE
Definition: t1stdio.h:34