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
|