summaryrefslogtreecommitdiff
path: root/src/sp_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_utils.h')
-rw-r--r--src/sp_utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_utils.h b/src/sp_utils.h
index 36caa52..1146db3 100644
--- a/src/sp_utils.h
+++ b/src/sp_utils.h
@@ -71,6 +71,11 @@ extern int sp_debug_stderr;
71#define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th") 71#define GET_SUFFIX(x) (x == 1) ? "st" : ((x == 2) ? "nd" : "th")
72 72
73const char *get_ipaddr(void); 73const char *get_ipaddr(void);
74#if defined __has_attribute
75# if __has_attribute (__format__)
76 __attribute__((__format__(printf, 4, 5)))
77# endif
78#endif
74void sp_log_msgf(char const* const restrict feature, int level, int type, char const* const restrict fmt, ...); 79void sp_log_msgf(char const* const restrict feature, int level, int type, char const* const restrict fmt, ...);
75int compute_hash(char const* const restrict filename, char *restrict file_hash); 80int compute_hash(char const* const restrict filename, char *restrict file_hash);
76const zend_string *sp_zval_to_zend_string(const zval *); 81const zend_string *sp_zval_to_zend_string(const zval *);