Browse Source

c comments fix

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@302 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.2
Xuefer 15 years ago
parent
commit
0ba961fb14
  1. 2
      mem.c
  2. 2
      mmap.c
  3. 8
      optimizer.c
  4. 5
      processor/main.m4
  5. 2
      processor/string.m4
  6. 2
      xc_malloc.c

2
mem.c

@ -28,7 +28,7 @@
#define PADD(p, a) (CHAR_PTR(p) + a)
#define PSUB(p1, p2) (CHAR_PTR(p1) - CHAR_PTR(p2))
// {{{ mem
/* {{{ mem */
struct _xc_block_t {
#ifdef ALLOC_DEBUG_BLOCK_CHECK
unsigned int magic;

2
mmap.c

@ -38,7 +38,7 @@
#define max(a, b) ((a) < (b) ? (b) : (a))
#endif
// {{{ xc_shm_t
/* {{{ xc_shm_t */
struct _xc_shm_t {
xc_shm_handlers_t *handlers;
void *ptr;

8
optimizer.c

@ -6,9 +6,11 @@ static int xc_optimize_op_array(zend_op_array *op_array TSRMLS_DC) /* {{{ */
if (op_array->type != ZEND_USER_FUNCTION) {
return 0;
}
//xc_undo_pass_two(op_array TSRMLS_CC);
//xc_redo_pass_two(op_array TSRMLS_CC);
//xc_dprint_zend_op_array(op_array, 0);
#if 0
xc_undo_pass_two(op_array TSRMLS_CC);
xc_redo_pass_two(op_array TSRMLS_CC);
xc_dprint_zend_op_array(op_array, 0);
#endif
return 0;
}
/* }}} */

5
processor/main.m4

@ -50,7 +50,9 @@ define(`ALLOC', `
}
}
}')
void *oldp = processor->p;
ifdef(`DEBUG_SIZE', ` {
void *oldp = processor->p;
')
$1 = (FORCETYPE *) (processor->p = (char *) ALIGN(processor->p));
ifelse(`$4', `', `
IFASSERT(`memset($1, -1, SIZE);')
@ -62,6 +64,7 @@ define(`ALLOC', `
ifdef(`DEBUG_SIZE', `
xc_totalsize += (char *) processor->p - (char *) oldp;
fprintf(stderr, "%d\t%d\t`'SIZE()\n", (char *) processor->p - (char *) oldp, xc_totalsize);
}
')
')
IFRESTORE(`ifelse(`$4', `', `

2
processor/string.m4

@ -108,6 +108,6 @@ define(`PROC_ZSTRING_N', `
#endif
popdef(`NSIZE')
')
// }}}
dnl }}}
define(`PROC_ZSTRING_L', `DBG(`$0($*)') PROC_ZSTRING_N(`$1', `$2', `$3', `len')')
define(`PROC_ZSTRING', `DBG(`$0($*)') PROC_ZSTRING_N(`$1', `$2', , `strlen')')

2
xc_malloc.c

@ -105,7 +105,7 @@ static XC_MEM_DESTROY(xc_mem_malloc_destroy) /* {{{ */
}
/* }}} */
// {{{ xc_shm_t
/* {{{ xc_shm_t */
struct _xc_shm_t {
xc_shm_handlers_t *handlers;
xc_shmsize_t size;

Loading…
Cancel
Save