Skip to content

Commit

Permalink
📝 explicitly mention C11 as the minimum standard
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdd committed Jul 5, 2024
1 parent a046368 commit 835d789
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
![license](https://img.shields.io/github/license/linkdd/larena?style=flat-square&color=blue)
![version](https://img.shields.io/github/v/release/linkdd/larena?style=flat-square&color=red)

This project is a C/C++ header only library providing an Arena implementation.
This project is a C11 header only library providing an Arena implementation.

## Installation

Expand Down
6 changes: 3 additions & 3 deletions include/larena.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ static void *stdlib_alloc(size_t size, void *ctx) {
return malloc(size);
}

static void *stdlib_realloc(void *ptr, size_t old_size, size_t new_size, void *ctx) {
(void)old_size;
static void *stdlib_realloc(void *ptr, size_t oldsz, size_t newsz, void *ctx) {
(void)oldsz;
(void)ctx;
return realloc(ptr, new_size);
return realloc(ptr, newsz);
}

static void stdlib_dealloc(void *ptr, size_t size, void *ctx) {
Expand Down

0 comments on commit 835d789

Please sign in to comment.