diff --git a/gap_buffer.c b/gap_buffer.c index b2dac82..efa5ee1 100644 --- a/gap_buffer.c +++ b/gap_buffer.c @@ -27,8 +27,11 @@ struct GapBuffer { ** Notes: ** - This information isn't very useful to the owner ** of the gap instance. It's only really used while -** testing. It may be good to make it private to the -** testing routine somehow. +** testing. +** +** - This isn't declared in the header file, so +** if a program wants to use this function it need +** to specify its prototype explicitly. */ size_t GapBuffer_getByteCount(GapBuffer *buff) { diff --git a/gap_buffer.h b/gap_buffer.h index 4317ff5..af5331b 100644 --- a/gap_buffer.h +++ b/gap_buffer.h @@ -27,7 +27,6 @@ void GapBuffer_moveRelative(GapBuffer *buff, int off); void GapBuffer_moveAbsolute(GapBuffer *buff, size_t num); void GapBuffer_removeForwards(GapBuffer *buff, size_t num); void GapBuffer_removeBackwards(GapBuffer *buff, size_t num); -size_t GapBuffer_getByteCount(GapBuffer *buff); void GapBufferIter_init(GapBufferIter *iter, GapBuffer *buff); void GapBufferIter_free(GapBufferIter *iter); bool GapBufferIter_next(GapBufferIter *iter, GapBufferLine *line);