mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Mark error functions as "cold"
This commit is contained in:
parent
fd5e0dc3c6
commit
96ea4a0ac6
2 changed files with 14 additions and 14 deletions
12
main/php.h
12
main/php.h
|
@ -280,7 +280,7 @@ PHPAPI size_t php_write(void *buf, size_t size);
|
|||
PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1,
|
||||
2);
|
||||
PHPAPI int php_get_module_initialized(void);
|
||||
PHPAPI void php_log_err(char *log_message);
|
||||
PHPAPI ZEND_COLD void php_log_err(char *log_message);
|
||||
int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2);
|
||||
int cfgparse(void);
|
||||
END_EXTERN_C()
|
||||
|
@ -295,7 +295,7 @@ static inline ZEND_ATTRIBUTE_DEPRECATED void php_set_error_handling(error_handli
|
|||
}
|
||||
static inline ZEND_ATTRIBUTE_DEPRECATED void php_std_error_handling() {}
|
||||
|
||||
PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
|
||||
PHPAPI ZEND_COLD void php_verror(const char *docref, const char *params, int type, const char *format, va_list args) PHP_ATTRIBUTE_FORMAT(printf, 4, 0);
|
||||
|
||||
#ifdef ZTS
|
||||
#define PHP_ATTR_FMT_OFFSET 1
|
||||
|
@ -304,14 +304,14 @@ PHPAPI void php_verror(const char *docref, const char *params, int type, const c
|
|||
#endif
|
||||
|
||||
/* PHPAPI void php_error(int type, const char *format, ...); */
|
||||
PHPAPI void php_error_docref0(const char *docref, int type, const char *format, ...)
|
||||
PHPAPI ZEND_COLD void php_error_docref0(const char *docref, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 3, PHP_ATTR_FMT_OFFSET + 4);
|
||||
PHPAPI void php_error_docref1(const char *docref, const char *param1, int type, const char *format, ...)
|
||||
PHPAPI ZEND_COLD void php_error_docref1(const char *docref, const char *param1, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5);
|
||||
PHPAPI void php_error_docref2(const char *docref, const char *param1, const char *param2, int type, const char *format, ...)
|
||||
PHPAPI ZEND_COLD void php_error_docref2(const char *docref, const char *param1, const char *param2, int type, const char *format, ...)
|
||||
PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6);
|
||||
#ifdef PHP_WIN32
|
||||
PHPAPI void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2);
|
||||
PHPAPI ZEND_COLD void php_win32_docref2_from_error(DWORD error, const char *param1, const char *param2);
|
||||
#endif
|
||||
END_EXTERN_C()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue