diff options
author | Timothy Arceri <[email protected]> | 2017-02-24 15:34:51 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-02-25 13:30:28 +1100 |
commit | 6b4bb24acfeec4d224acdffb73a5f5d810291a02 (patch) | |
tree | 594d11d122fea8cab5409eb1da8c27d9b7ea1578 /src/compiler/glsl | |
parent | fcf466383ae281cc35dd5df4e6af9e4e0d811d33 (diff) |
compiler: style clean-ups in blob.h
Reviewed-by: Elie Tournier <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/blob.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/compiler/glsl/blob.h b/src/compiler/glsl/blob.h index 81b9917afcf..21fa43dad37 100644 --- a/src/compiler/glsl/blob.h +++ b/src/compiler/glsl/blob.h @@ -78,7 +78,7 @@ struct blob_reader { * \return The new blob, (or NULL in case of allocation failure). */ struct blob * -blob_create (void *mem_ctx); +blob_create(void *mem_ctx); /** * Add some unstructured, fixed-size data to a blob. @@ -86,7 +86,7 @@ blob_create (void *mem_ctx); * \return True unless allocation failed. */ bool -blob_write_bytes (struct blob *blob, const void *bytes, size_t to_write); +blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write); /** * Reserve space in \blob for a number of bytes. @@ -107,7 +107,7 @@ blob_write_bytes (struct blob *blob, const void *bytes, size_t to_write); * can be written, (or NULL in case of any allocation error). */ uint8_t * -blob_reserve_bytes (struct blob *blob, size_t to_write); +blob_reserve_bytes(struct blob *blob, size_t to_write); /** * Overwrite some data previously written to the blob. @@ -122,10 +122,10 @@ blob_reserve_bytes (struct blob *blob, size_t to_write); * the current blob's size. */ bool -blob_overwrite_bytes (struct blob *blob, - size_t offset, - const void *bytes, - size_t to_write); +blob_overwrite_bytes(struct blob *blob, + size_t offset, + const void *bytes, + size_t to_write); /** * Add a uint32_t to a blob. @@ -138,7 +138,7 @@ blob_overwrite_bytes (struct blob *blob, * \return True unless allocation failed. */ bool -blob_write_uint32 (struct blob *blob, uint32_t value); +blob_write_uint32(struct blob *blob, uint32_t value); /** * Overwrite a uint32_t previously written to the blob. @@ -161,9 +161,9 @@ blob_write_uint32 (struct blob *blob, uint32_t value); * the current blob's size. */ bool -blob_overwrite_uint32 (struct blob *blob, - size_t offset, - uint32_t value); +blob_overwrite_uint32(struct blob *blob, + size_t offset, + uint32_t value); /** * Add a uint64_t to a blob. @@ -176,7 +176,7 @@ blob_overwrite_uint32 (struct blob *blob, * \return True unless allocation failed. */ bool -blob_write_uint64 (struct blob *blob, uint64_t value); +blob_write_uint64(struct blob *blob, uint64_t value); /** * Add an intptr_t to a blob. @@ -189,7 +189,7 @@ blob_write_uint64 (struct blob *blob, uint64_t value); * \return True unless allocation failed. */ bool -blob_write_intptr (struct blob *blob, intptr_t value); +blob_write_intptr(struct blob *blob, intptr_t value); /** * Add a NULL-terminated string to a blob, (including the NULL terminator). @@ -197,7 +197,7 @@ blob_write_intptr (struct blob *blob, intptr_t value); * \return True unless allocation failed. */ bool -blob_write_string (struct blob *blob, const char *str); +blob_write_string(struct blob *blob, const char *str); /** * Start reading a blob, (initializing the contents of \blob for reading). @@ -211,7 +211,7 @@ blob_write_string (struct blob *blob, const char *str); * current value is unchanged before and after the call. */ void -blob_reader_init (struct blob_reader *blob, uint8_t *data, size_t size); +blob_reader_init(struct blob_reader *blob, uint8_t *data, size_t size); /** * Read some unstructured, fixed-size data from the current location, (and @@ -224,14 +224,14 @@ blob_reader_init (struct blob_reader *blob, uint8_t *data, size_t size); * \return The bytes read (see note above about memory lifetime). */ void * -blob_read_bytes (struct blob_reader *blob, size_t size); +blob_read_bytes(struct blob_reader *blob, size_t size); /** * Read some unstructured, fixed-size data from the current location, copying * it to \dest (and update the current location to just past this data) */ void -blob_copy_bytes (struct blob_reader *blob, uint8_t *dest, size_t size); +blob_copy_bytes(struct blob_reader *blob, uint8_t *dest, size_t size); /** * Read a uint32_t from the current location, (and update the current location @@ -243,7 +243,7 @@ blob_copy_bytes (struct blob_reader *blob, uint8_t *dest, size_t size); * \return The uint32_t read */ uint32_t -blob_read_uint32 (struct blob_reader *blob); +blob_read_uint32(struct blob_reader *blob); /** * Read a uint64_t from the current location, (and update the current location @@ -255,7 +255,7 @@ blob_read_uint32 (struct blob_reader *blob); * \return The uint64_t read */ uint64_t -blob_read_uint64 (struct blob_reader *blob); +blob_read_uint64(struct blob_reader *blob); /** * Read an intptr_t value from the current location, (and update the @@ -267,7 +267,7 @@ blob_read_uint64 (struct blob_reader *blob); * \return The intptr_t read */ intptr_t -blob_read_intptr (struct blob_reader *blob); +blob_read_intptr(struct blob_reader *blob); /** * Read a NULL-terminated string from the current location, (and update the @@ -282,7 +282,7 @@ blob_read_intptr (struct blob_reader *blob); * NULL. */ char * -blob_read_string (struct blob_reader *blob); +blob_read_string(struct blob_reader *blob); #ifdef __cplusplus } |