]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffer: Introduce b_sub(), b_add(), and bo_add()
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 28 Jun 2018 17:17:38 +0000 (19:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:39 +0000 (16:23 +0200)
commit09138ecc49ceafa51194ea9fab1ceccfbb7249c3
treebf5dc9e7e9035289922ee1f6357697db1424231f
parentbbc68df330ba9760607ba31d46bf45b43190fad5
MINOR: buffer: Introduce b_sub(), b_add(), and bo_add()

Instead of doing b->i -= directly, introduce b_sub(), that does the job, to
make it easier to switch to the future API.

Also add b_add(), that increases b->i, instead of using it directly, and
bo_add(), that does increase b->o.
include/common/buf.h