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 la...@apache.org on 2008/04/01 07:55:07 UTC

svn commit: r643287 - in /webservices/axis2/trunk/c/guththila: include/guththila_stack.h include/guththila_token.h src/guththila_buffer.c src/guththila_stack.c src/guththila_token.c src/guththila_xml_parser.c

Author: lahiru
Date: Mon Mar 31 22:54:57 2008
New Revision: 643287

URL: http://svn.apache.org/viewvc?rev=643287&view=rev
Log:
removed the some commented code inside guththila.
removed methods which are not using.

Modified:
    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_buffer.c
    webservices/axis2/trunk/c/guththila/src/guththila_stack.c
    webservices/axis2/trunk/c/guththila/src/guththila_token.c
    webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c

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=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_stack.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_stack.h Mon Mar 31 22:54:57 2008
@@ -47,8 +47,6 @@
 #ifndef GUTHTHILA_STACK_TOP_INDEX
 #define GUTHTHILA_STACK_TOP_INDEX(_stack) (((_stack).top - 1))
 #endif  /*  */
-guththila_stack_t *
-GUTHTHILA_CALL guththila_stack_create(const axutil_env_t * env);
 int GUTHTHILA_CALL
 guththila_stack_init(
     guththila_stack_t * stack,

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=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_token.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_token.h Mon Mar 31 22:54:57 2008
@@ -82,8 +82,6 @@
     }
 #endif  /*  */
 
-guththila_tok_list_t *
-GUTHTHILA_CALL guththila_tok_list_create(const axutil_env_t * env);
 int GUTHTHILA_CALL
 guththila_tok_list_init(
     guththila_tok_list_t * tok_list,

Modified: webservices/axis2/trunk/c/guththila/src/guththila_buffer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_buffer.c?rev=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_buffer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_buffer.c Mon Mar 31 22:54:57 2008
@@ -49,9 +49,8 @@
     
     if (buffer->type == GUTHTHILA_SINGLE_BUFFER && buffer->buff && buffer->cur_buff == 0)
     {
-            /*This is commented. because the ownership of the buffer is with the user.  */ 
+
             
-            /*if (buffer->buff[0]) AXIS2_FREE(env->allocator, buffer->buff[0]); */ 
         if (buffer->buffs_size)
             AXIS2_FREE(env->allocator, buffer->buffs_size);
         if (buffer->data_size)

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=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_stack.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_stack.c Mon Mar 31 22:54:57 2008
@@ -16,31 +16,7 @@
  * limitations under the License.
  */  
 #include <guththila_stack.h>
-    guththila_stack_t *
-    GUTHTHILA_CALL guththila_stack_create(const axutil_env_t * env) 
-{
-    guththila_stack_t * stack = NULL;
-    stack =
-        (guththila_stack_t *) AXIS2_MALLOC(env->allocator,
-                                           sizeof(guththila_stack_t));
-    if (!stack)
-        return NULL;
-    stack->data = NULL;
-    stack->data =
-        (void **) AXIS2_MALLOC(env->allocator,
-                               sizeof(void **) * GUTHTHILA_STACK_DEFAULT);
-    if (!stack->data)
-    {
-        AXIS2_FREE(env->allocator, stack);
-        return NULL;
-    }
-    else
-    {
-        stack->max = GUTHTHILA_STACK_DEFAULT;
-        stack->top = 0;
-        return stack;
-    }
-}
+
 int GUTHTHILA_CALL
 guththila_stack_init(
     guththila_stack_t * stack,
@@ -102,7 +78,6 @@
     if (stack->top >= stack->max)
     {
         
-            /*stack->data = (void **) realloc(stack->data, sizeof(void **) * (stack->max += GUTHTHILA_STACK_DEFAULT)); */ 
             temp =
             (void **) AXIS2_MALLOC(env->allocator,
                                    sizeof(void **) * (stack->max +=

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=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_token.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_token.c Mon Mar 31 22:54:57 2008
@@ -26,44 +26,6 @@
 #define TOK_LIST_SIZE(tok_list) (tok_list->size)
 
 
-        guththila_tok_list_t *
-        GUTHTHILA_CALL guththila_tok_list_create(const axutil_env_t * env) 
-    {
-        int i = 0;
-        guththila_tok_list_t * tok_list =
-            (guththila_tok_list_t *) AXIS2_MALLOC(env->allocator,
-                                                  sizeof(guththila_tok_list_t));
-        if (!tok_list)
-            return NULL;
-        tok_list->list =
-            (guththila_token_t **) AXIS2_MALLOC(env->allocator,
-                                                sizeof(guththila_token_t *) *
-                                                GUTHTHILA_TOK_DEF_LIST_SIZE);
-        if (tok_list->list && guththila_stack_init(&tok_list->fr_stack, env))
-        {
-            tok_list->capacity =
-                (int *) AXIS2_MALLOC(env->allocator,
-                                     sizeof(int) * GUTHTHILA_TOK_DEF_LIST_SIZE);
-            if (tok_list->capacity)
-            {
-                tok_list->no_list = GUTHTHILA_TOK_DEF_LIST_SIZE;
-                tok_list->list[0] =
-		  (guththila_token_t *) AXIS2_MALLOC(env->allocator,
-                              sizeof(guththila_token_t)*GUTHTHILA_TOK_DEF_SIZE);
-                for (i = 0; i < GUTHTHILA_TOK_DEF_SIZE; i++)
-                {
-                    guththila_stack_push(&tok_list->fr_stack,
-                                          &tok_list->list[0][i], env);
-                }
-                tok_list->capacity[0] = GUTHTHILA_TOK_DEF_SIZE;
-                tok_list->cur_list = 0;
-                tok_list->no_list = GUTHTHILA_TOK_DEF_LIST_SIZE;
-                return tok_list;
-            }
-        }
-        AXIS2_FREE(env->allocator, tok_list);
-        return NULL;
-    }
 int GUTHTHILA_CALL
 guththila_tok_list_grow(
     guththila_tok_list_t * tok_list,

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c?rev=643287&r1=643286&r2=643287&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c Mon Mar 31 22:54:57 2008
@@ -152,14 +152,6 @@
     guththila_stack_init(&m->namesp, env);
     temp_name = guththila_tok_list_get_token(&m->tokens,env);
     temp_tok = guththila_tok_list_get_token(&m->tokens,env);
-/*
-    temp_name = guththila_token_create(GUTHTHILA_XML_NAME,0,(int)strlen(GUTHTHILA_XML_NAME),
-                                       1,0,0,env);
-  
-    temp_tok = guththila_token_create(GUTHTHILA_XML_URI,0,(int)strlen(GUTHTHILA_XML_URI),
-                                      1,0,0,env);
-  
-*/
     if(temp_tok && temp_name)
     {
         guththila_set_token(temp_name,GUTHTHILA_XML_NAME,0,(int)strlen(GUTHTHILA_XML_NAME),



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org