File: rc.h

package info (click to toggle)
jupp 3.1.38-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,420 kB
  • sloc: ansic: 31,382; sh: 4,199; makefile: 431
file content (38 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (2)
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
/*
 *	*rc file parser
 *	Copyright
 *		(C) 1992 Joseph H. Allen;
 *
 *	This file is part of JOE (Joe's Own Editor)
 */
#ifndef _JOE_RC_H
#define _JOE_RC_H 1

#ifdef EXTERN
__IDSTRING(rcsid_rc_h, "$MirOS: contrib/code/jupp/rc.h,v 1.12 2018/01/08 00:48:07 tg Exp $");
#endif

extern OPTIONS pdefault;
extern OPTIONS fdefault;
void setopt(B *b, const unsigned char *name);

/* KMAP *kmap_getcontext(char *name);
 * Find and return the KMAP for a given context name.  If none is found, an
 * empty kmap is created, bound to the context name, and returned.
 */
KMAP *kmap_getcontext(const unsigned char *name, int docreate);

/* int procrc(CAP *cap, char *name);  Process an rc file
   Returns 0 for success
	  -1 for file not found
	   1 for syntax error (errors written to stderr)
*/
int procrc(CAP *cap, const unsigned char *name);

int glopt(unsigned char *s, unsigned char *arg, OPTIONS *options, int set);

int umode(BW *bw);

void lazy_opts(OPTIONS *o);

#endif