antirez / antirez/linenoise

Proposal - How to implement a custom allocator for Linenoise library

Open
#268 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4.4k
Forks
741
PR merge metrics
No merged PRs in 30d

Description

Would a PR be considered that would convert from malloc -> _lmalloc, free -> _lfree etc and in linenoise.c something like:

#ifndef _lmalloc
#define _lmalloc malloc
#endif

#ifndef _lfree
#define _lfree free
#endif

I don't really like the naming convention, I'd probably look at how other libraries do a similar thing but you get the proposed idea.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.