diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-13 00:39:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-13 00:39:39 +0400 |
commit | 9892736206676c5b7fabc8d1184f9655511ff2dd (patch) | |
tree | 83562ac50c93fe3004959d35c1af4a5b380fdd97 /source/blender/blenlib/BLI_dynstr.h | |
parent | cffaa42d3a34c6b310c3c87c98e1f8313881e473 (diff) |
code cleanup: header cleanup and remove some duplicate defines.
Diffstat (limited to 'source/blender/blenlib/BLI_dynstr.h')
-rw-r--r-- | source/blender/blenlib/BLI_dynstr.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/source/blender/blenlib/BLI_dynstr.h b/source/blender/blenlib/BLI_dynstr.h index f2e62d6e6bd..3b7f2d6bbaf 100644 --- a/source/blender/blenlib/BLI_dynstr.h +++ b/source/blender/blenlib/BLI_dynstr.h @@ -42,23 +42,23 @@ struct DynStr; - /** The abstract DynStr type */ +/** The abstract DynStr type */ typedef struct DynStr DynStr; - /** - * Create a new DynStr. - * - * \return Pointer to a new DynStr. - */ -DynStr* BLI_dynstr_new (void); +/** + * Create a new DynStr. + * + * \return Pointer to a new DynStr. + */ +DynStr *BLI_dynstr_new(void); - /** - * Append a c-string to a DynStr. - * - * \param ds The DynStr to append to. - * \param cstr The c-string to append. - */ -void BLI_dynstr_append (DynStr *ds, const char *cstr); +/** + * Append a c-string to a DynStr. + * + * \param ds The DynStr to append to. + * \param cstr The c-string to append. + */ +void BLI_dynstr_append(DynStr *ds, const char *cstr); /** * Append a length clamped c-string to a DynStr. @@ -67,38 +67,38 @@ void BLI_dynstr_append (DynStr *ds, const char *cstr); * \param cstr The c-string to append. * \param len The maximum length of the c-string to copy. */ -void BLI_dynstr_nappend (DynStr *ds, const char *cstr, int len); +void BLI_dynstr_nappend(DynStr *ds, const char *cstr, int len); - /** - * Append a c-string to a DynStr, but with formatting like printf. - * - * \param ds The DynStr to append to. - * \param format The printf format string to use. - */ -void BLI_dynstr_appendf (DynStr *ds, const char *format, ...) +/** + * Append a c-string to a DynStr, but with formatting like printf. + * + * \param ds The DynStr to append to. + * \param format The printf format string to use. + */ +void BLI_dynstr_appendf(DynStr *ds, const char *format, ...) #ifdef __GNUC__ -__attribute__ ((format (printf, 2, 3))) +__attribute__ ((format(printf, 2, 3))) #endif ; -void BLI_dynstr_vappendf (DynStr *ds, const char *format, va_list args); +void BLI_dynstr_vappendf(DynStr *ds, const char *format, va_list args); - /** - * Find the length of a DynStr. - * - * \param ds The DynStr of interest. - * \return The length of \a ds. - */ -int BLI_dynstr_get_len (DynStr *ds); +/** + * Find the length of a DynStr. + * + * \param ds The DynStr of interest. + * \return The length of \a ds. + */ +int BLI_dynstr_get_len(DynStr *ds); - /** - * Get a DynStr's contents as a c-string. - * <i> The returned c-string should be freed - * using MEM_freeN. </i> - * - * \param ds The DynStr of interest. - * \return The contents of \a ds as a c-string. - */ -char* BLI_dynstr_get_cstring (DynStr *ds); +/** + * Get a DynStr's contents as a c-string. + * <i> The returned c-string should be freed + * using MEM_freeN. </i> + * + * \param ds The DynStr of interest. + * \return The contents of \a ds as a c-string. + */ +char *BLI_dynstr_get_cstring(DynStr *ds); /** * Get a DynStr's contents as a c-string. @@ -109,14 +109,14 @@ char* BLI_dynstr_get_cstring (DynStr *ds); * \param str The string to fill. * \return The contents of \a ds as a c-string. */ -void BLI_dynstr_get_cstring_ex (DynStr *ds, char *str); +void BLI_dynstr_get_cstring_ex(DynStr *ds, char *str); - /** - * Free the DynStr - * - * \param ds The DynStr to free. - */ -void BLI_dynstr_free (DynStr *ds); +/** + * Free the DynStr + * + * \param ds The DynStr to free. + */ +void BLI_dynstr_free(DynStr *ds); #endif |