summaryrefslogtreecommitdiff
path: root/ext/intl/collator/collator_error.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-08-11 19:48:00 +0000
committerFelipe Pena <felipe@php.net>2008-08-11 19:48:00 +0000
commiteb1837d9de56547f76459397a930f2e812547448 (patch)
tree0c8be24ca5b3bd7fd3735fc30cb6529351c2ff2b /ext/intl/collator/collator_error.c
parent6d083e2c39aa15f9740d041ca007ae2f86d2f10f (diff)
downloadphp-git-eb1837d9de56547f76459397a930f2e812547448.tar.gz
MFH:
- Added arginfo - Fixed WS - Changed C++ comments to C comments
Diffstat (limited to 'ext/intl/collator/collator_error.c')
-rwxr-xr-xext/intl/collator/collator_error.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/intl/collator/collator_error.c b/ext/intl/collator/collator_error.c
index 55e366ccba..c4e41250a2 100755
--- a/ext/intl/collator/collator_error.c
+++ b/ext/intl/collator/collator_error.c
@@ -32,7 +32,7 @@ PHP_FUNCTION( collator_get_error_code )
{
COLLATOR_METHOD_INIT_VARS
- // Parse parameters.
+ /* Parse parameters. */
if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
&object, Collator_ce_ptr ) == FAILURE )
{
@@ -42,12 +42,12 @@ PHP_FUNCTION( collator_get_error_code )
RETURN_FALSE;
}
- // Fetch the object (without resetting its last error code).
+ /* Fetch the object (without resetting its last error code). */
co = (Collator_object *) zend_object_store_get_object(object TSRMLS_CC);
if( co == NULL )
RETURN_FALSE;
- // Return collator's last error code.
+ /* Return collator's last error code. */
RETURN_LONG( COLLATOR_ERROR_CODE( co ) );
}
/* }}} */
@@ -63,7 +63,7 @@ PHP_FUNCTION( collator_get_error_message )
COLLATOR_METHOD_INIT_VARS
- // Parse parameters.
+ /* Parse parameters. */
if( zend_parse_method_parameters( ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O",
&object, Collator_ce_ptr ) == FAILURE )
{
@@ -73,12 +73,12 @@ PHP_FUNCTION( collator_get_error_message )
RETURN_FALSE;
}
- // Fetch the object (without resetting its last error code).
+ /* Fetch the object (without resetting its last error code). */
co = (Collator_object *) zend_object_store_get_object( object TSRMLS_CC );
if( co == NULL )
RETURN_FALSE;
- // Return last error message.
+ /* Return last error message. */
message = intl_error_get_message( COLLATOR_ERROR_P( co ) TSRMLS_CC );
RETURN_STRING( (char*)message, FALSE );
}