]> granicus.if.org Git - php/commitdiff
PHPAPI-ize php_var_* functions
authorDaniel Beulshausen <dbeu@php.net>
Sun, 1 Jul 2001 20:18:51 +0000 (20:18 +0000)
committerDaniel Beulshausen <dbeu@php.net>
Sun, 1 Jul 2001 20:18:51 +0000 (20:18 +0000)
# need this for shm*

ext/standard/php_var.h
ext/standard/var.c

index 7e2391adc30c788d2fb700f079d2695752ebd515..86bd50c5492752c0691e2b041588895e264dbc7b 100644 (file)
@@ -30,8 +30,8 @@ void php_var_dump(pval **struc, int level);
 /* typdef HashTable php_serialize_data_t; */
 #define php_serialize_data_t HashTable
 
-void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
-int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
+PHPAPI void php_var_serialize(pval *buf, pval **struc, php_serialize_data_t *var_hash);
+PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, php_serialize_data_t *var_hash);
 
 #define PHP_VAR_SERIALIZE_INIT(var_hash) \
    zend_hash_init(&(var_hash),10,NULL,NULL,0)
index dc240cf7ad9f470ef217d5db4364949059bc08c8..a1e61b35813e236ab3e6d65917016ec4a55b2c8f 100644 (file)
@@ -176,7 +176,7 @@ inline int php_add_var_hash(HashTable *var_hash, zval *var, void *var_old) {
        return SUCCESS;
 }
 
-void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
+PHPAPI void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
 {
        char s[256];
        ulong slen;
@@ -358,7 +358,7 @@ void php_var_serialize(pval *buf, pval **struc, HashTable *var_hash)
 /* }}} */
 /* {{{ php_var_dump */
 
-int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
+PHPAPI int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable *var_hash)
 {
        const char *q;
        char *str;