|
From: | Yuan Fu |
Subject: | Re: How to add pseudo vector types |
Date: | Sat, 24 Jul 2021 13:14:50 -0400 |
If we link against libtree-sitter, how do we change its malloc behavior? Tree-sitter has these kind of things: #ifndef ts_malloc #define ts_malloc ts_malloc_default #endif So I assume we need to define ts_malloc to, say, xmalloc when compiling libtree-sitter. And if we only link to it, we can’t redefine ts_malloc. Yuan |
[Prev in Thread] | Current Thread | [Next in Thread] |