diff options
author | Felipe Pena <felipe@php.net> | 2008-08-12 17:20:25 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-08-12 17:20:25 +0000 |
commit | cf7384aa4015de9dd21a958146933bbf1f13f0a9 (patch) | |
tree | efbb0fd4c63087999c35433354bcaee2d5cb35bd /Zend/zend.c | |
parent | 05376077b31f6f884e3d6630124c21972a29687c (diff) | |
download | php-git-cf7384aa4015de9dd21a958146933bbf1f13f0a9.tar.gz |
- MFH: Constness (Added const qualifier to several function parameters)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 0e35dd40cc..c2cd2450e3 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -63,7 +63,7 @@ ZEND_API char *(*zend_resolve_path)(const char *filename, int filename_len TSRML void (*zend_on_timeout)(int seconds TSRMLS_DC); static void (*zend_message_dispatcher_p)(long message, void *data); -static int (*zend_get_configuration_directive_p)(char *name, uint name_length, zval *contents); +static int (*zend_get_configuration_directive_p)(const char *name, uint name_length, zval *contents); static ZEND_INI_MH(OnUpdateErrorReporting) /* {{{ */ { @@ -803,7 +803,7 @@ void zend_set_utility_values(zend_utility_values *utility_values) /* {{{ */ /* }}} */ /* this should be compatible with the standard zenderror */ -void zenderror(char *error) /* {{{ */ +void zenderror(const char *error) /* {{{ */ { zend_error(E_PARSE, "%s", error); } @@ -826,7 +826,7 @@ ZEND_API void _zend_bailout(char *filename, uint lineno) /* {{{ */ /* }}} */ END_EXTERN_C() -void zend_append_version_info(zend_extension *extension) /* {{{ */ +void zend_append_version_info(const zend_extension *extension) /* {{{ */ { char *new_info; uint new_info_length; @@ -958,7 +958,7 @@ ZEND_API void zend_message_dispatcher(long message, void *data) /* {{{ */ /* }}} */ END_EXTERN_C() -ZEND_API int zend_get_configuration_directive(char *name, uint name_length, zval *contents) /* {{{ */ +ZEND_API int zend_get_configuration_directive(const char *name, uint name_length, zval *contents) /* {{{ */ { if (zend_get_configuration_directive_p) { return zend_get_configuration_directive_p(name, name_length, contents); @@ -1148,7 +1148,7 @@ ZEND_API void zend_error(int type, const char *format, ...) /* {{{ */ void zend_error_noreturn(int type, const char *format, ...) __attribute__ ((alias("zend_error"),noreturn)); #endif -ZEND_API void zend_output_debug_string(zend_bool trigger_break, char *format, ...) /* {{{ */ +ZEND_API void zend_output_debug_string(zend_bool trigger_break, const char *format, ...) /* {{{ */ { #if ZEND_DEBUG va_list args; @@ -1245,7 +1245,7 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co #define COMPILED_STRING_DESCRIPTION_FORMAT "%s(%d) : %s" -ZEND_API char *zend_make_compiled_string_description(char *name TSRMLS_DC) /* {{{ */ +ZEND_API char *zend_make_compiled_string_description(const char *name TSRMLS_DC) /* {{{ */ { char *cur_filename; int cur_lineno; |