CVS update: php3/functions

From: Date: Mon, 04 Jan 1999 18:13:31 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-3254@lists.php.net to get a copy of this message
Date: Monday January 4, 1999 @ 13:13 Author: rasmus Update of /repository/php3/functions In directory asf:/home/rasmus/php3/functions Modified Files: formatted_print.c sybase-ct.c sysvshm.c xml.c Log Message: Fill in some missing prototypes Index: php3/functions/formatted_print.c diff -c php3/functions/formatted_print.c:1.45 php3/functions/formatted_print.c:1.46 *** php3/functions/formatted_print.c:1.45 Fri Jan 1 12:59:09 1999 --- php3/functions/formatted_print.c Mon Jan 4 13:13:29 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: formatted_print.c,v 1.45 1999/01/01 17:59:09 zeev Exp $ */ #include <math.h> /* modf() */ #ifdef THREAD_SAFE --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: formatted_print.c,v 1.46 1999/01/04 18:13:29 rasmus Exp $ */ #include <math.h> /* modf() */ #ifdef THREAD_SAFE *************** *** 566,571 **** --- 566,573 ---- } + /* {{{ proto string sprintf(string format [, mixed arg1 [, ...]]) + Return a formatted string */ PHP_FUNCTION(user_sprintf) { char *result; *************** *** 578,585 **** RETVAL_STRINGL(result,len,1); efree(result); } ! PHP_FUNCTION(user_printf) { char *result; --- 580,589 ---- RETVAL_STRINGL(result,len,1); efree(result); } + /* }}} */ ! /* {{{ proto int printf(string format [, mixed arg1 [, ...]]) ! Output a formatted string */ PHP_FUNCTION(user_printf) { char *result; *************** *** 593,599 **** PHPWRITE(result,len); efree(result); } ! /* * Local variables: --- 597,603 ---- PHPWRITE(result,len); efree(result); } ! /* }}} */ /* * Local variables: Index: php3/functions/sybase-ct.c diff -c php3/functions/sybase-ct.c:1.59 php3/functions/sybase-ct.c:1.60 *** php3/functions/sybase-ct.c:1.59 Fri Jan 1 12:59:18 1999 --- php3/functions/sybase-ct.c Mon Jan 4 13:13:29 1999 *************** *** 28,34 **** +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.59 1999/01/01 17:59:18 zeev Exp $ */ #ifndef MSVC5 --- 28,34 ---- +----------------------------------------------------------------------+ */ ! /* $Id: sybase-ct.c,v 1.60 1999/01/04 18:13:29 rasmus Exp $ */ #ifndef MSVC5 *************** *** 1561,1567 **** pval_copy_constructor(return_value); } ! void php3_sybct_affected_rows(INTERNAL_FUNCTION_PARAMETERS) { pval *sybct_link_index; --- 1561,1568 ---- pval_copy_constructor(return_value); } ! /* {{{ proto int sybase_affected_rows([int link_id]) ! Get number of affected rows in last query */ void php3_sybct_affected_rows(INTERNAL_FUNCTION_PARAMETERS) { pval *sybct_link_index; *************** *** 1594,1600 **** return_value->value.lval = sybct_ptr->affected_rows; return_value->type = IS_LONG; } ! void php3_info_sybct(void) { --- 1595,1601 ---- return_value->value.lval = sybct_ptr->affected_rows; return_value->type = IS_LONG; } ! /* }}} */ void php3_info_sybct(void) { Index: php3/functions/sysvshm.c diff -c php3/functions/sysvshm.c:1.6 php3/functions/sysvshm.c:1.7 *** php3/functions/sysvshm.c:1.6 Fri Jan 1 12:59:19 1999 --- php3/functions/sysvshm.c Mon Jan 4 13:13:30 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: sysvshm.c,v 1.6 1999/01/01 17:59:19 zeev Exp $ */ /* This has been built and tested on Solaris 2.6. * It may not compile or execute correctly on other systems. --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: sysvshm.c,v 1.7 1999/01/04 18:13:30 rasmus Exp $ */ /* This has been built and tested on Solaris 2.6. * It may not compile or execute correctly on other systems. *************** *** 260,266 **** ! /* {{{ proto int shm_put(int id, int key, object *variable) insert a variable into shared memory. */ void php3_sysvshm_put_var(INTERNAL_FUNCTION_PARAMETERS) { --- 260,266 ---- ! /* {{{ proto int shm_put_var(int id, int key, object *variable) insert a variable into shared memory. */ void php3_sysvshm_put_var(INTERNAL_FUNCTION_PARAMETERS) { Index: php3/functions/xml.c diff -c php3/functions/xml.c:1.18 php3/functions/xml.c:1.19 *** php3/functions/xml.c:1.18 Fri Jan 1 12:59:20 1999 --- php3/functions/xml.c Mon Jan 4 13:13:30 1999 *************** *** 27,33 **** +----------------------------------------------------------------------+ */ ! /* $Id: xml.c,v 1.18 1999/01/01 17:59:20 zeev Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 --- 27,33 ---- +----------------------------------------------------------------------+ */ ! /* $Id: xml.c,v 1.19 1999/01/04 18:13:30 rasmus Exp $ */ #define IS_EXT_MODULE #if COMPILE_DL # if PHP_31 *************** *** 815,822 **** /************************* EXTENSION FUNCTIONS *************************/ ! /* {{{ int xml_parser_create() */ ! PHP_FUNCTION(xml_parser_create) { xml_parser *parser; --- 815,822 ---- /************************* EXTENSION FUNCTIONS *************************/ ! /* {{{ proto int xml_parser_create() ! Create an XML parser */ PHP_FUNCTION(xml_parser_create) { xml_parser *parser; *************** *** 866,875 **** RETVAL_LONG(id); } - /* }}} */ - /* {{{ int xml_set_element_handler(int pind, string shdl, string ehdl) */ PHP_FUNCTION(xml_set_element_handler) { xml_parser *parser; --- 866,875 ---- RETVAL_LONG(id); } /* }}} */ + /* {{{ proto int xml_set_element_handler(int pind, string shdl, string ehdl) + Set up start and end element handlers */ PHP_FUNCTION(xml_set_element_handler) { xml_parser *parser; *************** *** 892,901 **** XML_SetElementHandler(parser->parser, php3i_xml_startElementHandler, php3i_xml_endElementHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_character_data_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_character_data_handler) { xml_parser *parser; --- 892,901 ---- XML_SetElementHandler(parser->parser, php3i_xml_startElementHandler, php3i_xml_endElementHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_character_data_handler(int pind, string hdl) + Set up character data handler */ PHP_FUNCTION(xml_set_character_data_handler) { xml_parser *parser; *************** *** 915,924 **** XML_SetCharacterDataHandler(parser->parser, php3i_xml_characterDataHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_processing_instruction_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_processing_instruction_handler) { xml_parser *parser; --- 915,924 ---- XML_SetCharacterDataHandler(parser->parser, php3i_xml_characterDataHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_processing_instruction_handler(int pind, string hdl) + Set up processing instruction (PI) handler */ PHP_FUNCTION(xml_set_processing_instruction_handler) { xml_parser *parser; *************** *** 938,947 **** XML_SetProcessingInstructionHandler(parser->parser, php3i_xml_processingInstructionHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_default_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_default_handler) { xml_parser *parser; --- 938,947 ---- XML_SetProcessingInstructionHandler(parser->parser, php3i_xml_processingInstructionHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_default_handler(int pind, string hdl) + Set up default handler */ PHP_FUNCTION(xml_set_default_handler) { xml_parser *parser; *************** *** 961,970 **** XML_SetDefaultHandler(parser->parser, php3i_xml_defaultHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_unparsed_entity_decl_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_unparsed_entity_decl_handler) { xml_parser *parser; --- 961,970 ---- XML_SetDefaultHandler(parser->parser, php3i_xml_defaultHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_unparsed_entity_decl_handler(int pind, string hdl) + Set up unparsed entity declaration handler */ PHP_FUNCTION(xml_set_unparsed_entity_decl_handler) { xml_parser *parser; *************** *** 984,993 **** XML_SetUnparsedEntityDeclHandler(parser->parser, php3i_xml_unparsedEntityDeclHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_notation_decl_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_notation_decl_handler) { xml_parser *parser; --- 984,993 ---- XML_SetUnparsedEntityDeclHandler(parser->parser, php3i_xml_unparsedEntityDeclHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_notation_decl_handler(int pind, string hdl) + Set up notation declaration handler */ PHP_FUNCTION(xml_set_notation_decl_handler) { xml_parser *parser; *************** *** 1007,1016 **** XML_SetNotationDeclHandler(parser->parser, php3i_xml_notationDeclHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_set_external_entity_ref_handler(int pind, string hdl) */ PHP_FUNCTION(xml_set_external_entity_ref_handler) { xml_parser *parser; --- 1007,1016 ---- XML_SetNotationDeclHandler(parser->parser, php3i_xml_notationDeclHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_set_external_entity_ref_handler(int pind, string hdl) + Set up external entity reference handler */ PHP_FUNCTION(xml_set_external_entity_ref_handler) { xml_parser *parser; *************** *** 1030,1039 **** XML_SetExternalEntityRefHandler(parser->parser, php3i_xml_externalEntityRefHandler); RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_parse(int pind, string data[, int isFinal]) */ PHP_FUNCTION(xml_parse) { xml_parser *parser; --- 1030,1039 ---- XML_SetExternalEntityRefHandler(parser->parser, php3i_xml_externalEntityRefHandler); RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_parse(int pind, string data[, int isFinal]) + Start parsing an XML document */ PHP_FUNCTION(xml_parse) { xml_parser *parser; *************** *** 1061,1070 **** ret = XML_Parse(parser->parser, data->value.str.val, data->value.str.len, isFinal); RETVAL_LONG(ret); } - /* }}} */ - /* {{{ int xml_get_error_code(int pind) */ PHP_FUNCTION(xml_get_error_code) { xml_parser *parser; --- 1061,1070 ---- ret = XML_Parse(parser->parser, data->value.str.val, data->value.str.len, isFinal); RETVAL_LONG(ret); } /* }}} */ + /* {{{ proto int xml_get_error_code(int pind) + Get XML parser error code */ PHP_FUNCTION(xml_get_error_code) { xml_parser *parser; *************** *** 1081,1090 **** } RETVAL_LONG((long)XML_GetErrorCode(parser->parser)); } - /* }}} */ - /* {{{ string xml_error_string(int code) */ PHP_FUNCTION(xml_error_string) { pval *code; --- 1081,1090 ---- } RETVAL_LONG((long)XML_GetErrorCode(parser->parser)); } /* }}} */ + /* {{{ proto string xml_error_string(int code) + Get XML parser error string */ PHP_FUNCTION(xml_error_string) { pval *code; *************** *** 1100,1109 **** RETVAL_STRING(str, 1); } } - /* }}} */ - /* {{{ int xml_get_current_line_number(int pind) */ PHP_FUNCTION(xml_get_current_line_number) { xml_parser *parser; --- 1100,1109 ---- RETVAL_STRING(str, 1); } } /* }}} */ + /* {{{ proto int xml_get_current_line_number(int pind) + Get current line number for an XML parser */ PHP_FUNCTION(xml_get_current_line_number) { xml_parser *parser; *************** *** 1120,1129 **** } RETVAL_LONG(XML_GetCurrentLineNumber(parser->parser)); } - /* }}} */ - /* {{{ int xml_get_current_column_number(int pind) */ PHP_FUNCTION(xml_get_current_column_number) { xml_parser *parser; --- 1120,1130 ---- } RETVAL_LONG(XML_GetCurrentLineNumber(parser->parser)); } /* }}} */ + /* {{{ proto int xml_get_current_column_number(int pind) + Get current column number for an XML parser + */ PHP_FUNCTION(xml_get_current_column_number) { xml_parser *parser; *************** *** 1140,1149 **** } RETVAL_LONG(XML_GetCurrentColumnNumber(parser->parser)); } - /* }}} */ - /* {{{ int xml_get_current_byte_index(int pind) */ PHP_FUNCTION(xml_get_current_byte_index) { xml_parser *parser; --- 1141,1150 ---- } RETVAL_LONG(XML_GetCurrentColumnNumber(parser->parser)); } /* }}} */ + /* {{{ proto int xml_get_current_byte_index(int pind) + Get current byte index for an XML parser */ PHP_FUNCTION(xml_get_current_byte_index) { xml_parser *parser; *************** *** 1160,1169 **** } RETVAL_LONG(XML_GetCurrentByteIndex(parser->parser)); } - /* }}} */ - /* {{{ int xml_parser_free(int pind) */ PHP_FUNCTION(xml_parser_free) { pval *pind; --- 1161,1170 ---- } RETVAL_LONG(XML_GetCurrentByteIndex(parser->parser)); } /* }}} */ + /* {{{ proto int xml_parser_free(int pind) + Free an XML parser */ PHP_FUNCTION(xml_parser_free) { pval *pind; *************** *** 1178,1187 **** } RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_parser_set_option(int pind, int option, mixed value) */ PHP_FUNCTION(xml_parser_set_option) { xml_parser *parser; --- 1179,1188 ---- } RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_parser_set_option(int pind, int option, mixed value) + Set options in an XML parser */ PHP_FUNCTION(xml_parser_set_option) { xml_parser *parser; *************** *** 1220,1229 **** } RETVAL_TRUE; } - /* }}} */ - /* {{{ int xml_parser_get_option(int pind, int option) */ PHP_FUNCTION(xml_parser_get_option) { xml_parser *parser; --- 1221,1230 ---- } RETVAL_TRUE; } /* }}} */ + /* {{{ proto int xml_parser_get_option(int pind, int option) + Get options from an XML parser */ PHP_FUNCTION(xml_parser_get_option) { xml_parser *parser; *************** *** 1254,1263 **** } RETVAL_FALSE; } - /* }}} */ - /* {{{ string utf8_encode(string data) */ PHP_FUNCTION(utf8_encode) { pval *arg; --- 1255,1264 ---- } RETVAL_FALSE; } /* }}} */ + /* {{{ proto string utf8_encode(string data) + Encodes an ISO-8859-1 string to UTF-8 */ PHP_FUNCTION(utf8_encode) { pval *arg; *************** *** 1275,1284 **** } RETVAL_STRINGL(encoded, len, 0); } - /* }}} */ - /* {{{ string utf8_decode(string data) */ PHP_FUNCTION(utf8_decode) { pval *arg; --- 1276,1285 ---- } RETVAL_STRINGL(encoded, len, 0); } /* }}} */ + /* {{{ proto string utf8_decode(string data) + Converts a UTF-8 encoded string to ISO-8859-1 */ PHP_FUNCTION(utf8_decode) { pval *arg; *************** *** 1296,1302 **** } RETVAL_STRINGL(decoded, len, 0); } - /* }}} */ #endif --- 1297,1302 ---- -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3254) next »