summaryrefslogtreecommitdiff
path: root/ext/rpc/com/variant.h
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2003-02-27 17:43:39 +0000
committerSVN Migration <svn@php.net>2003-02-27 17:43:39 +0000
commit078bcec0997ad0e07b720c43cc9e6d0e046a75ab (patch)
tree36cb0f6be2ef078fe3374de8c087b93ecf82f812 /ext/rpc/com/variant.h
parentfd61f69077f6156ca71dde60ecfd9ed9765a02db (diff)
downloadphp-git-PHP-5.tar.gz
This commit was manufactured by cvs2svn to create branch 'PHP_5'.PHP-5
Diffstat (limited to 'ext/rpc/com/variant.h')
-rw-r--r--ext/rpc/com/variant.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/ext/rpc/com/variant.h b/ext/rpc/com/variant.h
deleted file mode 100644
index e8c3539572..0000000000
--- a/ext/rpc/com/variant.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- +----------------------------------------------------------------------+
- | PHP Version 4 |
- +----------------------------------------------------------------------+
- | Copyright (c) 1997-2003 The PHP Group |
- +----------------------------------------------------------------------+
- | This source file is subject to version 2.02 of the PHP license, |
- | that is bundled with this package in the file LICENSE, and is |
- | available at through the world-wide-web at |
- | http://www.php.net/license/2_02.txt. |
- | If you did not receive a copy of the PHP license and are unable to |
- | obtain it through the world-wide-web, please send a note to |
- | license@php.net so we can mail you a copy immediately. |
- +----------------------------------------------------------------------+
- | Author: Harald Radi <h.radi@nme.at> |
- +----------------------------------------------------------------------+
- */
-
-
-#ifndef VARIANT_H
-#define VARIANT_H
-
-#if PHP_WIN32
-
-#define ALLOC_VARIANT(v) (v) = (variantval *) emalloc(sizeof(variantval)); \
- (v)->var = (VARIANT *) emalloc(sizeof(VARIANT)); \
- (v)->codepage = CP_ACP; \
- VariantInit((v)->var);
-
-#define FREE_VARIANT(v) VariantClear((v)->var); \
- efree((v)->var); \
- efree((v));
-
-#define ZVAL_VARIANT(z, v, cp) \
- if (V_VT(v) == VT_DISPATCH && V_DISPATCH(v) == NULL) { \
- V_VT(v) = VT_NULL; \
- } \
- if (V_VT(v) == VT_DISPATCH) { \
- comval *obj; \
- ALLOC_COM(obj); \
- php_COM_set(obj, &V_DISPATCH(v), TRUE); \
- rpc_object_from_data_ex(z, com, obj, NULL); \
- } else { \
- php_variant_to_zval((v), (z), cp); \
- VariantClear(v); \
- }
-
-#define RETVAL_VARIANT(v, cp) ZVAL_VARIANT(return_value, v, cp)
-#define RETURN_VARIANT(v, cp) RETVAL_VARIANT(v, cp) \
- return;
-
-typedef struct variantval_ {
- VARIANT* var;
- long codepage;
-} variantval;
-
-void php_variant_init(int module_number TSRMLS_DC);
-void php_variant_shutdown(TSRMLS_D);
-
-ZEND_FUNCTION(variant_load);
-
-#endif /* PHP_WIN32 */
-
-#endif /* VARIANT_H */