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
|
/*
* File: config.h
* Purpose: Central location for most compile time SeX configurabilities.
* Author: Lars Wirzenius
* Version: "@(#)SeX:$Id: config.h,v 1.6 1996/11/24 12:52:41 liw Exp $"
* Description: This file defines various variables and macros that configure
* SeX in various ways.
*
* Note that all variables are static. This increases the
* memory consumption a little, but very little. The important
* thing is to avoid macros.
*/
#ifndef config_h
#define config_h
/*
* Macro: HELP_FILE
* Purpose: Give the name of the help file.
*/
#ifndef HELP_FILE
#define HELP_FILE "/usr/lib/SeX/sex.help.txt"
#endif
/*
* Stuff for the configuration file (~/.sexrc).
*/
enum config {
CONFIG_SAVE_BACKUP,
CONFIG_FMT_PROGRAM,
CONFIG_FONT,
CONFIG_MAX_KILLRING,
CONFIG_INDENT_WIDTH,
CONFIG_MAX
};
int config_read(void);
int config_save(void);
int config_get_boolean(enum config);
void config_set_boolean(enum config, int);
long config_get_long(enum config);
void config_set_long(enum config, long);
char *config_get_string(enum config);
int config_set_string(enum config, char *);
#endif
|