Browse Source

clean up

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@989 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
e4f59e6562
  1. 2
      xcache/xc_mem.c
  2. 6
      xcache/xc_sandbox.c
  3. 6
      xcache/xc_sandbox.h

2
xcache/xc_mem.c

@ -320,7 +320,7 @@ static XC_MEM_DESTROY(xc_mem_destroy) /* {{{ */
/* }}} */
#ifdef TEST
/* {{{ */
/* {{{ testing */
#undef CHECK
#define CHECK(a, msg) do { if ((a) == NULL) { puts(msg); return -1; } } while (0)
#include <time.h>

6
xcache/xc_sandbox.c

@ -401,21 +401,21 @@ zend_op_array *xc_sandbox(xc_sandboxed_func_t sandboxed_func, void *data, ZEND_2
}
return op_array;
}
/* {{{ */
/* }}} */
const Bucket *xc_sandbox_user_function_begin(TSRMLS_D) /* {{{ */
{
xc_sandbox_t *sandbox = (xc_sandbox_t *) XG(sandbox);
assert(sandbox);
return TG(internal_function_tail) ? TG(internal_function_tail)->pListNext : TG(function_table).pListHead;
}
/* {{{ */
/* }}} */
const Bucket *xc_sandbox_user_class_begin(TSRMLS_D) /* {{{ */
{
xc_sandbox_t *sandbox = (xc_sandbox_t *) XG(sandbox);
assert(sandbox);
return TG(internal_class_tail) ? TG(internal_class_tail)->pListNext : TG(class_table).pListHead;
}
/* {{{ */
/* }}} */
#ifdef XCACHE_ERROR_CACHING
xc_compilererror_t *xc_sandbox_compilererrors(TSRMLS_D) /* {{{ */
{

6
xcache/xc_sandbox.h

@ -1,5 +1,5 @@
#ifndef _22077CFAC35518969B4416944ACBA159
#define _22077CFAC35518969B4416944ACBA159
#ifndef XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
#define XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C
#if _MSC_VER > 1000
#pragma once
@ -16,4 +16,4 @@ xc_compilererror_t *xc_sandbox_compilererrors(TSRMLS_D);
zend_uint xc_sandbox_compilererror_cnt(TSRMLS_D);
#endif
#endif /* _22077CFAC35518969B4416944ACBA159 */
#endif /* XC_SANDBOX_H_3AFE4094B1D005188B909F9B6538599C */

Loading…
Cancel
Save