X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=d08a2a9bb35807c1bafb8f103d0b7e88849feab9;hp=b7327b44807124805d716a4848a637dbf8ef78c1;hb=2253ca28b6a5699a8e2d62a0458ced3cb7a3107a;hpb=fb4cc3c3eda3bb4dd15ec99a4f372ccfd78b7473 diff --git a/php_http_api.h b/php_http_api.h index b7327b4..d08a2a9 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -20,7 +20,12 @@ #include "php_http_std_defs.h" -char *pretty_key(char *key, size_t key_len, zend_bool uctitle, zend_bool xhyphen); +#define pretty_key(key, key_len, uctitle, xhyphen) _http_pretty_key(key, key_len, uctitle, xhyphen) +extern char *_http_pretty_key(char *key, size_t key_len, zend_bool uctitle, zend_bool xhyphen); + +#define http_error(type, code, string) _http_error_ex(type, code, "%s", string) +#define http_error_ex _http_error_ex +extern void _http_error_ex(long type, long code, const char *format, ...); #define HTTP_GSC(var, name, ret) HTTP_GSP(var, name, return ret) #define HTTP_GSP(var, name, ret) \