(file) Return to string.cpp CVS log (file) (dir) Up to [OMI] / omi / micxx

Diff for /omi/micxx/string.cpp between version 1.2 and 1.3

version 1.2, 2015/04/20 18:10:13 version 1.3, 2015/04/20 18:19:53
Line 22 
Line 22 
 **============================================================================== **==============================================================================
 */ */
  
 #include "string.h"  #include "micxx_string.h"
 #include "memory.h" #include "memory.h"
  
 #include <assert.h> #include <assert.h>
 #include <new> #include <new>
   #include <pal/atomic.h>
 //////////////////////////////////////////// ////////////////////////////////////////////
 // Utility and base classes // Utility and base classes
 #include <common.h> #include <common.h>
Line 123 
Line 124 
         sizeof(Header) + capacity * sizeof(MI_Char));         sizeof(Header) + capacity * sizeof(MI_Char));
  
     chunk->m_capacity = capacity;     chunk->m_capacity = capacity;
     AtomicSet(chunk->m_refCounter, 0);      Atomic_Swap((ptrdiff_t*)&chunk->m_refCounter.__opaque, 0);
     chunk->m_size = 0;     chunk->m_size = 0;
  
     return reinterpret_cast<MI_Char*>(chunk + 1);     return reinterpret_cast<MI_Char*>(chunk + 1);


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

ViewCVS 0.9.2