summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-05-21 22:44:10 +0000
committerWez Furlong <wez@php.net>2002-05-21 22:44:10 +0000
commit762effcf6094d94b99093de0985990d48510fd94 (patch)
treeecfc21f78f8db2bce77af7fda0d4cf21d3b3fe60
parentfbf920d9a36b15ae555e613cba0507c20a5a1f23 (diff)
downloadphp-git-762effcf6094d94b99093de0985990d48510fd94.tar.gz
Add documentation comment for properties in com_print_typeinfo
-rw-r--r--ext/com/COM.c8
-rw-r--r--ext/rpc/com/com_wrapper.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/ext/com/COM.c b/ext/com/COM.c
index 1814056086..288a03ac32 100644
--- a/ext/com/COM.c
+++ b/ext/com/COM.c
@@ -1183,6 +1183,14 @@ static int process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int prin
if (isprop) {
+ typeinfo->lpVtbl->GetDocumentation(typeinfo, func->memid, NULL, &olename, NULL, NULL);
+ if (olename) {
+ funcdesc = php_OLECHAR_to_char(olename, &funcdesclen, codepage TSRMLS_CC);
+ SysFreeString(olename);
+ php_printf("\t/* %s */\n", funcdesc);
+ efree(funcdesc);
+ }
+
php_printf("\tvar $%s;\n\n", ansiname);
} else {
diff --git a/ext/rpc/com/com_wrapper.c b/ext/rpc/com/com_wrapper.c
index 1814056086..288a03ac32 100644
--- a/ext/rpc/com/com_wrapper.c
+++ b/ext/rpc/com/com_wrapper.c
@@ -1183,6 +1183,14 @@ static int process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int prin
if (isprop) {
+ typeinfo->lpVtbl->GetDocumentation(typeinfo, func->memid, NULL, &olename, NULL, NULL);
+ if (olename) {
+ funcdesc = php_OLECHAR_to_char(olename, &funcdesclen, codepage TSRMLS_CC);
+ SysFreeString(olename);
+ php_printf("\t/* %s */\n", funcdesc);
+ efree(funcdesc);
+ }
+
php_printf("\tvar $%s;\n\n", ansiname);
} else {