You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 satır
342B

  1. /*
  2. * This file is a part of SMalloc.
  3. * SMalloc is MIT licensed.
  4. * Copyright (c) 2017 Andrey Rys.
  5. */
  6. #include "smalloc_i.h"
  7. void *sm_realloc_pool(struct smalloc_pool *spool, void *p, size_t n)
  8. {
  9. return sm_realloc_pool_i(spool, p, n, 0);
  10. }
  11. void *sm_realloc(void *p, size_t n)
  12. {
  13. return sm_realloc_pool_i(&smalloc_curr_pool, p, n, 0);
  14. }