Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/brotli/c/common/platform.c @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 /* Copyright 2016 Google Inc. All Rights Reserved. | |
| 2 | |
| 3 Distributed under MIT license. | |
| 4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | |
| 5 */ | |
| 6 | |
| 7 #include <stdlib.h> | |
| 8 | |
| 9 #include <brotli/types.h> | |
| 10 | |
| 11 #include "platform.h" | |
| 12 | |
| 13 /* Default brotli_alloc_func */ | |
| 14 void* BrotliDefaultAllocFunc(void* opaque, size_t size) { | |
| 15 BROTLI_UNUSED(opaque); | |
| 16 return malloc(size); | |
| 17 } | |
| 18 | |
| 19 /* Default brotli_free_func */ | |
| 20 void BrotliDefaultFreeFunc(void* opaque, void* address) { | |
| 21 BROTLI_UNUSED(opaque); | |
| 22 free(address); | |
| 23 } |
