Browse Source

refactor: fix c89 compatibility

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1044 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 8 years ago
parent
commit
12e8dc053e
13 changed files with 12 additions and 13 deletions
  1. +1
    -1
      devel/run
  2. +1
    -1
      mod_cacher/xc_cacher.h
  3. +1
    -1
      mod_coverager/xc_coverager.h
  4. +1
    -1
      mod_disassembler/xc_disassembler.h
  5. +1
    -1
      mod_optimizer/xc_optimizer.h
  6. +1
    -1
      util/xc_trace.h
  7. +1
    -1
      util/xc_vector.h
  8. +1
    -1
      xcache/xc_compatibility.h
  9. +1
    -1
      xcache/xc_extension.h
  10. +1
    -1
      xcache/xc_ini.h
  11. +1
    -1
      xcache/xc_lock.h
  12. +0
    -1
      xcache/xc_mem.c
  13. +1
    -1
      xcache/xc_sandbox.h

+ 1
- 1
devel/run View File

@ -128,7 +128,7 @@ phpize)
export PATH=$PHPDIRS/$phpbasename/bin:$PATH
phpize --clean \
&& phpize \
&& CFLAGS="-g -O0 -Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=gnu99" ./configure \
&& CFLAGS="-g -O0 -Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=c89 -D_GNU_SOURCE -D_POSIX_SOURCE -Dinline=" ./configure \
--enable-xcache-cacher \
--enable-xcache-optimizer \
--enable-xcache-encoder \


+ 1
- 1
mod_cacher/xc_cacher.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
int xc_cacher_startup_module();
int xc_cacher_disable();


+ 1
- 1
mod_coverager/xc_coverager.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"


+ 1
- 1
mod_disassembler/xc_disassembler.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
int xc_disassembler_startup_module();


+ 1
- 1
mod_optimizer/xc_optimizer.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"


+ 1
- 1
util/xc_trace.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#ifdef ZEND_WIN32
# ifndef inline


+ 1
- 1
util/xc_vector.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
typedef struct {
zend_uint size;


+ 1
- 1
xcache/xc_compatibility.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"


+ 1
- 1
xcache/xc_extension.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "zend_extensions.h"
int xcache_zend_extension_register(zend_extension *new_extension, zend_bool prepend);


+ 1
- 1
xcache/xc_ini.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"
#include "php_ini.h"


+ 1
- 1
xcache/xc_lock.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
typedef struct _xc_lock_t xc_lock_t;


+ 0
- 1
xcache/xc_mem.c View File

@ -20,7 +20,6 @@ typedef int zend_bool;
#define XC_MEMBLOCK_IMPL _xc_mem_block_t
#define XC_MEM_IMPL _xc_mem_mem_t
#include "xc_shm.h"
// #include "xc_utils.h"
#include "util/xc_align.h"
#include "util/xc_trace.h"


+ 1
- 1
xcache/xc_sandbox.h View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
/* Purpose: run specified function in compiler sandbox, restore everything to previous state after it returns
*/


Loading…
Cancel
Save