| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/include/nacl_platform.h" | 7 #include "native_client/src/include/nacl_platform.h" |
| 8 #include "native_client/src/trusted/plugin/string_encoding.h" | 8 #include "native_client/src/trusted/plugin/string_encoding.h" |
| 9 | 9 |
| 10 | 10 |
| 11 namespace plugin { | 11 namespace plugin { |
| 12 | 12 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 *dest_ptr = 0; | 91 *dest_ptr = 0; |
| 92 *result = output; | 92 *result = output; |
| 93 *result_byte_count = dest_ptr - output; | 93 *result_byte_count = dest_ptr - output; |
| 94 return true; | 94 return true; |
| 95 fail: | 95 fail: |
| 96 free(output); | 96 free(output); |
| 97 return false; | 97 return false; |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace plugin | 100 } // namespace plugin |
| OLD | NEW |