Changeset 543 for trunk


Ignore:
Timestamp:
2008-03-08T04:55:59+01:00 (7 years ago)
Author:
moo
Message:

renamed DEBUG to XCACHE_DEBUG due to conflict to ext/date

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverager.c

    r524 r543  
     1#if 0
     2#define XCACHE_DEBUG
     3#endif
     4
    15#include <stdio.h>
    26#include "xcache.h"
     
    1822static char *xc_coveragedump_dir = NULL;
    1923static zend_compile_file_t *old_compile_file = NULL;
    20 
    21 #if 0
    22 #define DEBUG
    23 #endif
    2424
    2525/* dumper */
  • trunk/mem.c

    r393 r543  
    22#include <limits.h>
    33#include <stdio.h>
     4#   define XCACHE_DEBUG
    45#else
    56#include <php.h>
    67#endif
     8
     9#ifdef XCACHE_DEBUG
     10#   define ALLOC_DEBUG_BLOCK_CHECK
     11#endif
     12
    713
    814#include <assert.h>
     
    1420#include "align.h"
    1521#include "utils.h"
    16 
    17 #ifdef TEST
    18 #   define DEBUG
    19 #endif
    20 #ifdef DEBUG
    21 #   define ALLOC_DEBUG_BLOCK_CHECK
    22 #endif
    2322
    2423#if 0
  • trunk/optimizer.c

    r485 r543  
    11#if 0
    2 #   define DEBUG
     2#   define XCACHE_DEBUG
    33#endif
    44
     
    99#include "xcache_globals.h"
    1010
    11 #ifdef DEBUG
     11#ifdef XCACHE_DEBUG
    1212#   include "processor.h"
    1313#   include "const_string.h"
     
    181181}
    182182/* }}} */
    183 #ifdef DEBUG
     183#ifdef XCACHE_DEBUG
    184184static void op_snprint(char *buf, int size, znode *op) /* {{{ */
    185185{
     
    278278}
    279279/* }}} */
    280 #ifdef DEBUG
     280#ifdef XCACHE_DEBUG
    281281static void bb_print(bb_t *bb, zend_op *opcodes) /* {{{ */
    282282{
     
    320320}
    321321/* }}} */
    322 #ifdef DEBUG
     322#ifdef XCACHE_DEBUG
    323323static void bbs_print(bbs_t *bbs, zend_op *opcodes) /* {{{ */
    324324{
     
    408408        }
    409409    }
    410 #ifdef DEBUG
     410#ifdef XCACHE_DEBUG
    411411    for (i = 0; i < count; i ++) {
    412412        TRACE("catchbbids[%d] = %d", i, catchbbids[i]);
     
    522522    }
    523523
    524 #ifdef DEBUG
     524#ifdef XCACHE_DEBUG
    525525#   if 0
    526526    TRACE("optimize file: %s", op_array->filename);
     
    534534        if (bbs_build_from(&bbs, op_array, op_array->last) == SUCCESS) {
    535535            int i;
    536 #ifdef DEBUG
     536#ifdef XCACHE_DEBUG
    537537            bbs_print(&bbs, op_array->opcodes);
    538538#endif
     
    547547    }
    548548
    549 #ifdef DEBUG
     549#ifdef XCACHE_DEBUG
    550550#   if 0
    551551    TRACE("%s", "after compiles");
  • trunk/utils.h

    r522 r543  
    22#include "xcache.h"
    33
    4 #ifdef DEBUG
     4#ifdef XCACHE_DEBUG
    55#   define IFDEBUG(x) (x)
    66int xc_vtrace(const char *fmt, va_list args);
     
    2525#   undef inline
    2626#   define inline
    27 #else /* DEBUG */
     27#else /* XCACHE_DEBUG */
    2828
    2929#   ifdef ZEND_WIN32
     
    4141#       define NDEBUG
    4242#   endif
    43 #endif /* DEBUG */
     43#endif /* XCACHE_DEBUG */
    4444#include <assert.h>
    4545
  • trunk/xcache.c

    r542 r543  
    11
    22#if 0
    3 #define DEBUG
     3#define XCACHE_DEBUG
    44#endif
    55
     
    10291029    php->cache  = xce->cache;
    10301030    php->hvalue = (hv & php->cache->hphp->mask);
    1031 #ifdef DEBUG
     1031#ifdef XCACHE_DEBUG
    10321032    {
    10331033        char md5str[33];
Note: See TracChangeset for help on using the changeset viewer.