From: Michael Wallner Date: Wed, 12 Apr 2006 08:39:41 +0000 (+0000) Subject: - improve struct layout X-Git-Tag: RELEASE_1_0_0RC3~5 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8164d4e998a79ef48c50f118adffca5c33799875;p=m6w6%2Fext-http - improve struct layout --- diff --git a/phpstr/phpstr.h b/phpstr/phpstr.h index 295ba3c..ac58c1d 100644 --- a/phpstr/phpstr.h +++ b/phpstr/phpstr.h @@ -69,11 +69,12 @@ FREE_PHPSTR((free), (STR)); typedef struct _phpstr_t { - size_t size; char *data; size_t used; size_t free; - int pmem; + size_t size; + unsigned pmem:1; + unsigned reserved:31; } phpstr; typedef enum _phpstr_free_t {