File: cfg.h

package info (click to toggle)
latex2rtf 2.3.10-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 2,092 kB
  • ctags: 1,769
  • sloc: ansic: 20,289; sh: 478; makefile: 350
file content (47 lines) | stat: -rwxr-xr-x 1,112 bytes parent folder | download | duplicates (5)
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
#ifndef _CFG_H_INCLUDED
#define _CFG_H_INCLUDED 1

#include <stdio.h> /* for FILE* */

#if defined(VMS) && defined(NEED_SNPRINTF)
#include <X11VMS/vmsutil.h>
#endif
 
enum { DIRECT_A = 0,
       FONT_A,
       IGNORE_A,
       STYLE_A,
       LANGUAGE_A };

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

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

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

void ReadLanguage(char *lang);
void ConvertBabelName(char *name);
char *GetBabelName(char *name);

void            ReadCfg (void);
ConfigEntryT  **SearchCfgEntry(const char *theTexCommand, int WhichCfg);
char           *SearchCfgRtf(const char *theCommand, int WhichArray);
ConfigEntryT  **SearchCfgEntryByID(const int id, int WhichCfg);
ConfigEntryT  **CfgStartIterate (void);
ConfigEntryT  **CfgNext (int WhichCfg, ConfigEntryT **last);
ConfigEntryT  **CfgNextByInsertion(int WhichCfg, ConfigEntryT ** last);

FILE *          open_cfg(const char *name, int quit_on_error);
#endif