| OLD | NEW |
| 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef PLATFORMS_STM_DISCO_FLETCH_SRC_CMPCTMALLOC_H_ | 5 #ifndef PLATFORMS_STM_DISCO_DARTINO_SRC_CMPCTMALLOC_H_ |
| 6 #define PLATFORMS_STM_DISCO_FLETCH_SRC_CMPCTMALLOC_H_ | 6 #define PLATFORMS_STM_DISCO_DARTINO_SRC_CMPCTMALLOC_H_ |
| 7 | 7 |
| 8 #ifdef __cplusplus | 8 #ifdef __cplusplus |
| 9 extern "C" { | 9 extern "C" { |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include <stddef.h> | 12 #include <stddef.h> |
| 13 | 13 |
| 14 void *cmpct_alloc(size_t size); | 14 void *cmpct_alloc(size_t size); |
| 15 void *cmpct_realloc(void *ptr, size_t size); | 15 void *cmpct_realloc(void *ptr, size_t size); |
| 16 void cmpct_free(void *ptr); | 16 void cmpct_free(void *ptr); |
| 17 void *cmpct_memalign(size_t size, size_t alignment); | 17 void *cmpct_memalign(size_t size, size_t alignment); |
| 18 | 18 |
| 19 void cmpct_init(void); | 19 void cmpct_init(void); |
| 20 void cmpct_dump(void); | 20 void cmpct_dump(void); |
| 21 void cmpct_test(void); | 21 void cmpct_test(void); |
| 22 void cmpct_trim(void); | 22 void cmpct_trim(void); |
| 23 | 23 |
| 24 #ifdef __cplusplus | 24 #ifdef __cplusplus |
| 25 } | 25 } |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #endif // PLATFORMS_STM_DISCO_FLETCH_SRC_CMPCTMALLOC_H_ | 28 #endif // PLATFORMS_STM_DISCO_DARTINO_SRC_CMPCTMALLOC_H_ |
| OLD | NEW |