You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/01/04 05:54:57 UTC
svn commit: r492409 -
/webservices/axis2/trunk/c/util/include/axis2_array_list.h
Author: samisa
Date: Wed Jan 3 20:54:55 2007
New Revision: 492409
URL: http://svn.apache.org/viewvc?view=rev&rev=492409
Log:
Fixed formatting
Modified:
webservices/axis2/trunk/c/util/include/axis2_array_list.h
Modified: webservices/axis2/trunk/c/util/include/axis2_array_list.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_array_list.h?view=diff&rev=492409&r1=492408&r2=492409
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_array_list.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_array_list.h Wed Jan 3 20:54:55 2007
@@ -46,18 +46,18 @@
/**
* Array List ops struct
*/
- typedef struct axis2_array_list_ops
+ typedef struct axis2_array_list_ops
{
/**
* Guarantees that this list will have at least enough capacity to
* hold min_capacity elements. This implementation will grow the list to
* max(current * 2, min_capacity)
* @param array_list pointer to array_list
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @param min_capacity the minimum guaranteed capacity
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
+ axis2_status_t(AXIS2_CALL *
ensure_capacity)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -66,10 +66,10 @@
/**
* Returns the number of elements in this list.
* @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @return the list size
*/
- int (AXIS2_CALL *
+ int(AXIS2_CALL *
size)(
struct axis2_array_list *array_list,
const axis2_env_t *env);
@@ -77,10 +77,10 @@
/**
* Checks if the list is empty.
* @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @return true if there are no elements, else false
*/
- axis2_bool_t (AXIS2_CALL *
+ axis2_bool_t(AXIS2_CALL *
is_empty)(
struct axis2_array_list *array_list,
const axis2_env_t *env);
@@ -88,11 +88,11 @@
/**
* Returns true iff element is in this array_list.
* @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param env pointer to environment struct
* @param e the element whose inclusion in the List is being tested
* @return true if the list contains e
*/
- axis2_bool_t (AXIS2_CALL *
+ axis2_bool_t(AXIS2_CALL *
contains)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -102,12 +102,12 @@
* Returns the lowest index at which element appears in this List, or
* -1 if it does not appear. This looks for the pointer value equality only,
* does not look into pointer content
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param e the element whose inclusion in the List is being tested
* @return the index where e was found
*/
- int (AXIS2_CALL *
+ int(AXIS2_CALL *
index_of)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -117,12 +117,12 @@
* Returns the highest index at which element appears in this List, or
* -1 if it does not appear. This looks for the pointer value equality only,
* does not look into pointer content
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param e the element whose inclusion in the List is being tested
* @return the index where e was found
*/
- int (AXIS2_CALL *
+ int(AXIS2_CALL *
last_index_of)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -131,68 +131,68 @@
/**
* Returns a void* array containing all of the elements in this array_list.
* The array is not independent of this list.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @return array of elements in this list
*/
- void** (AXIS2_CALL *
+ void**(AXIS2_CALL *
to_array)(
struct axis2_array_list *array_list,
const axis2_env_t *env);
/**
* Retrieves the element at the user-supplied index.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index of the element we are fetching
* @return element at the given index
*/
- void* (AXIS2_CALL *
+ void*(AXIS2_CALL *
get)(struct axis2_array_list *array_list,
- const axis2_env_t *env,
- int index);
+ const axis2_env_t *env,
+ int index);
/**
* Sets the element at the specified index. The new element, e,
* can be an object of any type or null.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index at which the element is being set
* @param e the element to be set
* @return the element previously at the specified index
*/
- void* (AXIS2_CALL *
+ void*(AXIS2_CALL *
set)(
- struct axis2_array_list *array_list,
- const axis2_env_t *env,
- int index,
- void* e);
+ struct axis2_array_list *array_list,
+ const axis2_env_t *env,
+ int index,
+ void* e);
/**
* Appends the supplied element to the end of this list.
* The element, e, can be a pointer of any type or NULL.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param e the element to be appended to this list
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
+ axis2_status_t(AXIS2_CALL *
add)(
- struct axis2_array_list *array_list,
- const axis2_env_t *env,
- const void* e);
+ struct axis2_array_list *array_list,
+ const axis2_env_t *env,
+ const void* e);
/**
* Adds the supplied element at the specified index, shifting all
* elements currently at that index or higher one to the right.
* The element, e, can be a pointer of any type or NULL.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index at which the element is being added
* @param e the item being added
* @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
*/
- axis2_status_t (AXIS2_CALL *
+ axis2_status_t(AXIS2_CALL *
add_at)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -201,24 +201,24 @@
/**
* Removes the element at the user-supplied index.
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index of the element to be removed
* @return the removed void* pointer
*/
- void* (AXIS2_CALL *
+ void*(AXIS2_CALL *
remove)(struct axis2_array_list *array_list,
- const axis2_env_t *env,
- int index);
+ const axis2_env_t *env,
+ int index);
/**
* Checks that the index is in the range of possible elements (inclusive).
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index to check
* @return AXIS2_FALSE if index > size or index < 0, else AXIS2_TRUE
*/
- axis2_bool_t (AXIS2_CALL *
+ axis2_bool_t(AXIS2_CALL *
check_bound_inclusive)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
@@ -226,23 +226,23 @@
/**
* Checks that the index is in the range of existing elements (exclusive).
- * @param array_list pointer to array list
- * @param env pointer to environment struct
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
* @param index the index to check
* @return AXIS2_FALSE if index >= size or index < 0, else AXIS2_TRUE
*/
- axis2_bool_t (AXIS2_CALL *
+ axis2_bool_t(AXIS2_CALL *
check_bound_exclusive)(
struct axis2_array_list *array_list,
const axis2_env_t *env,
int index);
- /**
- * @param array_list pointer to array list
- * @param env pointer to environment struct
- * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
- */
- axis2_status_t (AXIS2_CALL *
+ /**
+ * @param array_list pointer to array list
+ * @param env pointer to environment struct
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ axis2_status_t(AXIS2_CALL *
free)(
struct axis2_array_list *array_list,
const axis2_env_t *env);
@@ -268,7 +268,7 @@
* @param capacity initial capacity of this array_list
*/
AXIS2_EXTERN axis2_array_list_t* AXIS2_CALL axis2_array_list_create(
- const axis2_env_t *env,
+ const axis2_env_t *env,
int capacity);
/**
@@ -281,67 +281,67 @@
void *array_list,
const axis2_env_t *env);
-/** Frees the axis2 array list.
- @sa axis2_array_list_ops#free */
+ /** Frees the axis2 array list.
+ @sa axis2_array_list_ops#free */
#define AXIS2_ARRAY_LIST_FREE(array_list, env) \
((array_list)->ops->free(array_list, env))
-/** Size.
- @sa axis2_array_list_ops#size */
+ /** Size.
+ @sa axis2_array_list_ops#size */
#define AXIS2_ARRAY_LIST_SIZE(array_list, env) \
((array_list)->ops->size(array_list, env))
-/** Is empty.
- @sa axis2_array_list_ops#is_empty */
+ /** Is empty.
+ @sa axis2_array_list_ops#is_empty */
#define AXIS2_ARRAY_LIST_IS_EMPTY(array_list, env) \
((array_list)->ops->is_empty(array_list, env))
-/** Contains.
- @sa axis2_array_list_ops#contains */
+ /** Contains.
+ @sa axis2_array_list_ops#contains */
#define AXIS2_ARRAY_LIST_CONTAINS(array_list, env, e) \
((array_list)->ops->contains(array_list, env, e))
-/** Index of.
- @sa axis2_array_list_ops#index_of */
+ /** Index of.
+ @sa axis2_array_list_ops#index_of */
#define AXIS2_ARRAY_LIST_INDEX_OF(array_list, env, e) \
((array_list)->ops->index_of(array_list, env, e))
-/** Last index of.
- @sa axis2_array_list_ops#last_index_of */
+ /** Last index of.
+ @sa axis2_array_list_ops#last_index_of */
#define AXIS2_ARRAY_LIST_LAST_INDEX_OF(array_list, env, e) \
((array_list)->ops->last_index_of(array_list, env, e))
-/** To array.
- @sa axis2_array_list_ops#to_array */
+ /** To array.
+ @sa axis2_array_list_ops#to_array */
#define AXIS2_ARRAY_LIST_TO_ARRAY(array_list, env) \
((array_list)->ops->index_of(array_list, env))
-/** Get.
- @sa axis2_array_list_ops#get */
+ /** Get.
+ @sa axis2_array_list_ops#get */
#define AXIS2_ARRAY_LIST_GET(array_list, env, index) \
((array_list)->ops->get(array_list, env, index))
-/** Set.
- @sa axis2_array_list_ops#set */
+ /** Set.
+ @sa axis2_array_list_ops#set */
#define AXIS2_ARRAY_LIST_SET(array_list, env, index, e) \
((array_list)->ops->set(array_list, env, index, e))
-/** Add.
- @sa axis2_array_list_ops#add */
+ /** Add.
+ @sa axis2_array_list_ops#add */
#define AXIS2_ARRAY_LIST_ADD(array_list, env, e) \
((array_list)->ops->add(array_list, env, e))
-/** Add at.
- @sa axis2_array_list_ops#add_at */
+ /** Add at.
+ @sa axis2_array_list_ops#add_at */
#define AXIS2_ARRAY_LIST_ADD_AT(array_list, env, index, e) \
((array_list)->ops->add_at(array_list, env, index, e))
-/** Remove.
- @sa axis2_array_list_ops#remove */
+ /** Remove.
+ @sa axis2_array_list_ops#remove */
#define AXIS2_ARRAY_LIST_REMOVE(array_list, env, index) \
((array_list)->ops->remove(array_list, env, index))
-/** @} */
+ /** @} */
#ifdef __cplusplus
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org