From fa40064f0851b988478b283be4663ade1cf7f7e0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 26 Oct 2017 13:39:33 +0200 Subject: Remove an arbitrary limitation --- src/sp_utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sp_utils.h') diff --git a/src/sp_utils.h b/src/sp_utils.h index 751b0b1..a17ac4f 100644 --- a/src/sp_utils.h +++ b/src/sp_utils.h @@ -51,6 +51,8 @@ #define sp_log_debug(...) #endif +#define GET_SUFFIX(x) (x==1)?"st":((x==2)?"nd":"th") + void sp_log_msg(char const *feature, char const *level, const char* fmt, ...); int compute_hash(const char *const filename, char *file_hash); char *sp_convert_to_string(zval *); -- cgit v1.3