diff options
author | Harald Radi <phanto@php.net> | 2001-08-13 23:39:11 +0000 |
---|---|---|
committer | Harald Radi <phanto@php.net> | 2001-08-13 23:39:11 +0000 |
commit | 9c6b9eb76bb493f0166eb6c1661721c54d93129e (patch) | |
tree | fa230a9374a7fee31fa10210366ff73dff99393e /ext/com/variant.h | |
parent | bb0858db348ab3ce3b9cb1e480695b8ad1d65849 (diff) | |
download | php-git-9c6b9eb76bb493f0166eb6c1661721c54d93129e.tar.gz |
merged from EXPERIMENTAL
lots of cleanup work
Diffstat (limited to 'ext/com/variant.h')
-rw-r--r-- | ext/com/variant.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/com/variant.h b/ext/com/variant.h index ec25ee4e4b..ce5b4e66ae 100644 --- a/ext/com/variant.h +++ b/ext/com/variant.h @@ -3,7 +3,13 @@ #if PHP_WIN32 -#define ALLOC_VARIANT(v) (v) = (VARIANT *) emalloc(sizeof(VARIANT)) +#define ALLOC_VARIANT(v) (v) = (VARIANT *) emalloc(sizeof(VARIANT)); \ + VariantInit(v); + +#define FREE_VARIANT(v) VariantClear(v); \ + efree(v); + + #define IS_VARIANT php_VARIANT_get_le_variant() #endif /* PHP_WIN32 */ |