summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-08-11 10:17:43 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-08-11 11:42:40 +0200
commit9e930907dfea44df74eccb39648fcde6be8cd7e1 (patch)
tree968073a100daf4c3f1a5f8cd29a60591c6d6c94d /ext/com_dotnet
parentdc5077cc53483d3ec02853b0b92e1837e4e24dee (diff)
downloadphp-git-9e930907dfea44df74eccb39648fcde6be8cd7e1.tar.gz
Autogenerate function entries for COMPersistHelper
Co-authored-by: Nikita Popov <nikita.ppv@googlemail.com>
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_persist.c19
-rw-r--r--ext/com_dotnet/com_persist.stub.php1
-rw-r--r--ext/com_dotnet/com_persist_arginfo.h25
3 files changed, 27 insertions, 18 deletions
diff --git a/ext/com_dotnet/com_persist.c b/ext/com_dotnet/com_persist.c
index c45910583b..3bde7175d8 100644
--- a/ext/com_dotnet/com_persist.c
+++ b/ext/com_dotnet/com_persist.c
@@ -276,8 +276,7 @@ PHP_COM_DOTNET_API IStream *php_com_wrapper_export_stream(php_stream *stream)
return (IStream*)stm;
}
-#define CPH_ME(fname, arginfo) PHP_ME(com_persist, fname, arginfo, ZEND_ACC_PUBLIC)
-#define CPH_METHOD(fname) static PHP_METHOD(com_persist, fname)
+#define CPH_METHOD(fname) PHP_METHOD(COMPersistHelper, fname)
#define CPH_FETCH() php_com_persist_helper *helper = (php_com_persist_helper*)Z_OBJ_P(getThis());
@@ -663,20 +662,6 @@ CPH_METHOD(__construct)
/* }}} */
-
-
-static const zend_function_entry com_persist_helper_methods[] = {
- CPH_ME(__construct, arginfo_class_COMPersistHelper___construct)
- CPH_ME(GetCurFileName, arginfo_class_COMPersistHelper_GetCurFileName)
- CPH_ME(SaveToFile, arginfo_class_COMPersistHelper_SaveToFile)
- CPH_ME(LoadFromFile, arginfo_class_COMPersistHelper_LoadFromFile)
- CPH_ME(GetMaxStreamSize, arginfo_class_COMPersistHelper_GetMaxStreamSize)
- CPH_ME(InitNew, arginfo_class_COMPersistHelper_InitNew)
- CPH_ME(LoadFromStream, arginfo_class_COMPersistHelper_LoadFromStream)
- CPH_ME(SaveToStream, arginfo_class_COMPersistHelper_SaveToStream)
- PHP_FE_END
-};
-
static void helper_free_storage(zend_object *obj)
{
php_com_persist_helper *object = (php_com_persist_helper*)obj;
@@ -742,7 +727,7 @@ int php_com_persist_minit(INIT_FUNC_ARGS)
helper_handlers.free_obj = helper_free_storage;
helper_handlers.clone_obj = helper_clone;
- INIT_CLASS_ENTRY(ce, "COMPersistHelper", com_persist_helper_methods);
+ INIT_CLASS_ENTRY(ce, "COMPersistHelper", class_COMPersistHelper_methods);
ce.create_object = helper_new;
helper_ce = zend_register_internal_class(&ce);
helper_ce->ce_flags |= ZEND_ACC_FINAL;
diff --git a/ext/com_dotnet/com_persist.stub.php b/ext/com_dotnet/com_persist.stub.php
index c4155bceb1..09a842d8fb 100644
--- a/ext/com_dotnet/com_persist.stub.php
+++ b/ext/com_dotnet/com_persist.stub.php
@@ -1,5 +1,6 @@
<?php
+/** @generate-function-entries */
final class COMPersistHelper
{
diff --git a/ext/com_dotnet/com_persist_arginfo.h b/ext/com_dotnet/com_persist_arginfo.h
index 87b41f83f5..0665dc343b 100644
--- a/ext/com_dotnet/com_persist_arginfo.h
+++ b/ext/com_dotnet/com_persist_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 69de4fb111796d28e92e16630221e2d02817e742 */
+ * Stub hash: 47d926b2ba30bb3616f4175664723352fff164e7 */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_COMPersistHelper___construct, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, com_object, VARIANT, 1)
@@ -29,3 +29,26 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_COMPersistHelper_LoadFromS
ZEND_END_ARG_INFO()
#define arginfo_class_COMPersistHelper_SaveToStream arginfo_class_COMPersistHelper_LoadFromStream
+
+
+ZEND_METHOD(COMPersistHelper, __construct);
+ZEND_METHOD(COMPersistHelper, GetCurFileName);
+ZEND_METHOD(COMPersistHelper, SaveToFile);
+ZEND_METHOD(COMPersistHelper, LoadFromFile);
+ZEND_METHOD(COMPersistHelper, GetMaxStreamSize);
+ZEND_METHOD(COMPersistHelper, InitNew);
+ZEND_METHOD(COMPersistHelper, LoadFromStream);
+ZEND_METHOD(COMPersistHelper, SaveToStream);
+
+
+static const zend_function_entry class_COMPersistHelper_methods[] = {
+ ZEND_ME(COMPersistHelper, __construct, arginfo_class_COMPersistHelper___construct, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, GetCurFileName, arginfo_class_COMPersistHelper_GetCurFileName, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, SaveToFile, arginfo_class_COMPersistHelper_SaveToFile, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, LoadFromFile, arginfo_class_COMPersistHelper_LoadFromFile, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, GetMaxStreamSize, arginfo_class_COMPersistHelper_GetMaxStreamSize, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, InitNew, arginfo_class_COMPersistHelper_InitNew, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, LoadFromStream, arginfo_class_COMPersistHelper_LoadFromStream, ZEND_ACC_PUBLIC)
+ ZEND_ME(COMPersistHelper, SaveToStream, arginfo_class_COMPersistHelper_SaveToStream, ZEND_ACC_PUBLIC)
+ ZEND_FE_END
+};