diff options
author | Sterling Hughes <sterling@php.net> | 2002-04-19 22:17:23 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2002-04-19 22:17:23 +0000 |
commit | 8912735d86e2b465fa7a435b08e6734de5eaafb5 (patch) | |
tree | 8beb7c43459c0ba8dd12af156dff66a600fb7848 /ext/xslt/php_sablot.h | |
parent | 4bf2f16771295dce73da110a4165dc16c6035fb3 (diff) | |
download | php-git-8912735d86e2b465fa7a435b08e6734de5eaafb5.tar.gz |
make it work with dom processing, this allows DOM tree caching to avoid
re-parsing the same data. Currently very beta -- DO NOT USE. Will be cleaning
this up over the next few days... Need this in here for version history, and
to show other people
Diffstat (limited to 'ext/xslt/php_sablot.h')
-rw-r--r-- | ext/xslt/php_sablot.h | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/ext/xslt/php_sablot.h b/ext/xslt/php_sablot.h index 545ad0b352..a0304437b5 100644 --- a/ext/xslt/php_sablot.h +++ b/ext/xslt/php_sablot.h @@ -16,6 +16,8 @@ +----------------------------------------------------------------------+ */ +/* $Id$ */ + #ifndef PHP_XSLT_H #define PHP_XSLT_H @@ -41,6 +43,7 @@ extern zend_module_entry xslt_module_entry; #define XSLT_ERROR(handle) ((handle)->handlers->error) #define XSLT_PROCESSOR(handle) ((handle)->processor.ptr) +#define XSLT_CONTEXT(handle) ((handle)->processor.ctx) #define XSLT_ERRNO(handle) ((handle)->err->no) #define XSLT_ERRSTR(handle) ((handle)->err->str) @@ -51,15 +54,15 @@ extern zend_module_entry xslt_module_entry; PHP_MINIT_FUNCTION(xslt); PHP_MINFO_FUNCTION(xslt); -PHP_FUNCTION(xslt_sax_create); -PHP_FUNCTION(xslt_sax_set_sax_handlers); -PHP_FUNCTION(xslt_sax_set_scheme_handlers); -PHP_FUNCTION(xslt_sax_set_error_handler); -PHP_FUNCTION(xslt_sax_set_base); -PHP_FUNCTION(xslt_sax_set_encoding); -PHP_FUNCTION(xslt_sax_set_log); -PHP_FUNCTION(xslt_sax_process); -PHP_FUNCTION(xslt_sax_free); +PHP_FUNCTION(xslt_create); +PHP_FUNCTION(xslt_set_sax_handlers); +PHP_FUNCTION(xslt_set_scheme_handlers); +PHP_FUNCTION(xslt_set_error_handler); +PHP_FUNCTION(xslt_set_base); +PHP_FUNCTION(xslt_set_encoding); +PHP_FUNCTION(xslt_set_log); +PHP_FUNCTION(xslt_process); +PHP_FUNCTION(xslt_free); PHP_FUNCTION(xslt_error); PHP_FUNCTION(xslt_errno); @@ -90,8 +93,9 @@ struct xslt_handlers { }; struct xslt_processor { - SablotHandle ptr; - long idx; + SablotSituation ctx; + SablotHandle ptr; + long idx; }; struct xslt_log { @@ -107,9 +111,10 @@ struct xslt_error { }; typedef struct { - struct xslt_handlers *handlers; struct xslt_processor processor; + struct xslt_handlers *handlers; struct xslt_error *err; + int cacheable; } php_xslt; #else |