File: cfg.h

package info (click to toggle)
latex2rtf 1.9.19-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,972 kB
  • ctags: 2,370
  • sloc: ansic: 18,882; makefile: 607; sh: 371; perl: 22
file content (42 lines) | stat: -rw-r--r-- 899 bytes parent folder | download | duplicates (3)
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
#if defined(VMS) && defined(NEED_SNPRINTF)
#include <X11VMS/vmsutil.h>
#endif

#define DIRECT_A	0
#define FONT_A		1
#define IGNORE_A	2
#define STYLE_A     3
#define LANGUAGE_A  4

#ifndef CFGDIR
#ifdef VMS
#define CFGDIR "L2RCFGDIR:"
#else
#define CFGDIR ""
#endif
#endif

#ifndef TRUE
#define TRUE  1
#define FALSE 0
#endif

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

typedef struct ConfigEntryT
{
   const char  *TexCommand;
   const char  *RtfCommand;
} ConfigEntryT;

void ReadLanguage(char *lang);
void ConvertBabelName(char *name);
char *GetBabelName(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);

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