diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/buffer.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | gdb-users/simark/clang-format.zip gdb-users/simark/clang-format.tar.gz gdb-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/buffer.h')
-rw-r--r-- | gdbsupport/buffer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdbsupport/buffer.h b/gdbsupport/buffer.h index 7323c3a..f9d11b3 100644 --- a/gdbsupport/buffer.h +++ b/gdbsupport/buffer.h @@ -24,7 +24,7 @@ struct buffer { char *buffer; size_t buffer_size; /* allocated size */ - size_t used_size; /* actually used size */ + size_t used_size; /* actually used size */ }; /* Append DATA of size SIZE to the end of BUFFER. Grows the buffer to @@ -49,7 +49,7 @@ void buffer_init (struct buffer *buffer); /* Return a pointer into BUFFER data, effectively transferring ownership of the buffer memory to the caller. Calling buffer_free afterwards has no effect on the returned data. */ -char* buffer_finish (struct buffer *buffer); +char *buffer_finish (struct buffer *buffer); /* Simple printf to buffer function. Current implemented formatters: %s - grow an xml escaped text in BUFFER. @@ -60,9 +60,9 @@ char* buffer_finish (struct buffer *buffer); void buffer_xml_printf (struct buffer *buffer, const char *format, ...) ATTRIBUTE_PRINTF (2, 3); -#define buffer_grow_str(BUFFER,STRING) \ +#define buffer_grow_str(BUFFER, STRING) \ buffer_grow (BUFFER, STRING, strlen (STRING)) -#define buffer_grow_str0(BUFFER,STRING) \ +#define buffer_grow_str0(BUFFER, STRING) \ buffer_grow (BUFFER, STRING, strlen (STRING) + 1) #endif /* COMMON_BUFFER_H */ |