root/1.8.3/branches/gc/options.h.dist

Revision 1129, 4.2 KB (checked in by shawnw, 15 months ago)

gc: sync with p5

Line 
1/* options.h */
2
3#ifndef __OPTIONS_H
4#define __OPTIONS_H
5
6/* *********** READ THIS BEFORE YOU MODIFY ANYTHING IN THIS FILE *********** */
7/* WARNING:  All options in this file have the ability to significantly change
8 * the look and feel and sometimes even internal behavior of the program.
9 * The ones shipped as the default have been extensively tested.  Others have
10 * been tested to a (usually) lesser degree, and therefore might still have
11 * latent bugs.  If you change any of them from the default, PLEASE check
12 * to make sure that you know the full effects of what you are changing. And
13 * if you encounter any errors or compile time problems with any options
14 * other than the default settings, PLEASE inform
15 * pennmush-bugs@pennmush.org
16 * immediately, so that they can be fixed.  The same goes for any other bug
17 * you might find in using this software.  All efforts will be made to fix
18 * errors encountered, but unless given a FULL description of the error,
19 * (IE telling me that logging in doesn't work is insufficient.  telling
20 * me that logging in with WCREAT undefined still gives you the registration
21 * message is a lot better.  MOST effective would be a full dbx trace, or a
22 * patch for the bug.)  Enjoy using the program.
23 */
24/***************************************************************************/
25
26/*---------------- Internals with many options ------------------------*/
27
28/* What type of attribute compression should the MUSH use?
29 * Your options are:
30 * 1 - the default Huffman compression which has been in use for a
31 *     long time. In theory, this should be the best compression,
32 *     possibly at the cost of some speed. It is also 8-bit clean,
33 *     and thus suitable for locales that use extended character sets.
34 *     Sometimes has trouble on some linux systems for some reason.
35 * 2 - Same as 1, for backwards compability.
36 * 3 - Nick Gammon's word-based compression algorithm.
37 *     In theory, this should be considerably faster than Huffman
38 *     when decompressing, and considerably slower when compressing.
39 *     (But you decompress a lot more often). Compression ratio
40 *     is worse than Huffman for small dbs (<1.5Mb of text), but
41 *     better for larger dbs.
42 * 4 - Raevnos's almost 8-bit clean version of the word-based algorithm.
43 *     Prefer 3 unless you need extended characters. This algorithm
44 *     can encode all characters except 0x06.
45 * 0 - No compression at all. Very fast, but your db in memory
46 *     will be big - at least as large as your on-disk db.
47 *     Possibly suitable for the building stages of a small MUSH.
48 *     This should be 8-bit clean, too.
49 * You can change this at any time, with no worries. It only affects
50 * the in-memory compression of attribute/mail text, not the disk
51 * db compression. Recommend to keep it at 1. When in doubt, try them
52 * all, and check @uptime's memory usage stats for the most efficient
53 * choice among those that are stable for you. When using word-based
54 * compression, you can also #define COMP_STATS to get some detailed
55 * information in @stats/tables.
56 */
57#define COMPRESSION_TYPE 1
58
59
60/*------------------------- Other internals ----------------------*/
61
62/* If defined, use the info_slave to get information from identd,
63 * instead of having the MUSH do it directly.  This may help reduce lag
64 * from new logins.  This does _not_ work under Win32.
65 */
66#define INFO_SLAVE /* */
67
68/*------------------------- MUSH Features ----------------------*/
69
70/* Many MUSHes want to change the +channels to =channels. That's
71 * annoying. So we've got this CHAT_TOKEN_ALIAS, which allows + as well
72 * as = (or whatever) channels. If you want this, define it to be
73 * the character you want to use in addition to +, enclosed in
74 * single quotes, as in '=' or '.' or whatever. Don't define it to '+'!
75 */
76/* #define CHAT_TOKEN_ALIAS '=' /* */
77
78
79/*------------------------- Cosmetic Features --------------------*/
80
81/* If you're using the email registration feature, but want to
82 * use a mailer other than sendmail, put the full path to the mailer
83 * program here. The mailer must accept the -t command-line
84 * argument ("get the recipient address from the message header To:").
85 * If it doesn't, you could probably write a wrapper for it.
86 * Example: #define MAILER "/full/path/to/other/mailer"
87 */
88/* #define MAILER "" /* */
89
90#endif
Note: See TracBrowser for help on using the browser.