cvs: pecl /apc apc_main.c apc_sma.c apc_sma.h

From: Date: Fri, 20 Aug 2004 16:41:40 +0000
Subject: cvs: pecl /apc apc_main.c apc_sma.c apc_sma.h
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1693@lists.php.net to get a copy of this message
rasmus Fri Aug 20 12:41:40 2004 EDT Modified files: /pecl/apc apc_main.c apc_sma.c apc_sma.h Log: Having this function's prototype change based on compile-time options is annoying when it comes to reusing the guts of APC from other extensions. http://cvs.php.net/diff.php/pecl/apc/apc_main.c?r1=3.15&r2=3.16&ty=u Index: pecl/apc/apc_main.c diff -u pecl/apc/apc_main.c:3.15 pecl/apc/apc_main.c:3.16 --- pecl/apc/apc_main.c:3.15 Thu Aug 12 13:35:00 2004 +++ pecl/apc/apc_main.c Fri Aug 20 12:41:40 2004 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: apc_main.c,v 3.15 2004/08/12 17:35:00 rasmus Exp $ */ +/* $Id: apc_main.c,v 3.16 2004/08/20 16:41:40 rasmus Exp $ */ #include "apc_php.h" #include "apc_main.h" @@ -235,7 +235,7 @@ #if APC_MMAP apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024, APCG(mmap_file_mask)); #else - apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024); + apc_sma_init(APCG(shm_segments), APCG(shm_size)*1024*1024, NULL); #endif APCG(cache) = apc_cache_create(APCG(num_files_hint), APCG(gc_ttl), APCG(ttl)); APCG(cache_stack) = apc_stack_create(0); http://cvs.php.net/diff.php/pecl/apc/apc_sma.c?r1=1.15&r2=1.16&ty=u Index: pecl/apc/apc_sma.c diff -u pecl/apc/apc_sma.c:1.15 pecl/apc/apc_sma.c:1.16 --- pecl/apc/apc_sma.c:1.15 Tue Apr 6 16:26:24 2004 +++ pecl/apc/apc_sma.c Fri Aug 20 12:41:40 2004 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: apc_sma.c,v 1.15 2004/04/06 20:26:24 rasmus Exp $ */ +/* $Id: apc_sma.c,v 1.16 2004/08/20 16:41:40 rasmus Exp $ */ #include "apc_sma.h" #include "apc.h" @@ -208,11 +208,7 @@ /* {{{ apc_sma_init */ -#if APC_MMAP void apc_sma_init(int numseg, int segsize, char *mmap_file_mask) -#else -void apc_sma_init(int numseg, int segsize) -#endif { int i; http://cvs.php.net/diff.php/pecl/apc/apc_sma.h?r1=1.7&r2=1.8&ty=u Index: pecl/apc/apc_sma.h diff -u pecl/apc/apc_sma.h:1.7 pecl/apc/apc_sma.h:1.8 --- pecl/apc/apc_sma.h:1.7 Sat Jun 28 22:51:39 2003 +++ pecl/apc/apc_sma.h Fri Aug 20 12:41:40 2004 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: apc_sma.h,v 1.7 2003/06/29 02:51:39 gschlossnagle Exp $ */ +/* $Id: apc_sma.h,v 1.8 2004/08/20 16:41:40 rasmus Exp $ */ #ifndef APC_SMA_H #define APC_SMA_H @@ -23,11 +23,7 @@ /* Simple shared memory allocator */ -#if APC_MMAP extern void apc_sma_init(int numseg, int segsize, char *mmap_file_mask); -#else -extern void apc_sma_init(int numseg, int segsize); -#endif extern void apc_sma_cleanup(); extern void* apc_sma_malloc(size_t size); extern void apc_sma_free(void* p);

« previous php.pecl.cvs (#1693) next »