User:PerfektesChaos/WikidiffLX/coding/WDLX config.h

From mediawiki.org

Extracted from wikidiff2.h (rev 67994 Jun 2010).

Overall configuration issues:

  • Adaption of general settings in methods.
  • Integration, testing and debugging purposes.

Class declaration is kept separately in WikidiffLX.h for implementation details.


#ifndef WDLX_ALLOCATOR

/*
 * Small configuration file for general settings in WikidiffLX
 */

#ifdef DEBUG
#define WDLX_USE_STD_ALLOCATOR testenv
#endif

// Prevent (malicious?) overflow
#define MAX_DIFF_LINE 10000

// Display line numbers in HTML output
//      NO_LINE_NUMBERS
// Virtual line segmentation
#define LINELENGTH_VIRTUAL 250
#define LINELENGTH_MIN 100
// Invisible character
#define SPACE_DIFF "▯"


/** Set WDLX_USE_STD_ALLOCATOR to compile for standalone (non-PHP) operation */
#ifdef WDLX_USE_STD_ALLOCATOR
#define WDLX_ALLOCATOR std::allocator
#else
#define WDLX_ALLOCATOR PhpAllocator
#include "php_cpp_allocator.h"
#endif


#endif