mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
common/buf: rename buf->buf to buf->data
This commit is contained in:
parent
fccc6a2922
commit
a8f98cb90b
10 changed files with 33 additions and 33 deletions
|
|
@ -13,9 +13,9 @@ struct buf {
|
|||
* Pointer to underlying string buffer. If alloc != 0, then
|
||||
* this was allocated via malloc().
|
||||
*/
|
||||
char *buf;
|
||||
char *data;
|
||||
/**
|
||||
* Allocated length of buf. If zero, buf was not allocated
|
||||
* Allocated length of buf. If zero, data was not allocated
|
||||
* (either NULL or literal empty string).
|
||||
*/
|
||||
int alloc;
|
||||
|
|
@ -28,7 +28,7 @@ struct buf {
|
|||
};
|
||||
|
||||
/** Value used to initialize a struct buf to an empty string */
|
||||
#define BUF_INIT ((struct buf){.buf = ""})
|
||||
#define BUF_INIT ((struct buf){.data = ""})
|
||||
|
||||
/**
|
||||
* buf_expand_tilde - expand ~ in buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue