--- lib/configlib/config_load.c | 40 +++++++++++++++++++++++----------------- lib/util/queue.h | 25 ++++++++++++------------- 2 files changed, 35 insertions(+), 30 deletions(-)
diff --git a/lib/configlib/config_load.c b/lib/configlib/config_load.c index e4dddb3..7af9b8e 100644 --- a/lib/configlib/config_load.c +++ b/lib/configlib/config_load.c @@ -366,20 +366,25 @@ static bool get_value( /** Get all the values on a line. - @param head Context of the line. - @param tail Innermost file of the line's context, or NULL - if this line isn't from a file. - @param option_line Line where the the option started. - @param line_offset Input param for offset within the line before - the first value to parse. Output param for the - offset after the inter-word whitespace and - optional comment after the last value on the - line. On output, line[*line_offset] should be - one of: '\n', '\\', or '\0'. - @param values Input array of size *num_values (on input), - allocated to MAX_ARRAY_LENGTH. Output array of - size *num_values (on output). - @param num_values See param values above. + @param head + Context of the line. + @param tail + Innermost file of the line's context, or NULL if this line + isn't from a file. + @param option_line + Line where the the option started. + @param line_offset + Input param for offset within the line before the first value + to parse. Output param for the offset after the inter-word + whitespace and optional comment after the last value on the + line. On output, line[*line_offset] should be one of: '\n', + '\\', or '\0'. + @param values + Input array of size *num_values (on input), allocated to + MAX_ARRAY_LENGTH. Output array of size *num_values (on + output). + @param num_values + See param values above. @return True on success, false on error. */ static bool get_all_values( @@ -456,9 +461,10 @@ static bool get_all_values( @note config_option and config_value are pointers to individual structures, not arrays. - @param is_default True if this is being called on values from - the option's defaults, false if this is being - called on values from a config file. + @param is_default + True if this is being called on values from the option's + defaults, false if this is being called on values from a config + file. */ static bool convert_values( const struct config_context *context, diff --git a/lib/util/queue.h b/lib/util/queue.h index 2ae212d..277b65d 100644 --- a/lib/util/queue.h +++ b/lib/util/queue.h @@ -15,10 +15,10 @@ Queue *Queue_new( /** Free a Queue. - Notes: The queue must be empty or memory will be leaked. - Moreover, before calling Queue_free(), the caller must ensure - that each thread that holds a reference to this Queue has - completed all operations related to this Queue. + Notes: The queue must be empty or memory will be leaked. Moreover, + before calling Queue_free(), the caller must ensure that each + thread that holds a reference to this Queue has completed all + operations related to this Queue. */ void Queue_free( Queue * queue); @@ -39,11 +39,11 @@ bool Queue_trypop( @return Whether or not the push was successful. (It can fail if there isn't enough memory.) - @param data The data to put on the queue. This must be a - pointer to heap-allocated memory. The user is - responsible for freeing this memory; Queue - operations do not dereference or deallocate this - pointer. + @param data + The data to put on the queue. This must be a pointer to + heap-allocated memory. The user is responsible for freeing + this memory; Queue operations do not dereference or deallocate + this pointer. */ bool Queue_push( Queue * queue, @@ -53,10 +53,9 @@ bool Queue_push( Return the approximate size of the queue. The size returned is correct at some point during the time of execution. - In a multi-threaded environment, size > 0 does not guarantee - that Queue_trypop() will succeed. During single-threaded - operation (i.e. thread_safe = false), Queue_size is fully - reliable. + In a multi-threaded environment, size > 0 does not guarantee that + Queue_trypop() will succeed. During single-threaded operation + (i.e. thread_safe = false), Queue_size is fully reliable. */ size_t Queue_size( Queue * queue); -- 2.4.5 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ rpstir-devel mailing list rpstir-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpstir-devel