Changeset 7ea1b3a
- Timestamp:
- Apr 27, 2016, 4:06:50 PM (8 years ago)
- Branches:
- string
- Children:
- 8243cf9
- Parents:
- 41ec71c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/strings/src/internal/VbyteSM.h
r41ec71c r7ea1b3a 26 26 27 27 //######################### VbyteHeap ######################### 28 29 28 struct VbyteHeap 30 29 { 31 HandleNode_t Header;32 33 30 int NoOfCompactions; 34 31 int NoOfExtensions; … … 40 37 char_t* EndVbyte; 41 38 void* ExtVbyte; 39 40 HandleNode_t Header; 42 41 }; 43 42 … … 50 49 void reduce(VbyteHeap* const this, int); 51 50 51 //######################### HandleNode ######################### 52 52 static inline ctor(HandleNode_t* const this) 53 53 { … … 68 68 DeleteNode(this); 69 69 } 70 71 //######################### VbyteHeap ######################### 72 static inline ctor(VbyteHeap* const this, int size) 73 { 74 this->NoOfCompactions = 0; 75 this->NoOfExtensions = 0; 76 this->NoOfReductions = 0; 77 78 this->InitSize = size; 79 this->CurrSize = size; 80 81 #warning missing malloc 82 this->StartVbyte = 0; 83 this->EndVbyte = this->StartVbyte; 84 this->ExtVbyte = (void*)( this->StartVbyte + this->CurrSize ); 85 86 ctor(&this->Header); 87 this->Header.next = &this->Header; 88 this->Header.previous = &this->Header; 89 } 90 91 static inline dtor(VbyteHeap* const this) 92 { 93 free(this->StartVbyte); 94 }
Note: See TracChangeset
for help on using the changeset viewer.