|
|
1.1 root 1: /* scfg.h */
2:
1.1.1.2 ! root 3: /* $Id: scfg.h,v 1.19 2011/06/30 03:07:04 rswindell Exp $ */
1.1 root 4:
5: /****************************************************************************
6: * @format.tab-size 4 (Plain Text/Source Code File Header) *
7: * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
8: * *
1.1.1.2 ! root 9: * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
1.1 root 10: * *
11: * This program is free software; you can redistribute it and/or *
12: * modify it under the terms of the GNU General Public License *
13: * as published by the Free Software Foundation; either version 2 *
14: * of the License, or (at your option) any later version. *
15: * See the GNU General Public License for more details: gpl.txt or *
16: * http://www.fsf.org/copyleft/gpl.html *
17: * *
18: * Anonymous FTP access to the most recent released source is available at *
19: * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net *
20: * *
21: * Anonymous CVS access to the development source and modification history *
22: * is available at cvs.synchro.net:/cvsroot/sbbs, example: *
23: * cvs -d :pserver:[email protected]:/cvsroot/sbbs login *
24: * (just hit return, no password is necessary) *
25: * cvs -d :pserver:[email protected]:/cvsroot/sbbs checkout src *
26: * *
27: * For Synchronet coding style and modification guidelines, see *
28: * http://www.synchro.net/source.html *
29: * *
30: * You are encouraged to submit any modifications (preferably in Unix diff *
31: * format) via e-mail to [email protected] *
32: * *
33: * Note: If this box doesn't appear square, then you need to fix your tabs. *
34: ****************************************************************************/
35:
36: #include <stdio.h>
37: #include <stdlib.h>
38: #include <limits.h> /* USHRT_MAX */
39:
40: #include "gen_defs.h"
41: #include "uifc.h"
42: #include "sbbs.h"
43:
44: /**********/
45: /* Macros */
46: /**********/
47:
48: #define SETHELP(where) uifc.sethelp(where)
49:
50: /*************/
51: /* Constants */
52: /*************/
53:
54: #define SUB_HDRMOD (1L<<31) /* Modified sub-board header info */
55:
56: /************/
57: /* Typedefs */
58: /************/
59:
60: /********************/
61: /* Global Variables */
62: /********************/
63: extern scfg_t cfg;
64: extern uifcapi_t uifc;
65: extern char item;
66: extern char **opt;
67: extern char tmp[256];
68: extern char error[256];
69: extern char *nulstr;
70: extern char *invalid_code,*num_flags;
71: extern int backup_level;
72: extern BOOL new_install;
73:
74: /***********************/
75: /* Function Prototypes */
76: /***********************/
77:
78: void bail(int code);
79: void errormsg(int line, char *source, char* action, char *object, ulong access);
80: void clearptrs(int subnum);
81: int save_changes(int mode);
82: void node_menu(void);
83: void node_cfg(void);
84: void results(int i);
85: void sys_cfg(void);
86: void net_cfg(void);
87: void msgs_cfg(void);
88: void msg_opts(void);
89: void sub_cfg(uint grpnum);
90: void xfer_cfg(void);
91: void xfer_opts(void);
92: void libs_cfg(void);
93: void dir_cfg(uint libnum);
94: void xprogs_cfg(void);
95: void fevents_cfg(void);
96: void tevents_cfg(void);
97: void xtrn_cfg(uint section);
98: void swap_cfg(void);
99: void xtrnsec_cfg(void);
100: int natvpgm_cfg(void);
101: void page_cfg(void);
102: void xedit_cfg(void);
103: void txt_cfg(void);
104: void shell_cfg(void);
105: void init_mdms(void);
106: void guru_cfg(void);
107: void actsets_cfg(void);
108: void chan_cfg(void);
109: void mdm_cfg(int mdmnum);
110: int export_mdm(char *fname);
111: int code_ok(char *str);
112: int bits(long l);
113: void getar(char *desc, char *ar);
114:
1.1.1.2 ! root 115: /* Prepare a string to be used as an internal code; Note: use the return value, Luke */
! 116: char* prep_code(char *str, const char* prefix);
1.1 root 117:
118: /* scfgnet.h */
119: faddr_t atofaddr(char *str);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.