// bump.h --- bump allocator -*- C -*- // // Copyright (c) 2026 Martin Michalec // // SPDX-License-Identifier: MIT // // This file is part of COSMOS Codebase. // // Commentary: // // HOLD(cmmm): add direct bump API. // // Code: #ifndef INCLUDED_COSMOS_BUMP_H #define INCLUDED_COSMOS_BUMP_H #include "buf.h" struct bump { struct buf buf; //!< Backing memory buffer. }; #ifndef BUMP_NO_FEAT_GPA #include "gpa.h" void *gpa_fun_bump (void *ctx, void *ptr, usz old_sz, usz new_sz, usz align); struct gpa gpa_from_bump (struct bump *); #endif // BUMP_NO_FEAT_GPA #endif // INCLUDED_COSMOS_BUMP_H // bump.h ends here