You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by su...@apache.org on 2008/05/26 10:48:45 UTC
svn commit: r660127 - in /webservices/axis2/trunk/c/guththila: include/ src/
Author: supun
Date: Mon May 26 01:48:45 2008
New Revision: 660127
URL: http://svn.apache.org/viewvc?rev=660127&view=rev
Log:
Code formatting and documentation. AXIS2C-1137
Modified:
webservices/axis2/trunk/c/guththila/include/guththila_attribute.h
webservices/axis2/trunk/c/guththila/include/guththila_buffer.h
webservices/axis2/trunk/c/guththila/include/guththila_namespace.h
webservices/axis2/trunk/c/guththila/include/guththila_reader.h
webservices/axis2/trunk/c/guththila/include/guththila_stack.h
webservices/axis2/trunk/c/guththila/include/guththila_token.h
webservices/axis2/trunk/c/guththila/src/guththila_attribute.c
webservices/axis2/trunk/c/guththila/src/guththila_namespace.c
webservices/axis2/trunk/c/guththila/src/guththila_stack.c
webservices/axis2/trunk/c/guththila/src/guththila_token.c
Modified: webservices/axis2/trunk/c/guththila/include/guththila_attribute.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_attribute.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_attribute.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_attribute.h Mon May 26 01:48:45 2008
@@ -21,46 +21,35 @@
#include <guththila_defines.h>
#include <guththila_token.h>
#include <axutil_utils.h>
+
EXTERN_C_START()
+
#ifndef GUTHTHILA_ATTR_DEF_SIZE
#define GUTHTHILA_ATTR_DEF_SIZE 16
-#endif /* */
+#endif
+
+/* Representation of an attribute */
typedef struct guththila_attr_s
{
+ guththila_token_t *pref; /* Prefix */
+ guththila_token_t *name; /* Name */
+ guththila_token_t *val; /* Value */
+} guththila_attr_t;
- guththila_token_t *
- pref;
-
- guththila_token_t *
- name;
-
- guththila_token_t *
- val;
-
-}
-guththila_attr_t;
typedef struct guththila_attr_list_s
{
+ guththila_attr_t *list;
+ guththila_stack_t fr_stack;
+ int size;
+ int capacity;
+} guththila_attr_list_t;
- guththila_attr_t *
- list;
-
- guththila_stack_t
- fr_stack;
- int
- size;
- int
- capacity;
-
-}
-guththila_attr_list_t;
/**
* Create function of guththila_attr_list_t type structure
* @param env environment, MUST NOT be NULL.
* return new pointer to structure guththila_attr_list_s with initializing stack
* fr_stack
*/
-
guththila_attr_list_t *
GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env);
@@ -73,23 +62,22 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
int GUTHTHILA_CALL
guththila_attr_list_init(
guththila_attr_list_t * at_list,
const axutil_env_t * env);
+
/**
* @param at_list keeps the list of attributes in this structure using
* a guththila_stack_t variable
* @param env environment, MUST NOT be NULL.
* return the top value of the stack which is inside guththila_attr_list_t
*/
-
-
guththila_attr_t *
GUTHTHILA_CALL guththila_attr_list_get(guththila_attr_list_t * at_list,
const axutil_env_t * env);
+
/**
* This method push the given attribute in to the stack which is a
* member of guththila_attr_list_t
@@ -100,13 +88,12 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
-
int GUTHTHILA_CALL
guththila_attr_list_release(
guththila_attr_list_t * at_list,
guththila_attr_t * attr,
const axutil_env_t * env);
+
/**
* Free method for the stack which is inside guththila_attr_list_s
* structure, free the stack and other members
@@ -116,12 +103,11 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
-
void GUTHTHILA_CALL
msuila_attr_list_free_data(
guththila_attr_list_t * at_list,
const axutil_env_t * env);
+
/**
* Free method for guththila_attr_list_s structure,this free at_list too.
* @param at_list keeps the list of attributes in this structure using
@@ -131,8 +117,6 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
-
void GUTHTHILA_CALL
guththila_attr_list_free(
guththila_attr_list_t * at_list,
Modified: webservices/axis2/trunk/c/guththila/include/guththila_buffer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_buffer.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_buffer.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_buffer.h Mon May 26 01:48:45 2008
@@ -21,28 +21,27 @@
#include <guththila_defines.h>
#include <axutil_utils.h>
-
EXTERN_C_START()
+
typedef enum guththila_buffer_type
{
- GUTHTHILA_SINGLE_BUFFER = 0,
- GUTHTHILA_MULTIPLE_BUFFER
+ GUTHTHILA_SINGLE_BUFFER = 0, /* One buffer */
+ GUTHTHILA_MULTIPLE_BUFFER /* Mulitple buffers in a buff array */
} guththila_buffer_type_t;
typedef struct guththila_buffer_s
{
/* Required to manupulate multiple buffers */
- size_t *data_size;
- size_t *buffs_size;
- guththila_char_t **buff;
- int cur_buff;
- int cur_buff_pos;
- size_t pre_tot_data;
- unsigned int no_buffers;
- short type;
- guththila_char_t *xml;
-}
-guththila_buffer_t;
+ size_t *data_size; /* Array containing filled sizes of buffers */
+ size_t *buffs_size; /* Array containing actual sizes of buffers */
+ guththila_char_t **buff; /* Array of buffers */
+ int cur_buff; /* Current buffer */
+ int cur_buff_pos; /* Position of the current buffer */
+ size_t pre_tot_data; /* All the data in the previous buffers. Not include cur */
+ unsigned int no_buffers; /* No of buffers */
+ short type; /* Buffer type */
+ guththila_char_t *xml; /* All the buffers serialized together */
+} guththila_buffer_t;
#define GUTHTHILA_BUFFER_DEF_SIZE 16384
#define GUTHTHILA_BUFFER_NUMBER_OF_BUFFERS 16
@@ -80,7 +79,6 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
int GUTHTHILA_CALL
guththila_buffer_init(guththila_buffer_t * buffer,
int size,
@@ -93,10 +91,10 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
int GUTHTHILA_CALL
guththila_buffer_un_init(guththila_buffer_t * buffer,
const axutil_env_t * env);
+
/**
* This method creates a new buffer and copy the content of given
* data by buffer variable
@@ -107,8 +105,6 @@
* return status of op AXIS2_SUCCESS on success,
* AXIS2_FAILURE on error
*/
-
-
int GUTHTHILA_CALL
guththila_buffer_init_for_buffer(guththila_buffer_t * mu_buff,
guththila_char_t *buffer,
@@ -133,7 +129,6 @@
* @param env environment, MUST NOT be NULL.
* return xml element of guththila_buffer_s structure
*/
-
void *GUTHTHILA_CALL
guththila_buffer_get(guththila_buffer_t * buffer,
const axutil_env_t * env);
Modified: webservices/axis2/trunk/c/guththila/include/guththila_namespace.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_namespace.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_namespace.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_namespace.h Mon May 26 01:48:45 2008
@@ -25,24 +25,25 @@
#ifndef GUTHTHILA_NAMESPACE_DEF_SIZE
#define GUTHTHILA_NAMESPACE_DEF_SIZE 4
-#endif /* */
+#endif
typedef struct guththila_namespace_s
{
- guththila_token_t *name;
- guththila_token_t *uri;
+ guththila_token_t *name; /* Name */
+ guththila_token_t *uri; /* URI */
} guththila_namespace_t;
typedef struct guththila_namespace_list_s
{
- guththila_namespace_t *list;
+ guththila_namespace_t *list;
guththila_stack_t fr_stack;
int size;
int capacity;
} guththila_namespace_list_t;
-guththila_namespace_list_t *
-GUTHTHILA_CALL guththila_namespace_list_create(const axutil_env_t * env);
+guththila_namespace_list_t *GUTHTHILA_CALL
+guththila_namespace_list_create(
+ const axutil_env_t * env);
int GUTHTHILA_CALL
guththila_namespace_list_init(
@@ -50,7 +51,8 @@
const axutil_env_t * env);
guththila_namespace_t * GUTHTHILA_CALL
-guththila_namespace_list_get(guththila_namespace_list_t *at_list,
+guththila_namespace_list_get(
+ guththila_namespace_list_t *at_list,
const axutil_env_t * env);
int GUTHTHILA_CALL
@@ -70,5 +72,5 @@
const axutil_env_t * env);
EXTERN_C_END()
-#endif /* */
+#endif
Modified: webservices/axis2/trunk/c/guththila/include/guththila_reader.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_reader.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_reader.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_reader.h Mon May 26 01:48:45 2008
@@ -21,63 +21,95 @@
#include <stdio.h>
#include <guththila_defines.h>
#include <axutil_utils.h>
-EXTERN_C_START() typedef int(
- GUTHTHILA_CALL * GUTHTHILA_READ_INPUT_CALLBACK)(
+
+EXTERN_C_START()
+
+typedef int(GUTHTHILA_CALL * GUTHTHILA_READ_INPUT_CALLBACK)(
guththila_char_t *buffer,
int size,
void *ctx);
+
enum guththila_reader_type
{
- GUTHTHILA_FILE_READER =
- 1, GUTHTHILA_IO_READER, GUTHTHILA_MEMORY_READER
+ GUTHTHILA_FILE_READER = 1,
+ GUTHTHILA_IO_READER,
+ GUTHTHILA_MEMORY_READER
};
+
typedef struct guththila_reader_s
{
- int
- type;
-
- FILE *
- fp;
- guththila_char_t *
- buff;
- int
- buff_size;
-
- GUTHTHILA_READ_INPUT_CALLBACK
- input_read_callback;
- void *
- context;
-
-}
-guththila_reader_t;
+ int type; /* Type of reader */
+ FILE *fp; /* File pointer */
+ guththila_char_t *buff; /* Buffer */
+ int buff_size; /* Buff size */
+ GUTHTHILA_READ_INPUT_CALLBACK input_read_callback; /* Call back */
+ void *context; /* Context */
+} guththila_reader_t;
#ifndef GUTHTHILA_READER_SET_LAST_START
#define GUTHTHILA_READER_SET_LAST_START(_reader, _start) ((_reader)->start = _start)
-#endif /* */
+#endif
#ifndef GUTHTHILA_READER_STEP_BACK
#define GUTHTHILA_READER_STEP_BACK(_reader) ((_reader->next--))
-#endif /* */
+#endif
+
+/*
+ * Reading a file.
+ * @param filename name of the file
+ * @param env environment
+ */
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
guththila_reader_create_for_file(guththila_char_t *filename,
const axutil_env_t * env);
+
+/*
+ * Reading from a call back function.
+ * @param input_read_callback function pointer to read data
+ * @param ctx context
+ * @param env environment
+ */
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
guththila_reader_create_for_io(GUTHTHILA_READ_INPUT_CALLBACK
input_read_callback, void *ctx,
const axutil_env_t * env);
+
+/*
+ * Reading from memory buffer.
+ * @param buffer buffer
+ * @param size size of the buffer
+ * @param env environment
+ */
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
guththila_reader_create_for_memory(void *buffer,
int size,
const axutil_env_t * env);
+
+/*
+ * Read the specified number of character to the given buffer.
+ * @param r reader
+ * @param buffer buffer to place the read data
+ * @param offset position to place the data on the given buffer
+ * @param length number of bytes to read
+ * @param env environment
+ * @return number of bytes put in to the buffer. -1 if end of the read.
+ */
GUTHTHILA_EXPORT int GUTHTHILA_CALL guththila_reader_read(
guththila_reader_t * r,
guththila_char_t * buffer,
int offset,
int length,
const axutil_env_t * env);
+
+/*
+ * Free the reader.
+ * @param r reader
+ * @param env environment
+ */
GUTHTHILA_EXPORT void GUTHTHILA_CALL guththila_reader_free(
guththila_reader_t * r,
const axutil_env_t * env);
+
EXTERN_C_END()
#endif /* */
Modified: webservices/axis2/trunk/c/guththila/include/guththila_stack.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_stack.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_stack.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_stack.h Mon May 26 01:48:45 2008
@@ -24,70 +24,73 @@
#include <guththila_defines.h>
#include <axutil_utils.h>
#define GUTHTHILA_STACK_DEFAULT 16
-EXTERN_C_START() typedef struct guththila_stack_s
-{
- /* Number of Items in the stack */
- int
- top;
+EXTERN_C_START()
+typedef struct guththila_stack_s
+{
+ /* Number of Items in the stack */
+ int top;
/* Max number of Items that can be hold in data */
- int
- max;
- void **
- data;
-
-}
-guththila_stack_t;
+ int max;
+ void ** data;
+} guththila_stack_t;
#ifndef GUTHTHILA_STACK_SIZE
#define GUTHTHILA_STACK_SIZE(_stack) ((_stack).top)
-#endif /* */
+#endif
#ifndef GUTHTHILA_STACK_TOP_INDEX
#define GUTHTHILA_STACK_TOP_INDEX(_stack) (((_stack).top - 1))
-#endif /* */
+#endif
+
int GUTHTHILA_CALL
guththila_stack_init(
guththila_stack_t * stack,
const axutil_env_t * env);
+
void GUTHTHILA_CALL
guththila_stack_free(
guththila_stack_t * stack,
const axutil_env_t * env);
+
void GUTHTHILA_CALL
guththila_stack_un_init(
guththila_stack_t * stack,
const axutil_env_t * env);
-void *
-GUTHTHILA_CALL
+
+void * GUTHTHILA_CALL
guththila_stack_pop(
guththila_stack_t * stack,
const axutil_env_t * env);
+
int GUTHTHILA_CALL
guththila_stack_push(
guththila_stack_t * stack,
void *data,
const axutil_env_t * env);
-void *
-GUTHTHILA_CALL
+
+void * GUTHTHILA_CALL
guththila_stack_peek(
guththila_stack_t * stack,
const axutil_env_t * env);
-void *
-GUTHTHILA_CALL
+
+void * GUTHTHILA_CALL
guththila_stack_get_by_index(
guththila_stack_t * stack,
int index,
const axutil_env_t * env);
+
int GUTHTHILA_CALL
guththila_stack_del_top(
guththila_stack_t * stack,
const axutil_env_t * env);
+
int GUTHTHILA_CALL
guththila_stack_is_empty(
guththila_stack_t * stack,
const axutil_env_t * env);
+
EXTERN_C_END()
-#endif /* */
+#endif
Modified: webservices/axis2/trunk/c/guththila/include/guththila_token.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_token.h?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_token.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_token.h Mon May 26 01:48:45 2008
@@ -20,58 +20,50 @@
#include <guththila_defines.h>
#include <guththila_stack.h>
-EXTERN_C_START() typedef struct guththila_token_s
+
+EXTERN_C_START()
+
+typedef struct guththila_token_s
{
- short
- type;
- guththila_char_t *
- start;
- int
- _start;
-
- size_t
- size;
- int
- last;
- int
- ref;
-}
-guththila_token_t;
+ short type;
+ guththila_char_t *start;
+ int _start;
+ size_t size;
+ int last;
+ int ref;
+} guththila_token_t;
+
enum guththila_token_type
{
- _Unknown =
- 1, _name, _attribute_name, _attribute_value, _prefix,
- _char_data, _text_data
+ _Unknown = 1,
+ _name,
+ _attribute_name,
+ _attribute_value,
+ _prefix,
+ _char_data,
+ _text_data
};
+
typedef struct guththila_tok_list_s
{
-
- guththila_stack_t
- fr_stack;
-
- guththila_token_t **
- list;
- int
- no_list;
- int
- cur_list;
- int *
- capacity;
-
-}
-guththila_tok_list_t;
+ guththila_stack_t fr_stack;
+ guththila_token_t **list;
+ int no_list;
+ int cur_list;
+ int *capacity;
+} guththila_tok_list_t;
#ifndef GUTHTHILA_TOK_DEF_SIZE
#define GUTHTHILA_TOK_DEF_SIZE 16
-#endif /* */
+#endif
#ifndef GUTHTHILA_TOK_DEF_LIST_SIZE
#define GUTHTHILA_TOK_DEF_LIST_SIZE 16
-#endif /* */
+#endif
#ifndef GUTHTHILA_TOKEN_LEN
#define GUTHTHILA_TOKEN_LEN(tok) (tok->size)
-#endif /* */
+#endif
#ifndef GUTHTHILA_TOKEN_TO_STRING
#define GUTHTHILA_TOKEN_TO_STRING(tok, string, _env) \
@@ -80,43 +72,78 @@
memcpy(string, (tok)->start, GUTHTHILA_TOKEN_LEN(tok)); \
string[GUTHTHILA_TOKEN_LEN(tok)] = 0; \
}
-#endif /* */
+#endif
+/*
+ * Initialize token list.
+ */
int GUTHTHILA_CALL
guththila_tok_list_init(
guththila_tok_list_t * tok_list,
const axutil_env_t * env);
+
+/*
+ * Free the token list. Allocated tokens are not free.
+ */
void GUTHTHILA_CALL
guththila_tok_list_free(
guththila_tok_list_t * tok_list,
const axutil_env_t * env);
+
+/*
+ * Get a token from the list.
+ */
guththila_token_t *
-GUTHTHILA_CALL guththila_tok_list_get_token(guththila_tok_list_t * tok_list,
- const axutil_env_t * env);
+GUTHTHILA_CALL guththila_tok_list_get_token(
+ guththila_tok_list_t * tok_list,
+ const axutil_env_t * env);
+
+/*
+ * Release a token to the token list.
+ */
int GUTHTHILA_CALL
guththila_tok_list_release_token(
guththila_tok_list_t * tok_list,
guththila_token_t * token,
const axutil_env_t * env);
+
+/*
+ * Free the tokens in the token list.
+ */
void GUTHTHILA_CALL
guththila_tok_list_free_data(
guththila_tok_list_t * tok_list,
const axutil_env_t * env);
+
+/*
+ * Grow the token list.
+ */
int GUTHTHILA_CALL
guththila_tok_list_grow(
guththila_tok_list_t * tok_list,
const axutil_env_t * env);
+
+/*
+ * Compare a token with a string.
+ * Return 0 if match.
+ */
int GUTHTHILA_CALL
guththila_tok_str_cmp(
guththila_token_t * tok,
guththila_char_t *str,
size_t str_len,
const axutil_env_t * env);
+
+/*
+ * Compare two tokens for string equalance
+ * Return 0 if match.
+ */
int GUTHTHILA_CALL
guththila_tok_tok_cmp(
guththila_token_t * tok1,
guththila_token_t * tok2,
const axutil_env_t * env);
+
void GUTHTHILA_CALL
guththila_set_token(
guththila_token_t* tok,
@@ -127,8 +154,9 @@
int last,
int ref,
const axutil_env_t* env);
+
EXTERN_C_END()
-#endif /* */
+#endif
Modified: webservices/axis2/trunk/c/guththila/src/guththila_attribute.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_attribute.c?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_attribute.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_attribute.c Mon May 26 01:48:45 2008
@@ -61,7 +61,7 @@
at_list->list =(guththila_attr_t *) AXIS2_MALLOC(env->allocator,sizeof(guththila_attr_t) *GUTHTHILA_ATTR_DEF_SIZE);
if (at_list->list && guththila_stack_init(&at_list->fr_stack, env))
-{
+ {
at_list->capacity = GUTHTHILA_ATTR_DEF_SIZE;
at_list->size = 0;
for (i = 0; i < GUTHTHILA_ATTR_DEF_SIZE; i++)
Modified: webservices/axis2/trunk/c/guththila/src/guththila_namespace.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_namespace.c?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_namespace.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_namespace.c Mon May 26 01:48:45 2008
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
int GUTHTHILA_CALL
guththila_namespace_list_grow(guththila_namespace_list_t * namesp_list,int addition,const axutil_env_t * env)
{
Modified: webservices/axis2/trunk/c/guththila/src/guththila_stack.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_stack.c?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_stack.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_stack.c Mon May 26 01:48:45 2008
@@ -36,6 +36,7 @@
return GUTHTHILA_SUCCESS;
}
}
+
void GUTHTHILA_CALL
guththila_stack_free(
guththila_stack_t * stack,
@@ -45,6 +46,7 @@
AXIS2_FREE(env->allocator, stack->data);
AXIS2_FREE(env->allocator, stack);
}
+
void GUTHTHILA_CALL
guththila_stack_un_init(
guththila_stack_t * stack,
@@ -53,20 +55,19 @@
if (stack->data)
AXIS2_FREE(env->allocator, stack->data);
}
+
void *GUTHTHILA_CALL
guththila_stack_pop(
guththila_stack_t * stack,
const axutil_env_t * env)
{
if (stack->top > 0)
- {
-
-
- return stack->data[stack->top-- - 1];
-
+ {
+ return stack->data[stack->top-- - 1];
}
return NULL;
}
+
int GUTHTHILA_CALL
guththila_stack_push(
guththila_stack_t * stack,
@@ -94,6 +95,7 @@
stack->data[stack->top] = data;
return stack->top++;
}
+
void *GUTHTHILA_CALL
guththila_stack_peek(
guththila_stack_t * stack,
@@ -108,6 +110,7 @@
return NULL;
}
}
+
int GUTHTHILA_CALL
guththila_stack_del_top(
guththila_stack_t * stack,
@@ -120,6 +123,7 @@
}
return GUTHTHILA_FAILURE;
}
+
int GUTHTHILA_CALL
guththila_stack_is_empty(
guththila_stack_t * stack,
@@ -127,6 +131,7 @@
{
return stack->top == 0 ? 1 : 0;
}
+
void *GUTHTHILA_CALL
guththila_stack_get_by_index(
guththila_stack_t * stack,
Modified: webservices/axis2/trunk/c/guththila/src/guththila_token.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_token.c?rev=660127&r1=660126&r2=660127&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_token.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_token.c Mon May 26 01:48:45 2008
@@ -71,6 +71,7 @@
}
return GUTHTHILA_FAILURE;
}
+
int GUTHTHILA_CALL
guththila_tok_list_init(
guththila_tok_list_t * tok_list,
@@ -106,6 +107,7 @@
}
return GUTHTHILA_FAILURE;
}
+
void GUTHTHILA_CALL
guththila_tok_list_free(
guththila_tok_list_t * tok_list,
@@ -121,6 +123,7 @@
AXIS2_FREE(env->allocator,tok_list->capacity);
AXIS2_FREE(env->allocator, tok_list);
}
+
void GUTHTHILA_CALL
guththila_tok_list_free_data(
guththila_tok_list_t * tok_list,
@@ -135,6 +138,7 @@
AXIS2_FREE(env->allocator,tok_list->capacity);
AXIS2_FREE(env->allocator, tok_list->list);
}
+
guththila_token_t *GUTHTHILA_CALL
guththila_tok_list_get_token(guththila_tok_list_t * tok_list,
const axutil_env_t * env)
@@ -145,6 +149,7 @@
}
return NULL;
}
+
int GUTHTHILA_CALL
guththila_tok_list_release_token(
guththila_tok_list_t * tok_list,
@@ -153,6 +158,7 @@
{
return guththila_stack_push(&tok_list->fr_stack, token, env);
}
+
int GUTHTHILA_CALL
guththila_tok_str_cmp(
guththila_token_t * tok,
@@ -172,6 +178,7 @@
}
return 0;
}
+
int GUTHTHILA_CALL
guththila_tok_tok_cmp(
guththila_token_t * tok1,
@@ -195,6 +202,7 @@
}
return -1;
}
+
void GUTHTHILA_CALL
guththila_set_token(guththila_token_t* tok,
guththila_char_t* start,