summaryrefslogtreecommitdiff
path: root/ext/intl/intl_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/intl_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/intl_error.c')
-rwxr-xr-xext/intl/intl_error.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/intl_error.c b/ext/intl/intl_error.c
index 7c1df8e17a..93cfe004ea 100755
--- a/ext/intl/intl_error.c
+++ b/ext/intl/intl_error.c
@@ -106,13 +106,13 @@ void intl_error_set_custom_msg( intl_error* err, char* msg, int copyMsg TSRMLS_D
if( !err && !( err = intl_g_error_get( TSRMLS_C ) ) )
return;
- // Free previous message if any
+ /* Free previous message if any */
intl_free_custom_error_msg( err TSRMLS_CC );
- // Mark message copied if any
+ /* Mark message copied if any */
err->free_custom_error_message = copyMsg;
- // Set user's error text message
+ /* Set user's error text message */
err->custom_error_message = copyMsg ? estrdup( msg ) : msg;
}
/* }}} */
@@ -130,7 +130,7 @@ char* intl_error_get_message( intl_error* err TSRMLS_DC )
uErrorName = u_errorName( err->code );
- // Format output string
+ /* Format output string */
if( err->custom_error_message )
{
spprintf( &errMessage, 0, "%s: %s", err->custom_error_message, uErrorName );