| OLD | NEW |
| 1 /* Copyright (c) 2008, Google Inc. | 1 /* Copyright (c) 2008, 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 MallocHook_MunmapHook MallocHook_SetMunmapHook(MallocHook_MunmapHook hook); | 77 MallocHook_MunmapHook MallocHook_SetMunmapHook(MallocHook_MunmapHook hook); |
| 78 | 78 |
| 79 typedef void (*MallocHook_MremapHook)(const void* result, | 79 typedef void (*MallocHook_MremapHook)(const void* result, |
| 80 const void* old_addr, | 80 const void* old_addr, |
| 81 size_t old_size, | 81 size_t old_size, |
| 82 size_t new_size, | 82 size_t new_size, |
| 83 int flags, | 83 int flags, |
| 84 const void* new_addr); | 84 const void* new_addr); |
| 85 MallocHook_MremapHook MallocHook_SetMremapHook(MallocHook_MremapHook hook); | 85 MallocHook_MremapHook MallocHook_SetMremapHook(MallocHook_MremapHook hook); |
| 86 | 86 |
| 87 typedef void (*MallocHook_PreSbrkHook)(ptrdiff_t increment); | 87 typedef void (*MallocHook_PreSbrkHook)(std::ptrdiff_t increment); |
| 88 MallocHook_PreSbrkHook MallocHook_SetPreSbrkHook(MallocHook_PreSbrkHook hook); | 88 MallocHook_PreSbrkHook MallocHook_SetPreSbrkHook(MallocHook_PreSbrkHook hook); |
| 89 | 89 |
| 90 typedef void (*MallocHook_SbrkHook)(const void* result, ptrdiff_t increment); | 90 typedef void (*MallocHook_SbrkHook)(const void* result, std::ptrdiff_t increment
); |
| 91 MallocHook_SbrkHook MallocHook_SetSbrkHook(MallocHook_SbrkHook hook); | 91 MallocHook_SbrkHook MallocHook_SetSbrkHook(MallocHook_SbrkHook hook); |
| 92 | 92 |
| 93 #endif /* _MALLOC_HOOK_C_H_ */ | 93 #endif /* _MALLOC_HOOK_C_H_ */ |
| OLD | NEW |