diff options
author | Edin Kadribasic <edink@php.net> | 2002-11-19 01:06:42 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2002-11-19 01:06:42 +0000 |
commit | ff55850562f70b609901864e79856151ff35d57c (patch) | |
tree | e175a954e57873e4ad0081e3fff31fcb0a088e28 | |
parent | b75f2df3d433d9d4fb795a1ce131d54aebeef3f6 (diff) | |
download | php-git-ff55850562f70b609901864e79856151ff35d57c.tar.gz |
No need to declare functions used internally by DBA as PHPAPI. This
fixes windows build.
-rw-r--r-- | ext/dba/dba.dsp | 8 | ||||
-rw-r--r-- | ext/dba/libcdb/cdb.c | 14 | ||||
-rw-r--r-- | ext/dba/libcdb/cdb.h | 14 | ||||
-rw-r--r-- | ext/dba/libcdb/cdb_make.c | 10 | ||||
-rw-r--r-- | ext/dba/libcdb/cdb_make.h | 10 | ||||
-rw-r--r-- | ext/dba/libcdb/uint32.c | 4 | ||||
-rw-r--r-- | ext/dba/libcdb/uint32.h | 4 | ||||
-rw-r--r-- | ext/dba/libflatfile/flatfile.c | 12 | ||||
-rw-r--r-- | ext/dba/libflatfile/flatfile.h | 12 |
9 files changed, 44 insertions, 44 deletions
diff --git a/ext/dba/dba.dsp b/ext/dba/dba.dsp index 7d8e9f7ed2..063d4e3ba2 100644 --- a/ext/dba/dba.dsp +++ b/ext/dba/dba.dsp @@ -43,8 +43,8 @@ RSC=rc.exe # PROP Intermediate_Dir "Release_TS"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=0 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "PHP_EXPORTS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_DB3=1 /D DB3_INCLUDE_FILE="db.h" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=0 /D DBA_DB3=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "PHP_EXPORTS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_MAKE=1 /D DBA_CDB_BUILTIN=1 /YX /FD /c
+# ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=0 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_DB3=1 /D DB3_INCLUDE_FILE="db.h" /YX /FD /c
+# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=0 /D DBA_DB3=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_MAKE=1 /D DBA_CDB_BUILTIN=1 /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x407 /d "NDEBUG"
@@ -70,8 +70,8 @@ LINK32=link.exe # PROP Intermediate_Dir "Debug_TS"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "PHP_EXPORTS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D "DBA_DB3" /D DB3_INCLUDE_FILE="db.h" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=1 /D "DBA_DB3" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "PHP_EXPORTS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_MAKE=1 /D DBA_CDB_BUILTIN=1 /YX /FD /GZ /c
+# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D "DBA_DB3" /D DB3_INCLUDE_FILE="db.h" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\.." /I "..\..\Zend" /I "..\..\TSRM" /I "..\..\main" /D ZEND_DEBUG=1 /D "DBA_DB3" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "COMPILE_DL_DBA" /D ZTS=1 /D "ZEND_WIN32" /D "PHP_WIN32" /D HAVE_DBA=1 /D DBA_FLATFILE=1 /D DBA_CDB=1 /D DBA_CDB_MAKE=1 /D DBA_CDB_BUILTIN=1 /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x407 /d "_DEBUG"
diff --git a/ext/dba/libcdb/cdb.c b/ext/dba/libcdb/cdb.c index 7857fa20b0..fbc27eaceb 100644 --- a/ext/dba/libcdb/cdb.c +++ b/ext/dba/libcdb/cdb.c @@ -73,7 +73,7 @@ static uint32 cdb_hashadd(uint32 h, unsigned char c) /* }}} */ /* {{{ cdb_hash */ -PHPAPI uint32 cdb_hash(char *buf, unsigned int len) +uint32 cdb_hash(char *buf, unsigned int len) { uint32 h; @@ -87,20 +87,20 @@ PHPAPI uint32 cdb_hash(char *buf, unsigned int len) /* }}} */ /* {{{ cdb_free */ -PHPAPI void cdb_free(struct cdb *c TSRMLS_DC) +void cdb_free(struct cdb *c TSRMLS_DC) { } /* }}} */ /* {{{ cdb_findstart */ -PHPAPI void cdb_findstart(struct cdb *c TSRMLS_DC) +void cdb_findstart(struct cdb *c TSRMLS_DC) { c->loop = 0; } /* }}} */ /* {{{ cdb_init */ -PHPAPI void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) +void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) { cdb_free(c TSRMLS_CC); cdb_findstart(c TSRMLS_CC); @@ -109,7 +109,7 @@ PHPAPI void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) /* }}} */ /* {{{ cdb_read */ -PHPAPI int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos TSRMLS_DC) +int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos TSRMLS_DC) { if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { errno = EPROTO; @@ -134,7 +134,7 @@ PHPAPI int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos TSRML /* }}} */ /* {{{ cdb_findnext */ -PHPAPI int cdb_findnext(struct cdb *c, char *key, unsigned int len TSRMLS_DC) +int cdb_findnext(struct cdb *c, char *key, unsigned int len TSRMLS_DC) { char buf[8]; uint32 pos; @@ -187,7 +187,7 @@ PHPAPI int cdb_findnext(struct cdb *c, char *key, unsigned int len TSRMLS_DC) /* }}} */ /* {{{ cdb_find */ -PHPAPI int cdb_find(struct cdb *c, char *key, unsigned int len TSRMLS_DC) +int cdb_find(struct cdb *c, char *key, unsigned int len TSRMLS_DC) { cdb_findstart(c TSRMLS_CC); return cdb_findnext(c, key, len TSRMLS_CC); diff --git a/ext/dba/libcdb/cdb.h b/ext/dba/libcdb/cdb.h index 74dc6947d1..a74ef2325b 100644 --- a/ext/dba/libcdb/cdb.h +++ b/ext/dba/libcdb/cdb.h @@ -38,16 +38,16 @@ struct cdb { uint32 dlen; /* initialized if cdb_findnext() returns 1 */ }; -PHPAPI uint32 cdb_hash(char *, unsigned int); +uint32 cdb_hash(char *, unsigned int); -PHPAPI void cdb_free(struct cdb * TSRMLS_DC); -PHPAPI void cdb_init(struct cdb *, php_stream *fp TSRMLS_DC); +void cdb_free(struct cdb * TSRMLS_DC); +void cdb_init(struct cdb *, php_stream *fp TSRMLS_DC); -PHPAPI int cdb_read(struct cdb *, char *, unsigned int, uint32 TSRMLS_DC); +int cdb_read(struct cdb *, char *, unsigned int, uint32 TSRMLS_DC); -PHPAPI void cdb_findstart(struct cdb * TSRMLS_DC); -PHPAPI int cdb_findnext(struct cdb *, char *, unsigned int TSRMLS_DC); -PHPAPI int cdb_find(struct cdb *, char *, unsigned int TSRMLS_DC); +void cdb_findstart(struct cdb * TSRMLS_DC); +int cdb_findnext(struct cdb *, char *, unsigned int TSRMLS_DC); +int cdb_find(struct cdb *, char *, unsigned int TSRMLS_DC); #define cdb_datapos(c) ((c)->dpos) #define cdb_datalen(c) ((c)->dlen) diff --git a/ext/dba/libcdb/cdb_make.c b/ext/dba/libcdb/cdb_make.c index 375747f108..4023a154a6 100644 --- a/ext/dba/libcdb/cdb_make.c +++ b/ext/dba/libcdb/cdb_make.c @@ -56,7 +56,7 @@ static int cdb_posplus(struct cdb_make *c, uint32 len) /* }}} */ /* {{{ cdb_make_start */ -PHPAPI int cdb_make_start(struct cdb_make *c, php_stream * f TSRMLS_DC) +int cdb_make_start(struct cdb_make *c, php_stream * f TSRMLS_DC) { c->head = 0; c->split = 0; @@ -73,7 +73,7 @@ PHPAPI int cdb_make_start(struct cdb_make *c, php_stream * f TSRMLS_DC) /* }}} */ /* {{{ cdb_make_addend */ -PHPAPI int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h TSRMLS_DC) +int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h TSRMLS_DC) { struct cdb_hplist *head; @@ -102,7 +102,7 @@ PHPAPI int cdb_make_addend(struct cdb_make *c, unsigned int keylen, unsigned int /* }}} */ /* {{{ cdb_make_addbegin */ -PHPAPI int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen TSRMLS_DC) +int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned int datalen TSRMLS_DC) { char buf[8]; @@ -123,7 +123,7 @@ PHPAPI int cdb_make_addbegin(struct cdb_make *c, unsigned int keylen, unsigned i } /* {{{ cdb_make_add */ -PHPAPI int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen TSRMLS_DC) +int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *data,unsigned int datalen TSRMLS_DC) { if (cdb_make_addbegin(c, keylen, datalen TSRMLS_CC) == -1) return -1; @@ -136,7 +136,7 @@ PHPAPI int cdb_make_add(struct cdb_make *c,char *key,unsigned int keylen,char *d /* }}} */ /* {{{ cdb_make_finish */ -PHPAPI int cdb_make_finish(struct cdb_make *c TSRMLS_DC) +int cdb_make_finish(struct cdb_make *c TSRMLS_DC) { char buf[8]; int i; diff --git a/ext/dba/libcdb/cdb_make.h b/ext/dba/libcdb/cdb_make.h index 33e1ac6539..e5fb65fe49 100644 --- a/ext/dba/libcdb/cdb_make.h +++ b/ext/dba/libcdb/cdb_make.h @@ -54,10 +54,10 @@ struct cdb_make { php_stream * fp; }; -PHPAPI int cdb_make_start(struct cdb_make *, php_stream * TSRMLS_DC); -PHPAPI int cdb_make_addbegin(struct cdb_make *, unsigned int, unsigned int TSRMLS_DC); -PHPAPI int cdb_make_addend(struct cdb_make *, unsigned int, unsigned int, uint32 TSRMLS_DC); -PHPAPI int cdb_make_add(struct cdb_make *, char *, unsigned int, char *, unsigned int TSRMLS_DC); -PHPAPI int cdb_make_finish(struct cdb_make * TSRMLS_DC); +int cdb_make_start(struct cdb_make *, php_stream * TSRMLS_DC); +int cdb_make_addbegin(struct cdb_make *, unsigned int, unsigned int TSRMLS_DC); +int cdb_make_addend(struct cdb_make *, unsigned int, unsigned int, uint32 TSRMLS_DC); +int cdb_make_add(struct cdb_make *, char *, unsigned int, char *, unsigned int TSRMLS_DC); +int cdb_make_finish(struct cdb_make * TSRMLS_DC); #endif diff --git a/ext/dba/libcdb/uint32.c b/ext/dba/libcdb/uint32.c index 261a002592..223ad170ac 100644 --- a/ext/dba/libcdb/uint32.c +++ b/ext/dba/libcdb/uint32.c @@ -29,7 +29,7 @@ #include "uint32.h" /* {{{ uint32_pack */ -PHPAPI void uint32_pack(char *out, uint32 in) +void uint32_pack(char *out, uint32 in) { out[0] = in&0xff; in>>=8; out[1] = in&0xff; in>>=8; @@ -39,7 +39,7 @@ PHPAPI void uint32_pack(char *out, uint32 in) /* }}} */ /* {{{ uint32_unpack */ -PHPAPI void uint32_unpack(const char *in, uint32 *out) +void uint32_unpack(const char *in, uint32 *out) { *out = (((uint32)(unsigned char)in[3])<<24) | (((uint32)(unsigned char)in[2])<<16) | diff --git a/ext/dba/libcdb/uint32.h b/ext/dba/libcdb/uint32.h index e7ba9a5bec..8eeaf8db48 100644 --- a/ext/dba/libcdb/uint32.h +++ b/ext/dba/libcdb/uint32.h @@ -33,7 +33,7 @@ typedef unsigned long uint32; #error Need type which holds 32 bits #endif -PHPAPI void uint32_pack(char *out, uint32 in); -PHPAPI void uint32_unpack(const char *in, uint32 *out); +void uint32_pack(char *out, uint32 in); +void uint32_unpack(const char *in, uint32 *out); #endif diff --git a/ext/dba/libflatfile/flatfile.c b/ext/dba/libflatfile/flatfile.c index f4c8a2f621..4cb820875e 100644 --- a/ext/dba/libflatfile/flatfile.c +++ b/ext/dba/libflatfile/flatfile.c @@ -46,7 +46,7 @@ /* {{{ flatfile_store */ -PHPAPI int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC) { +int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC) { if (mode == FLATFILE_INSERT) { if (flatfile_findkey(dba, key_datum TSRMLS_CC)) { return 1; @@ -78,7 +78,7 @@ PHPAPI int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int /* {{{ flatfile_fetch */ -PHPAPI datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) { +datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) { datum value_datum = {NULL, 0}; size_t num=0; size_t buf_size = 1024; @@ -107,7 +107,7 @@ PHPAPI datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC) { /* {{{ flatfile_delete */ -PHPAPI int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) { +int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) { char *key = key_datum.dptr; size_t size = key_datum.dsize; @@ -167,7 +167,7 @@ PHPAPI int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC) { /* {{{ flatfile_findkey */ -PHPAPI int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) { +int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) { char *buf = NULL; size_t num; size_t buf_size = 1024; @@ -214,7 +214,7 @@ PHPAPI int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC) { /* {{{ flatfile_firstkey */ -PHPAPI datum flatfile_firstkey(flatfile *dba TSRMLS_DC) { +datum flatfile_firstkey(flatfile *dba TSRMLS_DC) { datum buf; size_t num; size_t buf_size = 1024; @@ -255,7 +255,7 @@ PHPAPI datum flatfile_firstkey(flatfile *dba TSRMLS_DC) { /* {{{ flatfile_nextkey */ -PHPAPI datum flatfile_nextkey(flatfile *dba TSRMLS_DC) { +datum flatfile_nextkey(flatfile *dba TSRMLS_DC) { datum buf; size_t num; size_t buf_size = 1024; diff --git a/ext/dba/libflatfile/flatfile.h b/ext/dba/libflatfile/flatfile.h index f1dbafdc4f..9c910ae157 100644 --- a/ext/dba/libflatfile/flatfile.h +++ b/ext/dba/libflatfile/flatfile.h @@ -37,11 +37,11 @@ typedef struct { #define FLATFILE_INSERT 1 #define FLATFILE_REPLACE 0 -PHPAPI int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC); -PHPAPI datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC); -PHPAPI int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC); -PHPAPI int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC); -PHPAPI datum flatfile_firstkey(flatfile *dba TSRMLS_DC); -PHPAPI datum flatfile_nextkey(flatfile *dba TSRMLS_DC); +int flatfile_store(flatfile *dba, datum key_datum, datum value_datum, int mode TSRMLS_DC); +datum flatfile_fetch(flatfile *dba, datum key_datum TSRMLS_DC); +int flatfile_delete(flatfile *dba, datum key_datum TSRMLS_DC); +int flatfile_findkey(flatfile *dba, datum key_datum TSRMLS_DC); +datum flatfile_firstkey(flatfile *dba TSRMLS_DC); +datum flatfile_nextkey(flatfile *dba TSRMLS_DC); #endif |