| OLD | NEW | 
|---|
| 1 #include "runtime.h" | 1 #include "runtime.h" | 
| 2 #include "../intrusive_ptr.h" | 2 #include "../intrusive_ptr.h" | 
| 3 #include "../String.h" | 3 #include "../String.h" | 
| 4 | 4 | 
|  | 5 ABP_NS_USING | 
|  | 6 | 
| 5 extern "C" | 7 extern "C" | 
| 6 { | 8 { | 
| 7   void BINDINGS_EXPORTED InitString(DependentString* str, | 9   void BINDINGS_EXPORTED InitString(DependentString* str, | 
| 8       String::value_type* data, String::size_type len) | 10       String::value_type* data, String::size_type len) | 
| 9   { | 11   { | 
| 10     // String is already allocated on stack, we merely need to call | 12     // String is already allocated on stack, we merely need to call | 
| 11     // constructor. | 13     // constructor. | 
| 12     new (str) DependentString(data, len); | 14     new (str) DependentString(data, len); | 
| 13   } | 15   } | 
| 14 | 16 | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 36       const String& str) | 38       const String& str) | 
| 37   { | 39   { | 
| 38     return str.data(); | 40     return str.data(); | 
| 39   } | 41   } | 
| 40 | 42 | 
| 41   void BINDINGS_EXPORTED ReleaseRef(ref_counted* ptr) | 43   void BINDINGS_EXPORTED ReleaseRef(ref_counted* ptr) | 
| 42   { | 44   { | 
| 43     ptr->ReleaseRef(); | 45     ptr->ReleaseRef(); | 
| 44   } | 46   } | 
| 45 } | 47 } | 
| OLD | NEW | 
|---|