- improve struct layout
authorMichael Wallner <mike@php.net>
Wed, 12 Apr 2006 08:39:41 +0000 (08:39 +0000)
committerMichael Wallner <mike@php.net>
Wed, 12 Apr 2006 08:39:41 +0000 (08:39 +0000)
phpstr/phpstr.h

index 295ba3c1402c3f92388d83d6da97a51b6c052d9a..ac58c1d320f95c974080a693a24dfbce75a2561d 100644 (file)
        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 {