- 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 295ba3c..ac58c1d 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 {