db_config.h

coolmud/src/db_config.h · 1.3 KB

From the archive coolmud-2.2.1-r8.zip

Download the archive   « Back to the archive contents

#ifndef INCL_CONFIG_H

/* This file is the configuration file for the db layer. */
/* Ripped wholesale from UnterMUD, by mjr */

/*-------------------Mud Server Configuration Parameters---------------------*/
/* Most of these options you shouldn't need to change. Read them anyway. */

/* default (runtime-resettable) cache parameters */
#define CACHE_DEPTH 23
#define CACHE_WIDTH 7

/* enable this if you want cache warnings if objects are missing */
#define CACHE_VERBOSE

/*
turn this on if you have dbm, but no ndbm - MAY REQUIRE CHANGES to
umud/Makefile and DM/Makefile, if dbm is not in libc (it usually isn't)
*/
/*  #define OLDDBM              */
#ifdef WIN32
#include "ndbm.h"
#else
#include <ndbm.h>
#endif
/* name to use for the default dbm database file */
#define DEFAULT_DBMCHUNKFILE    "dbm_db"
#define STORAGE_IS_DBMCHUNK

/* these macros cause correct linkage with storage layer - don't touch */
#ifdef  STORAGE_IS_DBMCHUNK
#define DB_INIT(flg)    dddb_init(flg)
#define DB_CLOSE()  dddb_close()
#define DB_GET(n)   dddb_get(n)
#define DB_PUT(o,n) dddb_put(o,n)
#define DB_CHECK(s) dddb_check(s)
#define DB_DEL(n,f) dddb_del(n,f)
#endif

/* various debug flags - turn all on for a WILD time */
/*
#define DBMCHUNK_DEBUG
#define CACHE_DEBUG
*/

#define INCL_CONFIG_H
#endif

Site Stats

Snippets: 1791
Codebases: 571