]> granicus.if.org Git - php/commitdiff
Move object struct to header.
authorMarcus Boerger <helly@php.net>
Tue, 2 Dec 2003 07:13:53 +0000 (07:13 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 2 Dec 2003 07:13:53 +0000 (07:13 +0000)
ext/spl/spl_directory.c
ext/spl/spl_directory.h

index 668c73af7789be63f4cf07e1afdcf09577fd3457..02839e191f7ee65682a16aaaa2afc2e636c52d9b 100755 (executable)
@@ -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)
index 987bf7b074484016edc1b997afa746fddcef40a3..8fc14d99464656bf8c51b3d7c95dd260245921be 100755 (executable)
@@ -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 */
 
 /*