You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
5.5 KiB
143 lines
5.5 KiB
#ifndef _FEATURES_HPP_
|
|
#define _FEATURES_HPP_
|
|
// Ruler
|
|
// 1 2 3 4 5 6 7 8
|
|
//345678901234567890123456789012345678901234567890123456789012345678901234567890
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* The standard layout. */
|
|
/* */
|
|
/* The standard layout for 'hpp' files for this code is as */
|
|
/* follows: */
|
|
/* */
|
|
/* 1. Include files. */
|
|
/* 2. Constants exported from the class. */
|
|
/* 3. Data structures exported from the class. */
|
|
/* 4. Forward references to other data structures. */
|
|
/* 5. Class specifications (including inline functions). */
|
|
/* 6. Additional large inline functions. */
|
|
/* */
|
|
/* Any portion that is not required is simply omitted. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
#include "Standard.hpp"
|
|
#include "System.hpp"
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* Active project list. */
|
|
/* */
|
|
/* The active project list contains all of the projects that */
|
|
/* are currently selected. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
#define ROCKALL_II 1
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* Active fetaure lists. */
|
|
/* */
|
|
/* The active features list contain all of the features that */
|
|
/* are currently selected for each project. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
#ifdef PIPELINE_SERVER
|
|
#ifdef DEBUGGING
|
|
#define ENABLE_DEBUG_FILE 1
|
|
#define ENABLE_LOCK_STATISTICS 1
|
|
#define PRINT_ACTIVE_PACKETS 1
|
|
#endif
|
|
#define ENABLE_NON_STANDARD_ASSEMBLY 1
|
|
#endif
|
|
|
|
#ifdef ROCKALL_II
|
|
#ifdef DEBUGGING
|
|
#define ENABLE_DEBUG_FILE 1
|
|
#define ENABLE_HEAP_STATISTICS 1
|
|
#endif
|
|
#define DISABLE_ATOMIC_FLAGS 1
|
|
#define DISABLE_ENVIRONMENT_VARIABLES 1
|
|
#define DISABLE_GLOBAL_NEW 1
|
|
#endif
|
|
|
|
#ifdef WEB_SERVER
|
|
#ifdef DEBUGGING
|
|
#define ENABLE_DEBUG_FILE 1
|
|
#define ENABLE_LOCK_STATISTICS 1
|
|
#define PRINT_ACTIVE_PACKETS 1
|
|
#endif
|
|
#define ENABLE_NON_STANDARD_ASSEMBLY 1
|
|
#endif
|
|
|
|
/********************************************************************/
|
|
/* */
|
|
/* The complete feature list. */
|
|
/* */
|
|
/* The code supports a significant number of optional features */
|
|
/* which are listed in this file. Any feature can be activated */
|
|
/* by copying the approriate setting. Please be sure to keep */
|
|
/* all the flags up to date and leave at list one copy of each */
|
|
/* flag below. */
|
|
/* */
|
|
/********************************************************************/
|
|
|
|
#ifdef ACTIVATE_ALL_OPTIONS
|
|
//
|
|
// Standard options for all code.
|
|
//
|
|
#define ASSEMBLY_X86 1
|
|
#define DEBUGGING 1
|
|
|
|
#define DISABLE_GLOBAL_NEW 1
|
|
#define DISABLE_PRECOMPILED_HEADERS 1
|
|
#define DISABLE_STRUCTURED_EXCEPTIONS 1
|
|
|
|
//
|
|
// Standard options for the library code.
|
|
//
|
|
#define ENABLE_DEBUG_FILE 1
|
|
#define ENABLE_LOCK_STATISTICS 1
|
|
#define ENABLE_NON_STANDARD_ASSEMBLY 1
|
|
#define ENABLE_RECURSIVE_LOCKS 1
|
|
|
|
#define DISABLE_ATOMIC_FLAGS 1
|
|
#define DISABLE_ENVIRONMENT_VARIABLES 1
|
|
#define DISABLE_STRING_LOCKS 1
|
|
|
|
//
|
|
// Rockall specific options.
|
|
//
|
|
#define COMPILING_ROCKALL_DLL 1
|
|
#define COMPILING_ROCKALL_LIBRARY 1
|
|
#define ENABLE_ALLOCATION_STATISTICS 1
|
|
#define ENABLE_HEAP_STATISTICS 1
|
|
#define NO_DEFAULT_HEAP 1
|
|
|
|
//
|
|
// Pipeline Server specific options.
|
|
//
|
|
#define ENABLE_BUFFER_LOCK 1
|
|
#define ENABLE_ZERO_WRITE_BUFFER 1
|
|
|
|
#define PRINT_ACTIVE_PACKETS 1
|
|
|
|
//
|
|
// Pipeline Server demo specific options.
|
|
//
|
|
#define ENABLE_DATABASE 1
|
|
#define ENABLE_READING 1
|
|
#define ENABLE_TRANSACTIONS 1
|
|
#define ENABLE_WRITING 1
|
|
|
|
//
|
|
// Web Server specific options.
|
|
//
|
|
#define DISABLE_ASYNC_IO 1
|
|
#define DISABLE_BUFFER_COPY 1
|
|
#define DISABLE_WEB_LOCKS 1
|
|
#endif
|
|
#endif
|