From: Marcus Boerger Date: Tue, 2 Dec 2003 07:13:53 +0000 (+0000) Subject: Move object struct to header. X-Git-Tag: php-5.0.0b3RC1~429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7217431be0286d05e1c8adb27d4e90597b0bd91;p=php Move object struct to header. --- diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 668c73af77..02839e191f 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -33,6 +33,7 @@ #include "spl_functions.h" #include "spl_engine.h" #include "spl_iterators.h" +#include "spl_directory.h" #include "php.h" #include "fopen_wrappers.h" @@ -107,19 +108,6 @@ zend_class_entry *spl_ce_DirectoryIterator; zend_class_entry *spl_ce_RecursiveDirectoryIterator; -/* the overloaded class structure */ - -/* overloading the structure results in the need of having - dedicated creatin/cloning/destruction functions */ -typedef struct _spl_ce_dir_object { - zend_object std; - php_stream *dirp; - php_stream_dirent entry; - char *path; - int index; -} spl_ce_dir_object; - - /* {{{ spl_ce_dir_object_dtor */ /* close all resources and the memory allocated for the object */ static void spl_ce_dir_object_dtor(void *object, zend_object_handle handle TSRMLS_DC) diff --git a/ext/spl/spl_directory.h b/ext/spl/spl_directory.h index 987bf7b074..8fc14d9946 100755 --- a/ext/spl/spl_directory.h +++ b/ext/spl/spl_directory.h @@ -26,6 +26,14 @@ extern zend_class_entry *spl_ce_DirectoryIterator; PHP_MINIT_FUNCTION(spl_directory); +typedef struct _spl_ce_dir_object { + zend_object std; + php_stream *dirp; + php_stream_dirent entry; + char *path; + int index; +} spl_ce_dir_object; + #endif /* SPL_DIRECTORY_H */ /*