Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8570 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35263 invoked by uid 1010); 17 Mar 2004 21:46:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35154 invoked from network); 17 Mar 2004 21:46:34 -0000 Received: from unknown (HELO sapo.pt) (212.55.154.23) by pb1.pair.com with SMTP; 17 Mar 2004 21:46:34 -0000 Received: (qmail 28413 invoked from network); 17 Mar 2004 21:45:35 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.157) by relay3 with SMTP; 17 Mar 2004 21:45:35 -0000 Received: (qmail 14820 invoked from network); 17 Mar 2004 21:45:07 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.142.249]) (envelope-sender ) by mta7 (qmail-ldap-1.03) with SMTP for ; 17 Mar 2004 21:45:07 -0000 Message-ID: <005801c40c69$cd529fa0$0100a8c0@pc07653> To: "PHPdev" Date: Wed, 17 Mar 2004 21:49:59 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Fw: [PATCH] tidy protos and tidy_getopt From: nlopess@php.net ("Nuno Lopes") The patch was missing: cvs diff: Diffing . Index: tidy.c =================================================================== RCS file: /repository/php-src/ext/tidy/tidy.c,v retrieving revision 1.41 diff -u -r1.41 tidy.c --- tidy.c 26 Feb 2004 13:22:11 -0000 1.41 +++ tidy.c 17 Mar 2004 21:43:05 -0000 @@ -1030,7 +1030,7 @@ } /* }}} */ -/* {{{ proto string tidy_get_error_buffer([boolean detailed]) +/* {{{ proto string tidy_get_error_buffer(resource tidy) Return warnings and errors which occured parsing the specified document*/ PHP_FUNCTION(tidy_get_error_buffer) { @@ -1040,7 +1040,7 @@ } /* }}} */ -/* {{{ proto string tidy_get_output() +/* {{{ proto string tidy_get_output(resource tidy) Return a string representing the parsed tidy markup */ PHP_FUNCTION(tidy_get_output) { @@ -1149,7 +1149,7 @@ } /* }}} */ -/* {{{ proto array tidy_get_config() +/* {{{ proto array tidy_get_config(resource tidy) Get current Tidy configuarion */ PHP_FUNCTION(tidy_get_config) { @@ -1188,7 +1188,7 @@ } /* }}} */ -/* {{{ proto int tidy_get_status() +/* {{{ proto int tidy_get_status(resource tidy) Get status of specfied document. */ PHP_FUNCTION(tidy_get_status) { @@ -1198,7 +1198,7 @@ } /* }}} */ -/* {{{ proto int tidy_get_html_ver() +/* {{{ proto int tidy_get_html_ver(resource tidy) Get the Detected HTML version for the specified document. */ PHP_FUNCTION(tidy_get_html_ver) { @@ -1208,7 +1208,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_is_xhtml() +/* {{{ proto boolean tidy_is_xhtml(resource tidy) Indicates if the document is a XHTML document. */ PHP_FUNCTION(tidy_is_xhtml) { @@ -1218,7 +1218,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_is_xhtml() +/* {{{ proto boolean tidy_is_xml(resource tidy) Indicates if the document is a generic (non HTML/XHTML) XML document. */ PHP_FUNCTION(tidy_is_xml) { @@ -1228,7 +1228,7 @@ } /* }}} */ -/* {{{ proto int tidy_error_count() +/* {{{ proto int tidy_error_count(resource tidy) Returns the Number of Tidy errors encountered for specified document. */ PHP_FUNCTION(tidy_error_count) { @@ -1238,7 +1238,7 @@ } /* }}} */ -/* {{{ proto int tidy_warning_count() +/* {{{ proto int tidy_warning_count(resource tidy) Returns the Number of Tidy warnings encountered for specified document. */ PHP_FUNCTION(tidy_warning_count) { @@ -1248,7 +1248,7 @@ } /* }}} */ -/* {{{ proto int tidy_access_count() +/* {{{ proto int tidy_access_count(resource tidy) Returns the Number of Tidy accessibility warnings encountered for specified document. */ PHP_FUNCTION(tidy_access_count) { @@ -1258,7 +1258,7 @@ } /* }}} */ -/* {{{ proto int tidy_config_count() +/* {{{ proto int tidy_config_count(resource tidy) Returns the Number of Tidy configuration errors encountered for specified do cument. */ PHP_FUNCTION(tidy_config_count) { @@ -1268,7 +1268,7 @@ } /* }}} */ -/* {{{ proto mixed tidy_getopt(string option) +/* {{{ proto mixed tidy_getopt(resource tidy, string option) Returns the value of the specified configuration option for the tidy documen t. */ PHP_FUNCTION(tidy_getopt) { @@ -1312,7 +1312,7 @@ if (optval) { RETURN_TRUE; } else { - RETURN_NULL(); + RETURN_FALSE; } break; @@ -1414,7 +1414,7 @@ } -/* {{{ proto TidyNode tidy_get_root() +/* {{{ proto TidyNode tidy_get_root(resource tidy) Returns a TidyNode Object representing the root of the tidy parse tree */ PHP_FUNCTION(tidy_get_root) { @@ -1422,7 +1422,7 @@ } /* }}} */ -/* {{{ proto TidyNode tidy_get_html() +/* {{{ proto TidyNode tidy_get_html(resource tidy) Returns a TidyNode Object starting from the tag of the tidy parse tre e */ PHP_FUNCTION(tidy_get_html) { @@ -1430,7 +1430,7 @@ } /* }}} */ -/* {{{ proto TidyNode tidy_get_head() +/* {{{ proto TidyNode tidy_get_head(resource tidy) Returns a TidyNode Object starting from the tag of the tidy parse tre e */ PHP_FUNCTION(tidy_get_head) { @@ -1453,7 +1453,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::has_children() +/* {{{ proto boolean tidy_node::hasChildren() Returns true if this node has children */ TIDY_NODE_METHOD(hasChildren) { @@ -1467,7 +1467,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::has_siblings() +/* {{{ proto boolean tidy_node::hasSiblings() Returns true if this node has siblings */ TIDY_NODE_METHOD(hasSiblings) { @@ -1481,7 +1481,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_comment() +/* {{{ proto boolean tidy_node::isComment() Returns true if this node represents a comment */ TIDY_NODE_METHOD(isComment) { @@ -1495,7 +1495,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_html() +/* {{{ proto boolean tidy_node::isHtml() Returns true if this node is part of a HTML document */ TIDY_NODE_METHOD(isHtml) { @@ -1509,7 +1509,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_xhtml() +/* {{{ proto boolean tidy_node::isXhtml() Returns true if this node is part of a XHTML document */ TIDY_NODE_METHOD(isXhtml) { @@ -1523,7 +1523,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_xml() +/* {{{ proto boolean tidy_node::isXml() Returns true if this node is part of a XML document */ TIDY_NODE_METHOD(isXml) { @@ -1537,7 +1537,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_text() +/* {{{ proto boolean tidy_node::isText() Returns true if this node represents text (no markup) */ TIDY_NODE_METHOD(isText) { @@ -1551,7 +1551,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_jste() +/* {{{ proto boolean tidy_node::isJste() Returns true if this node is JSTE */ TIDY_NODE_METHOD(isJste) { @@ -1565,7 +1565,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_asp() +/* {{{ proto boolean tidy_node::isAsp() Returns true if this node is ASP */ TIDY_NODE_METHOD(isAsp) { @@ -1579,7 +1579,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_node::is_php() +/* {{{ proto boolean tidy_node::isPhp() Returns true if this node is PHP */ TIDY_NODE_METHOD(isPhp) {