piece-chain

Research & implementation of a Piece Chain
git clone git://src.gearsix.net/piece-chain.git
Log | Files | Refs | Atom | README

commit b13471343e63a9c034bde2a7d7f9476f07e28f42
parent 07c375538c76517bf86691133c563cc55388a3c9
Author: gearsix <gearsix@tuta.io>
Date:   Thu, 14 Jul 2022 01:39:57 +0100

buffer.h: added header guard & __cplusplus macros

Diffstat:
Mbuffer.h | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/buffer.h b/buffer.h @@ -1,5 +1,12 @@ /* A piece chain implementation. gearsix, 2022 */ +#ifndef ECBUF +#define ECBUF + +#ifdef __cplusplus +extern "C" { +#endif + #include <stdio.h> /* Points to a file (`f`), which contains a string which starts @@ -52,3 +59,9 @@ bufdel(Buffer *b, size_t pos, int num); /* writes all data in `b` to `f`. */ int bufout(Buffer *b, FILE *f); + +#ifdef __cplusplus +} +#endif + +#endif /* ECBUF */