fluffos 3.0(alpha8.0) local_options配置详细选项
2021/4/7 11:35:54

/*
* options.h: defines for the compile-time configuration of the MudOS driver
*/
#ifndef _OPTIONS_H_
#define _OPTIONS_H_
/*
* YOU SHOULD NOT MODIFY THIS FILE DIRECTLY.
*
* Do 'cp options.h local_options' and edit that instead.
*
*/
/****************************************************************************
* EVERY time you change ANYTHING in this file, RECOMPILE from scratch.    *
* (type "make clean" then "make" on a UNIX system) Failure to do so may    *
* cause the driver to behave oddly.                                        *
****************************************************************************/
/* NOTES:
* Many of the configurable options are now set via the configuration file
*  that is specified as the first argument to the driver.
* See port.h for those #defines related to portability (compatibility) if
*  you have problems compiling on your system.
* Removing an efun from func_spec.c usually removes most, if not all,
*  of the code associated with it.
* Note that anything defined in this file is also visible to LPC files
* surrounded by __.  So #define FOO in this file defines __FOO__ for
* all LPC files.  This allows code like:
*
* #ifdef __SENSIBLE_MODIFIERS__
* ...
*/
/****************************************************************************
*                              MALLOC                                      *
*                            --------                                    *
* For performance reasons, LP drivers have a variety of memory allocation  *
* packages.  If you don't care, use the default one on your system:        *
* #define SYSMALLOC, #undef the others.                                    *
****************************************************************************/
/* You must choose exactly one of these malloc packages:
*    ~~~~
* SYSMALLOC:
*  * Built-in system malloc.
*  * No statistics.
*  * SYSMALLOC incurs no additional CPU or memory overhead.
*
* MALLOC64
*  * Wodan's malloc, uses system malloc for small allocations and spreads
*  * large allocations through the 64 bit memory space
*  * won't work on 32 bit systems.
* MALLOC32
*  * fixes realloc by always doing a malloc/memcpy/free instead, try this
*  * if you use more memory than expected (or MALLOC64 on a 64bit system).
*/
#undef SYSMALLOC
#define MALLOC64
#undef MALLOC32
/****************************************************************************
*                          COMPATIBILITY                                  *
*                        ---------------                                  *
* The MudOS driver has evolved quite a bit over the years.  These defines  *
* are mainly to preserve old behavior in case people didn't want to        *
* rewrite the relevant portions of their code.                            *
*                                                                          *
* In most cases, code which needs these defines should be re

下一页
返回列表
返回首页
©2024 MUD游戏网_文字mud 电脑版
Powered by iwms