1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
#ifndef _MAIN_H_INCLUDED
#define _MAIN_H_INCLUDED 1
#if defined(UNIX)
#define ENVSEP ':'
#define PATHSEP '/'
#define HAS_STRDUP
#endif
#if defined(MSDOS) || defined(OS2)
#define ENVSEP ';'
#define PATHSEP '\\'
#endif
#if defined(VMS)
#define ENVSEP ','
#define PATHSEP ''
#endif
#ifdef HAS_STRDUP
#else
#define strdup my_strdup
#endif
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
#endif
#define ERROR 0
#define WARNING 1
#define MAXCOMMANDLEN 100
/* available values for alignment */
#define LEFT 'l'
#define RIGHT 'r'
#define CENTERED 'c'
#define JUSTIFIED 'j'
#define PATHMAX 255
/*** error constants ***/
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
/*** handy boolean type definition ***/
#ifndef TRUE
typedef enum { FALSE = 0,
TRUE } boolean;
#endif
/*** interpret comment lines that follow the '%' with this string ***/
extern const char * InterpretCommentString;
void diagnostics(int level, char *format,...);
extern char *g_aux_name;
extern char *g_toc_name;
extern char *g_lof_name;
extern char *g_lot_name;
extern char *g_bbl_name;
extern char *g_home_dir;
extern char *progname; /* name of the executable file */
extern int GermanMode;
extern int FrenchMode;
extern int RussianMode;
extern int CzechMode;
extern int pagenumbering;
extern int headings;
extern int g_verbosity_level;
extern int RecursionLevel;
/* table & tabbing variables */
extern long pos_begin_kill;
extern int g_tab_counter;
extern int g_equation_column;
extern int twocolumn;
extern int titlepage;
extern int g_processing_equation;
extern int g_processing_preamble;
extern int g_processing_figure;
extern int g_processing_table;
extern int g_processing_tabbing;
extern int g_processing_tabular;
extern int g_processing_eqnarray;
extern int g_processing_arrays;
extern uint16_t g_dots_per_inch;
extern int g_document_type;
extern int g_document_bibstyle;
extern int g_equation_number;
extern int g_escape_parens;
extern int g_show_equation_number;
extern int g_enumerate_depth;
extern int g_suppress_equation_number;
extern int g_aux_file_missing;
extern int g_bbl_file_missing;
extern int g_graphics_package;
extern int g_amsmath_package;
extern char *g_figure_label;
extern char *g_table_label;
extern char *g_equation_label;
extern char *g_section_label;
extern char *g_config_path;
extern char *g_script_dir;
extern char g_field_separator;
extern char *g_preamble;
extern double g_png_equation_scale;
extern double g_png_figure_scale;
extern int g_latex_figures;
extern int g_endfloat_figures;
extern int g_endfloat_tables;
extern int g_endfloat_markers;
extern int g_equation_inline_rtf;
extern int g_equation_display_rtf;
extern int g_equation_inline_bitmap;
extern int g_equation_display_bitmap;
extern int g_equation_comment;
extern int g_equation_raw_latex;
extern int g_equation_inline_eps;
extern int g_equation_display_eps;
extern int g_equation_mtef;
extern int g_figure_include_direct;
extern int g_figure_include_converted;
extern int g_figure_comment_direct;
extern int g_figure_comment_converted;
extern int g_tabular_display_rtf;
extern int g_tabular_display_bitmap;
extern int g_little_endian;
extern int g_tableofcontents;
void fprintRTF(char *format, ...);
void putRtfCharEscaped(char cThis);
void putRtfStrEscaped(const char * string);
char *getTmpPath(void);
char *my_strdup(const char *str);
FILE *my_fopen(char *path, char *mode);
void debug_malloc(void);
#endif
|