Menu

[26e832]: / joe / options.h  Maximize  Restore  History

Download this file

58 lines (45 with data), 1.6 kB

 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
/*
* JOE options
* Copyright
* (C) 1992 Joseph H. Allen;
*
* This file is part of JOE (Joe's Own Editor)
*/
extern OPTIONS pdefault;
extern OPTIONS fdefault;
extern const char *aborthint;
extern const char *helphint;
/* Set local options depending on file name and contents */
void setopt(B *b, const char *name);
/* Set a global or local option:
* 's' is option name
* 'arg' is a possible argument string (taken only if option has an arg)
* 'options' points to options structure to modify (can be NULL).
* 'set'==0: set only in 'options' if it's given.
* 'set'!=0: set global variable option.
* return value: no. of fields taken (1 or 2), or 0 if option not found.
*
* So this function is used both to set options, and to parse over options
* without setting them.
*
* These combinations are used:
*
* glopt(name,arg,NULL,1): set global variable option
* glopt(name,arg,NULL,0): parse over option
* glopt(name,arg,options,0): set file local option
* glopt(name,arg,&fdefault,1): set default file options
* glopt(name,arg,options,1): set file local option
*/
int glopt(char *s, char *arg, OPTIONS *options, int set);
/* Option setting user command */
int umode(W *w, int k);
/* Update options */
void lazy_opts(B *b, OPTIONS *o);
/* Commands which just convert an option into text and type it in */
int ucharset(W *w, int k);
int ulanguage(W *w, int k);
/* Get current value of an option (ON / OFF) */
const char *get_status(BW *bw, char *s);
extern OPTIONS *options_list;
void cmd_help(int type);
char **find_configs(char **, const char *, const char *, const char *);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.