1
0
Fork 0
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@989 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent 28974db049
commit e4f59e6562

@ -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>

@ -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) /* {{{ */
{

@ -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