| OLD | NEW |
| 1 /* Copyright (c) 2003, Google Inc. | 1 /* Copyright (c) 2003, Google Inc. |
| 2 * All rights reserved. | 2 * All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 PERFTOOLS_DLL_DECL void* tc_valloc(size_t __size) __THROW; | 82 PERFTOOLS_DLL_DECL void* tc_valloc(size_t __size) __THROW; |
| 83 PERFTOOLS_DLL_DECL void* tc_pvalloc(size_t __size) __THROW; | 83 PERFTOOLS_DLL_DECL void* tc_pvalloc(size_t __size) __THROW; |
| 84 | 84 |
| 85 PERFTOOLS_DLL_DECL void tc_malloc_stats(void) __THROW; | 85 PERFTOOLS_DLL_DECL void tc_malloc_stats(void) __THROW; |
| 86 PERFTOOLS_DLL_DECL int tc_mallopt(int cmd, int value) __THROW; | 86 PERFTOOLS_DLL_DECL int tc_mallopt(int cmd, int value) __THROW; |
| 87 #if @ac_cv_have_struct_mallinfo@ | 87 #if @ac_cv_have_struct_mallinfo@ |
| 88 PERFTOOLS_DLL_DECL struct mallinfo tc_mallinfo(void) __THROW; | 88 PERFTOOLS_DLL_DECL struct mallinfo tc_mallinfo(void) __THROW; |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 #ifdef __cplusplus | 91 #ifdef __cplusplus |
| 92 PERFTOOLS_DLL_DECL int tc_set_new_mode(int flag) __THROW; | |
| 93 PERFTOOLS_DLL_DECL void* tc_new(size_t size); | 92 PERFTOOLS_DLL_DECL void* tc_new(size_t size); |
| 94 PERFTOOLS_DLL_DECL void tc_delete(void* p) __THROW; | 93 PERFTOOLS_DLL_DECL void tc_delete(void* p) __THROW; |
| 95 PERFTOOLS_DLL_DECL void* tc_newarray(size_t size); | 94 PERFTOOLS_DLL_DECL void* tc_newarray(size_t size); |
| 96 PERFTOOLS_DLL_DECL void tc_deletearray(void* p) __THROW; | 95 PERFTOOLS_DLL_DECL void tc_deletearray(void* p) __THROW; |
| 97 | 96 |
| 98 PERFTOOLS_DLL_DECL void* tc_new_nothrow(size_t size, | 97 PERFTOOLS_DLL_DECL void* tc_new_nothrow(size_t size, |
| 99 const std::nothrow_t&) __THROW; | 98 const std::nothrow_t&) __THROW; |
| 100 PERFTOOLS_DLL_DECL void* tc_newarray_nothrow(size_t size, | 99 PERFTOOLS_DLL_DECL void* tc_newarray_nothrow(size_t size, |
| 101 const std::nothrow_t&) __THROW; | 100 const std::nothrow_t&) __THROW; |
| 102 PERFTOOLS_DLL_DECL void tc_delete_nothrow(void* p, | 101 PERFTOOLS_DLL_DECL void tc_delete_nothrow(void* p, |
| 103 const std::nothrow_t&) __THROW; | 102 const std::nothrow_t&) __THROW; |
| 104 PERFTOOLS_DLL_DECL void tc_deletearray_nothrow(void* p, | 103 PERFTOOLS_DLL_DECL void tc_deletearray_nothrow(void* p, |
| 105 const std::nothrow_t&) __THROW; | 104 const std::nothrow_t&) __THROW; |
| 106 } | 105 } |
| 107 #endif | 106 #endif |
| 108 | 107 |
| 109 #endif // #ifndef TCMALLOC_TCMALLOC_H_ | 108 #endif // #ifndef TCMALLOC_TCMALLOC_H_ |
| OLD | NEW |