diff options
author | Max Semenik <maxsem.wiki@gmail.com> | 2020-07-01 16:32:55 +0300 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-07-06 21:13:34 +0200 |
commit | 2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c (patch) | |
tree | f23a5c00a96f30a62ddcf626b4c6a6d53809d14f /ext/xmlwriter | |
parent | 47579986504022d3eab38e24fff5861d5e4eadad (diff) | |
download | php-git-2b5de6f839feea0ae1d5289d59dd7f159fcdcc8c.tar.gz |
Remove proto comments from C files
Closes GH-5758
Diffstat (limited to 'ext/xmlwriter')
-rw-r--r-- | ext/xmlwriter/php_xmlwriter.c | 138 |
1 files changed, 46 insertions, 92 deletions
diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index 0d0b92c7a4..bb93252c6e 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -173,8 +173,7 @@ static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, i } /* }}} */ -/* {{{ xmlwriter_module_entry - */ +/* {{{ xmlwriter_module_entry */ zend_module_entry xmlwriter_module_entry = { STANDARD_MODULE_HEADER, "xmlwriter", @@ -248,8 +247,7 @@ static void php_xmlwriter_end(INTERNAL_FUNCTION_PARAMETERS, xmlwriter_read_int_t RETURN_FALSE; } -/* {{{ proto bool xmlwriter_set_indent(XMLWriter xmlwriter, bool indent) -Toggle indentation on/off - returns FALSE on error */ +/* {{{ Toggle indentation on/off - returns FALSE on error */ PHP_FUNCTION(xmlwriter_set_indent) { xmlTextWriterPtr ptr; @@ -273,32 +271,28 @@ PHP_FUNCTION(xmlwriter_set_indent) } /* }}} */ -/* {{{ proto bool xmlwriter_set_indent_string(XMLWriter xmlwriter, string indentString) -Set string used for indenting - returns FALSE on error */ +/* {{{ Set string used for indenting - returns FALSE on error */ PHP_FUNCTION(xmlwriter_set_indent_string) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterSetIndentString, NULL); } /* }}} */ -/* {{{ proto bool xmlwriter_start_attribute(XMLWriter xmlwriter, string name) -Create start attribute - returns FALSE on error */ +/* {{{ Create start attribute - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_attribute) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterStartAttribute, "Invalid Attribute Name"); } /* }}} */ -/* {{{ proto bool xmlwriter_end_attribute(XMLWriter xmlwriter) -End attribute - returns FALSE on error */ +/* {{{ End attribute - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_attribute) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndAttribute); } /* }}} */ -/* {{{ proto bool xmlwriter_start_attribute_ns(XMLWriter xmlwriter, string prefix, string name, string uri) -Create start namespaced attribute - returns FALSE on error */ +/* {{{ Create start namespaced attribute - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_attribute_ns) { xmlTextWriterPtr ptr; @@ -326,8 +320,7 @@ PHP_FUNCTION(xmlwriter_start_attribute_ns) } /* }}} */ -/* {{{ proto bool xmlwriter_write_attribute(XMLWriter xmlwriter, string name, string content) -Write full attribute - returns FALSE on error */ +/* {{{ Write full attribute - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_attribute) { xmlTextWriterPtr ptr; @@ -355,8 +348,7 @@ PHP_FUNCTION(xmlwriter_write_attribute) } /* }}} */ -/* {{{ proto bool xmlwriter_write_attribute_ns(XMLWriter xmlwriter, string prefix, string name, string uri, string content) -Write full namespaced attribute - returns FALSE on error */ +/* {{{ Write full namespaced attribute - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_attribute_ns) { xmlTextWriterPtr ptr; @@ -384,16 +376,14 @@ PHP_FUNCTION(xmlwriter_write_attribute_ns) } /* }}} */ -/* {{{ proto bool xmlwriter_start_element(XMLWriter xmlwriter, string name) -Create start element tag - returns FALSE on error */ +/* {{{ Create start element tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_element) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterStartElement, "Invalid Element Name"); } /* }}} */ -/* {{{ proto bool xmlwriter_start_element_ns(XMLWriter xmlwriter, string prefix, string name, string uri) -Create start namespaced element tag - returns FALSE on error */ +/* {{{ Create start namespaced element tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_element_ns) { xmlTextWriterPtr ptr; @@ -422,24 +412,21 @@ PHP_FUNCTION(xmlwriter_start_element_ns) } /* }}} */ -/* {{{ proto bool xmlwriter_end_element(XMLWriter xmlwriter) -End current element - returns FALSE on error */ +/* {{{ End current element - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_element) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndElement); } /* }}} */ -/* {{{ proto bool xmlwriter_full_end_element(XMLWriter xmlwriter) -End current element - returns FALSE on error */ +/* {{{ End current element - returns FALSE on error */ PHP_FUNCTION(xmlwriter_full_end_element) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterFullEndElement); } /* }}} */ -/* {{{ proto bool xmlwriter_write_element(XMLWriter xmlwriter, string name[, string content]) -Write full element tag - returns FALSE on error */ +/* {{{ Write full element tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_element) { xmlTextWriterPtr ptr; @@ -478,8 +465,7 @@ PHP_FUNCTION(xmlwriter_write_element) } /* }}} */ -/* {{{ proto bool xmlwriter_write_element_ns(XMLWriter xmlwriter, string prefix, string name, string uri[, string content]) -Write full namesapced element tag - returns FALSE on error */ +/* {{{ Write full namesapced element tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_element_ns) { xmlTextWriterPtr ptr; @@ -518,24 +504,21 @@ PHP_FUNCTION(xmlwriter_write_element_ns) } /* }}} */ -/* {{{ proto bool xmlwriter_start_pi(XMLWriter xmlwriter, string target) -Create start PI tag - returns FALSE on error */ +/* {{{ Create start PI tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_pi) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterStartPI, "Invalid PI Target"); } /* }}} */ -/* {{{ proto bool xmlwriter_end_pi(XMLWriter xmlwriter) -End current PI - returns FALSE on error */ +/* {{{ End current PI - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_pi) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndPI); } /* }}} */ -/* {{{ proto bool xmlwriter_write_pi(XMLWriter xmlwriter, string target, string content) -Write full PI tag - returns FALSE on error */ +/* {{{ Write full PI tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_pi) { xmlTextWriterPtr ptr; @@ -563,8 +546,7 @@ PHP_FUNCTION(xmlwriter_write_pi) } /* }}} */ -/* {{{ proto bool xmlwriter_start_cdata(XMLWriter xmlwriter) -Create start CDATA tag - returns FALSE on error */ +/* {{{ Create start CDATA tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_cdata) { xmlTextWriterPtr ptr; @@ -587,40 +569,35 @@ PHP_FUNCTION(xmlwriter_start_cdata) } /* }}} */ -/* {{{ proto bool xmlwriter_end_cdata(XMLWriter xmlwriter) -End current CDATA - returns FALSE on error */ +/* {{{ End current CDATA - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_cdata) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndCDATA); } /* }}} */ -/* {{{ proto bool xmlwriter_write_cdata(XMLWriter xmlwriter, string content) -Write full CDATA tag - returns FALSE on error */ +/* {{{ Write full CDATA tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_cdata) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterWriteCDATA, NULL); } /* }}} */ -/* {{{ proto bool xmlwriter_write_raw(XMLWriter xmlwriter, string content) -Write text - returns FALSE on error */ +/* {{{ Write text - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_raw) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterWriteRaw, NULL); } /* }}} */ -/* {{{ proto bool xmlwriter_text(XMLWriter xmlwriter, string content) -Write text - returns FALSE on error */ +/* {{{ Write text - returns FALSE on error */ PHP_FUNCTION(xmlwriter_text) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterWriteString, NULL); } /* }}} */ -/* {{{ proto bool xmlwriter_start_comment(XMLWriter xmlwriter) -Create start comment - returns FALSE on error */ +/* {{{ Create start comment - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_comment) { xmlTextWriterPtr ptr; @@ -643,24 +620,21 @@ PHP_FUNCTION(xmlwriter_start_comment) } /* }}} */ -/* {{{ proto bool xmlwriter_end_comment(XMLWriter xmlwriter) -Create end comment - returns FALSE on error */ +/* {{{ Create end comment - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_comment) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndComment); } /* }}} */ -/* {{{ proto bool xmlwriter_write_comment(XMLWriter xmlwriter, string content) -Write full comment tag - returns FALSE on error */ +/* {{{ Write full comment tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_comment) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterWriteComment, NULL); } /* }}} */ -/* {{{ proto bool xmlwriter_start_document(XMLWriter xmlwriter, string version, string encoding, string standalone) -Create document tag - returns FALSE on error */ +/* {{{ Create document tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_document) { xmlTextWriterPtr ptr; @@ -685,16 +659,14 @@ PHP_FUNCTION(xmlwriter_start_document) } /* }}} */ -/* {{{ proto bool xmlwriter_end_document(XMLWriter xmlwriter) -End current document - returns FALSE on error */ +/* {{{ End current document - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_document) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndDocument); } /* }}} */ -/* {{{ proto bool xmlwriter_start_dtd(XMLWriter xmlwriter, string name, string pubid, string sysid) -Create start DTD tag - returns FALSE on error */ +/* {{{ Create start DTD tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_dtd) { xmlTextWriterPtr ptr; @@ -719,16 +691,14 @@ PHP_FUNCTION(xmlwriter_start_dtd) } /* }}} */ -/* {{{ proto bool xmlwriter_end_dtd(XMLWriter xmlwriter) -End current DTD - returns FALSE on error */ +/* {{{ End current DTD - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_dtd) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndDTD); } /* }}} */ -/* {{{ proto bool xmlwriter_write_dtd(XMLWriter xmlwriter, string name, string pubid, string sysid, string subset) -Write full DTD tag - returns FALSE on error */ +/* {{{ Write full DTD tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_dtd) { xmlTextWriterPtr ptr; @@ -753,24 +723,21 @@ PHP_FUNCTION(xmlwriter_write_dtd) } /* }}} */ -/* {{{ proto bool xmlwriter_start_dtd_element(XMLWriter xmlwriter, string name) -Create start DTD element - returns FALSE on error */ +/* {{{ Create start DTD element - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_dtd_element) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterStartDTDElement, "Invalid Element Name"); } /* }}} */ -/* {{{ proto bool xmlwriter_end_dtd_element(XMLWriter xmlwriter) -End current DTD element - returns FALSE on error */ +/* {{{ End current DTD element - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_dtd_element) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndDTDElement); } /* }}} */ -/* {{{ proto bool xmlwriter_write_dtd_element(XMLWriter xmlwriter, string name, string content) -Write full DTD element tag - returns FALSE on error */ +/* {{{ Write full DTD element tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_dtd_element) { xmlTextWriterPtr ptr; @@ -798,24 +765,21 @@ PHP_FUNCTION(xmlwriter_write_dtd_element) } /* }}} */ -/* {{{ proto bool xmlwriter_start_dtd_attlist(XMLWriter xmlwriter, string name) -Create start DTD AttList - returns FALSE on error */ +/* {{{ Create start DTD AttList - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_dtd_attlist) { php_xmlwriter_string_arg(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterStartDTDAttlist, "Invalid Element Name"); } /* }}} */ -/* {{{ proto bool xmlwriter_end_dtd_attlist(XMLWriter xmlwriter) -End current DTD AttList - returns FALSE on error */ +/* {{{ End current DTD AttList - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_dtd_attlist) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndDTDAttlist); } /* }}} */ -/* {{{ proto bool xmlwriter_write_dtd_attlist(XMLWriter xmlwriter, string name, string content) -Write full DTD AttList tag - returns FALSE on error */ +/* {{{ Write full DTD AttList tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_dtd_attlist) { xmlTextWriterPtr ptr; @@ -843,8 +807,7 @@ PHP_FUNCTION(xmlwriter_write_dtd_attlist) } /* }}} */ -/* {{{ proto bool xmlwriter_start_dtd_entity(XMLWriter xmlwriter, string name, bool isparam) -Create start DTD Entity - returns FALSE on error */ +/* {{{ Create start DTD Entity - returns FALSE on error */ PHP_FUNCTION(xmlwriter_start_dtd_entity) { xmlTextWriterPtr ptr; @@ -872,16 +835,14 @@ PHP_FUNCTION(xmlwriter_start_dtd_entity) } /* }}} */ -/* {{{ proto bool xmlwriter_end_dtd_entity(XMLWriter xmlwriter) -End current DTD Entity - returns FALSE on error */ +/* {{{ End current DTD Entity - returns FALSE on error */ PHP_FUNCTION(xmlwriter_end_dtd_entity) { php_xmlwriter_end(INTERNAL_FUNCTION_PARAM_PASSTHRU, xmlTextWriterEndDTDEntity); } /* }}} */ -/* {{{ proto bool xmlwriter_write_dtd_entity(XMLWriter xmlwriter, string name, string content [, bool pe [, string pubid [, string sysid [, string ndataid]]]]) -Write full DTD Entity tag - returns FALSE on error */ +/* {{{ Write full DTD Entity tag - returns FALSE on error */ PHP_FUNCTION(xmlwriter_write_dtd_entity) { xmlTextWriterPtr ptr; @@ -914,8 +875,7 @@ PHP_FUNCTION(xmlwriter_write_dtd_entity) } /* }}} */ -/* {{{ proto XMLWriter xmlwriter_open_uri(string source) -Create new xmlwriter using source uri for output */ +/* {{{ Create new xmlwriter using source uri for output */ PHP_FUNCTION(xmlwriter_open_uri) { char *valid_file = NULL; @@ -971,8 +931,7 @@ PHP_FUNCTION(xmlwriter_open_uri) } /* }}} */ -/* {{{ proto XMLWriter xmlwriter_open_memory() -Create new xmlwriter using memory for string output */ +/* {{{ Create new xmlwriter using memory for string output */ PHP_FUNCTION(xmlwriter_open_memory) { xmlTextWriterPtr ptr; @@ -1056,24 +1015,21 @@ static void php_xmlwriter_flush(INTERNAL_FUNCTION_PARAMETERS, int force_string) } /* }}} */ -/* {{{ proto string xmlwriter_output_memory(XMLWriter xmlwriter [,bool flush]) -Output current buffer as string */ +/* {{{ Output current buffer as string */ PHP_FUNCTION(xmlwriter_output_memory) { php_xmlwriter_flush(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); } /* }}} */ -/* {{{ proto mixed xmlwriter_flush(XMLWriter xmlwriter [,bool empty]) -Output current buffer */ +/* {{{ Output current buffer */ PHP_FUNCTION(xmlwriter_flush) { php_xmlwriter_flush(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0); } /* }}} */ -/* {{{ PHP_MINIT_FUNCTION - */ +/* {{{ PHP_MINIT_FUNCTION */ static PHP_MINIT_FUNCTION(xmlwriter) { zend_class_entry ce; @@ -1091,16 +1047,14 @@ static PHP_MINIT_FUNCTION(xmlwriter) } /* }}} */ -/* {{{ PHP_MSHUTDOWN_FUNCTION - */ +/* {{{ PHP_MSHUTDOWN_FUNCTION */ static PHP_MSHUTDOWN_FUNCTION(xmlwriter) { return SUCCESS; } /* }}} */ -/* {{{ PHP_MINFO_FUNCTION - */ +/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(xmlwriter) { php_info_print_table_start(); |