strbuf: clarify API boundary
strbuf, as a generic and widely used structure across the codebase, should be limited as a library to only interact with primitives. Add documentation so future functions can appropriately be placed. Older functions that do not follow this boundary should eventually be moved or refactored. Signed-off-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
fe86abd751
commit
4557779660
8
strbuf.h
8
strbuf.h
@ -1,6 +1,14 @@
|
|||||||
#ifndef STRBUF_H
|
#ifndef STRBUF_H
|
||||||
#define STRBUF_H
|
#define STRBUF_H
|
||||||
|
|
||||||
|
/*
|
||||||
|
* NOTE FOR STRBUF DEVELOPERS
|
||||||
|
*
|
||||||
|
* strbuf is a low-level primitive; as such it should interact only
|
||||||
|
* with other low-level primitives. Do not introduce new functions
|
||||||
|
* which interact with higher-level APIs.
|
||||||
|
*/
|
||||||
|
|
||||||
struct string_list;
|
struct string_list;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user