cvs: php4 /ext/com COM.c
| From: | Wez Furlong | Date: | Tue, 21 May 2002 22:44:14 +0000 |
| Subject: | cvs: php4 /ext/com COM.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12050@lists.php.net to get a copy of this message | ||
wez Tue May 21 18:44:14 2002 EDT
Modified files:
/php4/ext/com COM.c
Log:
Add documentation comment for properties in com_print_typeinfo
Index: php4/ext/com/COM.c
diff -u php4/ext/com/COM.c:1.77 php4/ext/com/COM.c:1.78
--- php4/ext/com/COM.c:1.77 Tue May 21 18:41:44 2002
+++ php4/ext/com/COM.c Tue May 21 18:44:09 2002
@@ -18,7 +18,7 @@
| Wez Furlong <wez@thebrainroom.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: COM.c,v 1.77 2002/05/21 22:41:44 wez Exp $ */
+/* $Id: COM.c,v 1.78 2002/05/21 22:44:09 wez Exp $ */
/*
* This module implements support for COM components that support the IDispatch
* interface. Both local (COM) and remote (DCOM) components can be accessed.
@@ -1182,6 +1182,14 @@
}
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);