19 typedef struct rcvar_s
27 #define RCV_END { 0, rcv_end, 0, 0 }
28 #define RCV_INT(n,v) { (n), rcv_int, 1, (v) }
29 #define RCV_STRING(n,v) { (n), rcv_string, 0, (v) }
30 #define RCV_VECTOR(n,v,l) { (n), rcv_vector, (l), (v) }
31 #define RCV_BOOL(n,v) { (n), rcv_bool, 1, (v) }
33 typedef struct rccmd_s
36 int (*func
)(int, char **);
39 #define RCC(n,f) { (n), (f) }
40 #define RCC_END { 0, 0 }
42 void rc_export(rcvar_t
*v
);
43 void rc_exportvars(rcvar_t
*vars
);
45 int rc_findvar(char *name
);
47 int rc_setvar_n(int i
, int c
, char **v
);
48 int rc_setvar(char *name
, int c
, char **v
);
50 int rc_getint_n(int i
);
51 int *rc_getvec_n(int i
);
52 char *rc_getstr_n(int i
);
54 int rc_getint(char *name
);
55 int *rc_getvec(char *name
);
56 char *rc_getstr(char *name
);
58 int rc_command(char *line
);
59 int rc_sourcefile(char *filename
);