X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_buffer.h;h=faf8992107675be7b39f744fc0ae069f9326a410;hp=cf9b45863b7af0f2752680be22a9c21b51257bf3;hb=refs%2Fheads%2Fv2.2.x;hpb=eaa046dc3e6496e523a17c3b786ef27067b9795c diff --git a/php_http_buffer.h b/php_http_buffer.h index cf9b458..faf8992 100644 --- a/php_http_buffer.h +++ b/php_http_buffer.h @@ -21,19 +21,19 @@ #define PHP_HTTP_BUFFER_NOMEM PHP_HTTP_BUFFER_ERROR #define PHP_HTTP_BUFFER_PASS0 PHP_HTTP_BUFFER_ERROR -#ifndef STR_FREE -# define STR_FREE(STR) \ +#ifndef PTR_FREE +# define PTR_FREE(PTR) \ { \ - if (STR) { \ - efree(STR); \ + if (PTR) { \ + efree(PTR); \ } \ } #endif -#ifndef STR_SET -# define STR_SET(STR, SET) \ +#ifndef PTR_SET +# define PTR_SET(PTR, SET) \ { \ - STR_FREE(STR); \ - STR = SET; \ + PTR_FREE(PTR); \ + PTR = SET; \ } #endif #ifndef TSRMLS_D