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/10/04 04:18:09 UTC

svn commit: r581761 [1/3] - in /webservices/axis2/trunk/c/guththila: include/ src/

Author: samisa
Date: Wed Oct  3 19:18:08 2007
New Revision: 581761

URL: http://svn.apache.org/viewvc?rev=581761&view=rev
Log:
Fixed the build breaks caused by my formatting commit done earlier this week

Modified:
    webservices/axis2/trunk/c/guththila/include/guththila.h
    webservices/axis2/trunk/c/guththila/include/guththila_attribute.h
    webservices/axis2/trunk/c/guththila/include/guththila_error.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_buffer.c
    webservices/axis2/trunk/c/guththila/src/guththila_namespace.c
    webservices/axis2/trunk/c/guththila/src/guththila_reader.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
    webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c

Modified: webservices/axis2/trunk/c/guththila/include/guththila.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila.h?rev=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila.h Wed Oct  3 19:18:08 2007
@@ -1,124 +1,124 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_H
-#define GUTHTHILA_H
-
-#include <guththila_defines.h>
-#include <guththila_token.h>
-#include <guththila_reader.h>
-#include <guththila_xml_writer.h>
-#include <guththila_attribute.h>
-#include <guththila_namespace.h>
-#include <guththila_buffer.h>
-#include <guththila_stack.h>
-#include <guththila_error.h>
-
-#include <axutil_utils.h>
-
-/*
-All the functions in this library does not check weather the given arguments are NULL.
-It is the responsblity of the user to check weather the arguments contain NULL values.
-*/
-
EXTERN_C_START() 
 
enum guththila_status
-{
-    S_0 = 0, 
S_1, 
S_2, 
S_3
-};
-

enum guththila_UTF16_endianess
-{
-    None = 1, LE, BE };
-

typedef enum guththila_type
-{
-    type_file_name =
-        0, 
type_memory_buffer, 
type_reader, 
type_io
-} guththila_type_t;
-

enum guththila_event_types
-{
-    GUTHTHILA_START_DOCUMENT =
-        0, 
GUTHTHILA_END_ELEMENT, 
GUTHTHILA_CHARACTER,
-    
GUTHTHILA_ENTITY_REFERANCE, 
GUTHTHILA_COMMENT,
-    
GUTHTHILA_SPACE, 
GUTHTHILA_START_ELEMENT,
-    
GUTHTHILA_EMPTY_ELEMENT,
-};
-

typedef struct guththila_s
-{
-
-    guththila_tok_list_t
-    tokens;
-
-    guththila_buffer_t
-    buffer;
-    
-    guththila_reader_t *
-    reader;
-
-    guththila_token_t *
-    prefix;
-
-    guththila_token_t *
-    name;
-
-    guththila_token_t *
-    value;
-    
-    guththila_stack_t
-    elem;
-
-    guththila_stack_t
-    attrib;
-
-    guththila_stack_t
-    namesp;
-    

int
-    is_whitespace;
-    
int
-    is_char;
-    
int
-    unicode_state;
-    
int
-    status;
-    
int
-    guththila_event;
-    
int
-    next;
-    
int
-    last_start;
-
-    guththila_token_t *
-    temp_prefix;
-
-    guththila_token_t *
-    temp_name;
-
-    guththila_token_t *
-    temp_tok;
-    
-}
-guththila_t;
-

typedef struct guththila_elem_namesp_s
-{
-
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_H
+#define GUTHTHILA_H
+
+#include <guththila_defines.h>
+#include <guththila_token.h>
+#include <guththila_reader.h>
+#include <guththila_xml_writer.h>
+#include <guththila_attribute.h>
+#include <guththila_namespace.h>
+#include <guththila_buffer.h>
+#include <guththila_stack.h>
+#include <guththila_error.h>
+
+#include <axutil_utils.h>
+
+/*
+All the functions in this library does not check weather the given arguments are NULL.
+It is the responsblity of the user to check weather the arguments contain NULL values.
+*/
+
EXTERN_C_START() 
 
enum guththila_status
+{
+    S_0 = 0, 
S_1, 
S_2, 
S_3
+};
+

enum guththila_UTF16_endianess
+{
+    None = 1, LE, BE };
+

typedef enum guththila_type
+{
+    type_file_name =
+        0, 
type_memory_buffer, 
type_reader, 
type_io
+} guththila_type_t;
+

enum guththila_event_types
+{
+    GUTHTHILA_START_DOCUMENT =
+        0, 
GUTHTHILA_END_ELEMENT, 
GUTHTHILA_CHARACTER,
+    
GUTHTHILA_ENTITY_REFERANCE, 
GUTHTHILA_COMMENT,
+    
GUTHTHILA_SPACE, 
GUTHTHILA_START_ELEMENT,
+    
GUTHTHILA_EMPTY_ELEMENT,
+};
+

typedef struct guththila_s
+{
+
+    guththila_tok_list_t
+    tokens;
+
+    guththila_buffer_t
+    buffer;
+    
+    guththila_reader_t *
+    reader;
+
+    guththila_token_t *
+    prefix;
+
+    guththila_token_t *
+    name;
+
+    guththila_token_t *
+    value;
+    
+    guththila_stack_t
+    elem;
+
+    guththila_stack_t
+    attrib;
+
+    guththila_stack_t
+    namesp;
+    

int
+    is_whitespace;
+    
int
+    is_char;
+    
int
+    unicode_state;
+    
int
+    status;
+    
int
+    guththila_event;
+    
int
+    next;
+    
int
+    last_start;
+
+    guththila_token_t *
+    temp_prefix;
+
+    guththila_token_t *
+    temp_name;
+
+    guththila_token_t *
+    temp_tok;
+    
+}
+guththila_t;
+

typedef struct guththila_elem_namesp_s
+{
+
     guththila_namespace_t *
     namesp;
     
int
     no;
     
int
     size;
-    
+    
 }
 guththila_elem_namesp_t;
 

typedef struct guththila_element_s
@@ -131,7 +131,7 @@
     prefix;
     
int
     is_namesp;
-    
+    
 }
 guththila_element_t;
 


GUTHTHILA_EXPORT int GUTHTHILA_CALL
@@ -157,7 +157,7 @@
         
const char *msg,
         
guththila_error_level level,
         
void *locator);
-
+
 
 /*
 Public functions for reading XML documents
@@ -250,5 +250,5 @@
     guththila_t * m,
     guththila_error_func,
     const axutil_env_t * env);
-

EXTERN_C_END() 
+

EXTERN_C_END() 
 #endif  /* 
 */

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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_attribute.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_attribute.h Wed Oct  3 19:18:08 2007
@@ -1,69 +1,69 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_ATTRIBUTE_H
-#define GUTHTHILA_ATTRIBUTE_H
-
-#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  /* 
 */
-
typedef struct guththila_attr_s
-{
-
-    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_list_t *
-GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env);
-
int GUTHTHILA_CALL
-guththila_attr_list_init(
-    guththila_attr_list_t * at_list,
-    const axutil_env_t * env);
-
guththila_attr_t *
-GUTHTHILA_CALL guththila_attr_list_get(guththila_attr_list_t * at_list,
-        const axutil_env_t * env);
-
int GUTHTHILA_CALL
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_ATTRIBUTE_H
+#define GUTHTHILA_ATTRIBUTE_H
+
+#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  /* 
 */
+
typedef struct guththila_attr_s
+{
+
+    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_list_t *
+GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env);
+
int GUTHTHILA_CALL
+guththila_attr_list_init(
+    guththila_attr_list_t * at_list,
+    const axutil_env_t * env);
+
guththila_attr_t *
+GUTHTHILA_CALL guththila_attr_list_get(guththila_attr_list_t * at_list,
+        const axutil_env_t * env);
+
int GUTHTHILA_CALL
 guththila_attr_list_release(
     guththila_attr_list_t * at_list,
     guththila_attr_t * attr,
@@ -76,6 +76,6 @@
 guththila_attr_list_free(
     guththila_attr_list_t * at_list,
     const axutil_env_t * env);
-

EXTERN_C_END() 
+

EXTERN_C_END() 
 #endif  /* 
 */
 

Modified: webservices/axis2/trunk/c/guththila/include/guththila_error.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_error.h?rev=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_error.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_error.h Wed Oct  3 19:18:08 2007
@@ -1,53 +1,53 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#include <guththila_defines.h>
-
-#ifndef GUTHTHILA_ERROR_H
-#define GUTHTHILA_ERROR_H
-
EXTERN_C_START() 
 
typedef enum guththila_error_l
-{
-    GUTHTHILA_VALIDITY_ERROR,
-    GUTHTHILA_VALIDITY_WARNING,
-    GUTHTHILA_PARSER_ERROR,
-    GUTHTHILA_PARSER_WARNING,
-} guththila_error_level;
-

enum guththila_error_codes
-{
-    GUTHTHILA_ERROR_NONE =
-        0, 
GUTHTHILA_ERROR_NO_MEMORY,
-    
GUTHTHILA_ERROR_INVALID_NULL_PARAMETER,
-    
GUTHTHILA_ERROR_INVALID_ITERATOR_STATE,
-    
GUTHTHILA_ERROR_INVALID_NODE_TYPE,
-    
GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT,
-    
GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM,
-    
GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NOT_DECLARED,
-    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_element_t_GUTHTHILA_stack_t_EMPTY,
-    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE,
-    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT,
-    
GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL,
-    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA,
-    
GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL,
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include <guththila_defines.h>
+
+#ifndef GUTHTHILA_ERROR_H
+#define GUTHTHILA_ERROR_H
+
EXTERN_C_START() 
 
typedef enum guththila_error_l
+{
+    GUTHTHILA_VALIDITY_ERROR,
+    GUTHTHILA_VALIDITY_WARNING,
+    GUTHTHILA_PARSER_ERROR,
+    GUTHTHILA_PARSER_WARNING,
+} guththila_error_level;
+

enum guththila_error_codes
+{
+    GUTHTHILA_ERROR_NONE =
+        0, 
GUTHTHILA_ERROR_NO_MEMORY,
+    
GUTHTHILA_ERROR_INVALID_NULL_PARAMETER,
+    
GUTHTHILA_ERROR_INVALID_ITERATOR_STATE,
+    
GUTHTHILA_ERROR_INVALID_NODE_TYPE,
+    
GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT,
+    
GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM,
+    
GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NOT_DECLARED,
+    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_element_t_GUTHTHILA_stack_t_EMPTY,
+    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE,
+    
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT,
+    
GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL,
+    
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA,
+    
GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL,
     
GUTHTHILA_STREAM_WRITER_ERROR_ENTITY_REF_NULL,
     
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_XML_VERSION,
     
GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL,
@@ -91,6 +91,6 @@
     
GUTHTHILA_WRITER_ERROR_SAME_ATTRIBUTE_REPEAT,
     
GUTHTHILA_ERROR_ATTRIBUTE_FREE
 };
-

EXTERN_C_END() 
+

EXTERN_C_END() 
 #endif  /* 
 */
 

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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_namespace.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_namespace.h Wed Oct  3 19:18:08 2007
@@ -1,67 +1,67 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_NAMESPACE_H
-#define GUTHTHILA_NAMESPACE_H
-
-#include <guththila_defines.h>
-#include <guththila_token.h>
-#include <axutil_utils.h>
-
EXTERN_C_START() 
-#ifndef GUTHTHILA_NAMESPACE_DEF_SIZE
-#define GUTHTHILA_NAMESPACE_DEF_SIZE 4
-#endif  /* 
 */
-
typedef struct guththila_namespace_s
-{
-
-    guththila_token_t *
-    name;
-
-    guththila_token_t *
-    uri;
-    
-}
-guththila_namespace_t;
-

typedef struct guththila_namespace_list_s
-{
-
-    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);
-
int GUTHTHILA_CALL
-guththila_namespace_list_init(
-    guththila_namespace_list_t * at_list,
-    const axutil_env_t * env);
-
guththila_namespace_t *
-GUTHTHILA_CALL guththila_namespace_list_get(guththila_namespace_list_t *
-        at_list,
-        const axutil_env_t * env);
-
int GUTHTHILA_CALL
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_NAMESPACE_H
+#define GUTHTHILA_NAMESPACE_H
+
+#include <guththila_defines.h>
+#include <guththila_token.h>
+#include <axutil_utils.h>
+
EXTERN_C_START() 
+#ifndef GUTHTHILA_NAMESPACE_DEF_SIZE
+#define GUTHTHILA_NAMESPACE_DEF_SIZE 4
+#endif  /* 
 */
+
typedef struct guththila_namespace_s
+{
+
+    guththila_token_t *
+    name;
+
+    guththila_token_t *
+    uri;
+    
+}
+guththila_namespace_t;
+

typedef struct guththila_namespace_list_s
+{
+
+    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);
+
int GUTHTHILA_CALL
+guththila_namespace_list_init(
+    guththila_namespace_list_t * at_list,
+    const axutil_env_t * env);
+
guththila_namespace_t *
+GUTHTHILA_CALL guththila_namespace_list_get(guththila_namespace_list_t *
+        at_list,
+        const axutil_env_t * env);
+
int GUTHTHILA_CALL
 guththila_namespace_list_release(
     guththila_namespace_list_t * at_list,
     guththila_namespace_t * namesp,
@@ -74,6 +74,6 @@
 guththila_namespace_list_free(
     guththila_namespace_list_t * at_list,
     const axutil_env_t * env);
-

EXTERN_C_END() 
+

EXTERN_C_END() 
 #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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_reader.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_reader.h Wed Oct  3 19:18:08 2007
@@ -1,83 +1,83 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_READER_H
-#define GUTHTHILA_READER_H
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_READER_H
+#define GUTHTHILA_READER_H
+
+#include <stdio.h>
+#include <guththila_defines.h>
+#include <axutil_utils.h>
+
EXTERN_C_START() 
 
typedef int(
+    GUTHTHILA_CALL * GUTHTHILA_READ_INPUT_CALLBACK)(
+        char *buffer,
+        int size,
+        
void *ctx);
+

enum guththila_reader_type
+{
+    GUTHTHILA_FILE_READER =
+        1, 
GUTHTHILA_IO_READER, 
GUTHTHILA_MEMORY_READER
+};
+

typedef struct guththila_reader_s
+{
+    
int
+    type;
+
+    FILE *
+    fp;
+    
char *
+    buff;
+    
int
+    buff_size;
+
+    GUTHTHILA_READ_INPUT_CALLBACK
+    input_read_callback;
+    
void *
+    context;
+    
+}
+guththila_reader_t;
 
-#include <stdio.h>
-#include <guththila_defines.h>
-#include <axutil_utils.h>
-
EXTERN_C_START() 
 
typedef int(
-    GUTHTHILA_CALL * GUTHTHILA_READ_INPUT_CALLBACK)(
-        char *buffer,
-        int size,
-        
void *ctx);
-

enum guththila_reader_type
-{
-    GUTHTHILA_FILE_READER =
-        1, 
GUTHTHILA_IO_READER, 
GUTHTHILA_MEMORY_READER
-};
-

typedef struct guththila_reader_s
-{
-    
int
-    type;
-
-    FILE *
-    fp;
-    
char *
-    buff;
-    
int
-    buff_size;
-
-    GUTHTHILA_READ_INPUT_CALLBACK
-    input_read_callback;
-    
void *
-    context;
-    
-}
-guththila_reader_t;
-
-#ifndef GUTHTHILA_READER_SET_LAST_START
-#define GUTHTHILA_READER_SET_LAST_START(_reader, _start) ((_reader)->start = _start)
-#endif  /* 
 */
-
-#ifndef GUTHTHILA_READER_STEP_BACK
-#define GUTHTHILA_READER_STEP_BACK(_reader) ((_reader->next--))
-#endif  /* 
 */
-
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
-guththila_reader_create_for_file(char *filename,
-        const axutil_env_t * env);
-

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);
-

GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
-guththila_reader_create_for_memory(void *buffer,
-        int size,
-        const axutil_env_t * env);
-

GUTHTHILA_EXPORT int GUTHTHILA_CALL 
 guththila_reader_read(
-    guththila_reader_t * r,
-    guththila_char * buffer,
+#ifndef GUTHTHILA_READER_SET_LAST_START
+#define GUTHTHILA_READER_SET_LAST_START(_reader, _start) ((_reader)->start = _start)
+#endif  /* 
 */
+
+#ifndef GUTHTHILA_READER_STEP_BACK
+#define GUTHTHILA_READER_STEP_BACK(_reader) ((_reader->next--))
+#endif  /* 
 */
+
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
+guththila_reader_create_for_file(char *filename,
+        const axutil_env_t * env);
+

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);
+

GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL
+guththila_reader_create_for_memory(void *buffer,
+        int size,
+        const axutil_env_t * env);
+

GUTHTHILA_EXPORT int GUTHTHILA_CALL 
 guththila_reader_read(
+    guththila_reader_t * r,
+    guththila_char * buffer,
     int offset,
     int length,
     const axutil_env_t * env);
 

GUTHTHILA_EXPORT void GUTHTHILA_CALL 
 guththila_reader_free(
     guththila_reader_t * r,
     const axutil_env_t * env);
-

EXTERN_C_END() 
+

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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_stack.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_stack.h Wed Oct  3 19:18:08 2007
@@ -1,75 +1,75 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_STACK_H
-#define GUTHTHILA_STACK_H
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_STACK_H
+#define GUTHTHILA_STACK_H
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#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;
+
+    /* Max number of Items that can be hold in data */
+    int
+    max;
+    
void **
+    data;
+    
+}
+guththila_stack_t;
 
-#include <stdio.h>
-#include <stdlib.h>
-
-#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;
-
-    /* Max number of Items that can be hold in data */
-    int
-    max;
-    
void **
-    data;
-    
-}
-guththila_stack_t;
-
-#ifndef GUTHTHILA_STACK_SIZE
-#define GUTHTHILA_STACK_SIZE(_stack) ((_stack).top)
-#endif  /* 
 */
-
-#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,
-    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
-guththila_stack_pop(
-    guththila_stack_t * stack,
-    const axutil_env_t * env);
-
int GUTHTHILA_CALL
-guththila_stack_push(
-    guththila_stack_t * stack,
-    void *data,
+#ifndef GUTHTHILA_STACK_SIZE
+#define GUTHTHILA_STACK_SIZE(_stack) ((_stack).top)
+#endif  /* 
 */
+
+#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,
+    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
+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
@@ -90,6 +90,6 @@
 guththila_stack_is_empty(
     guththila_stack_t * stack,
     const axutil_env_t * env);
-

EXTERN_C_END() 
+

EXTERN_C_END() 
 #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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila_token.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila_token.h Wed Oct  3 19:18:08 2007
@@ -1,125 +1,123 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef GUTHTHILA_TOKEN_H
-#define GUTHTHILA_TOKEN_H
-
-#include <guththila_defines.h>
-#include <guththila_stack.h>
-
EXTERN_C_START() 
 
typedef struct guththila_token_s
-{
-    
short
-    type;
-    
char *
-    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
-};
-

typedef struct guththila_tok_list_s
-{
-
-    guththila_stack_t
-    fr_stack;
-
-    guththila_token_t **
-    list;
-    
int
-    no_list;
-    
int
-    cur_list;
-    
int *
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef GUTHTHILA_TOKEN_H
+#define GUTHTHILA_TOKEN_H
+
+#include <guththila_defines.h>
+#include <guththila_stack.h>
+EXTERN_C_START()  typedef struct guththila_token_s
+{
+    short
+    type;
+    char *
+    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
+};
+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;
-
-#ifndef GUTHTHILA_TOK_DEF_SIZE
-#define GUTHTHILA_TOK_DEF_SIZE 4
-#endif  /* 
 */
-
-#ifndef GUTHTHILA_TOK_DEF_LIST_SIZE
-#define GUTHTHILA_TOK_DEF_LIST_SIZE 16
-#endif  /* 
 */
-
-#ifndef GUTHTHILA_TOKEN_LEN
-#define GUTHTHILA_TOKEN_LEN(tok) (tok->size)
-#endif  /* 
 */
-
-#ifndef GUTHTHILA_TOKEN_TO_STRING
-#define GUTHTHILA_TOKEN_TO_STRING(tok, string, _env) \
-    string =
-(char *) AXIS2_MALLOC(_env->allocator,
-        (GUTHTHILA_TOKEN_LEN(tok) + 1) * sizeof(char));
-\
memcpy(string, (tok)->start, GUTHTHILA_TOKEN_LEN(tok));
-\
string[GUTHTHILA_TOKEN_LEN(tok)] = 0;
-
-#endif  /* 
 */
-
guththila_tok_list_t *
+
+#ifndef GUTHTHILA_TOK_DEF_SIZE
+#define GUTHTHILA_TOK_DEF_SIZE 4
+#endif  /*  */
+
+#ifndef GUTHTHILA_TOK_DEF_LIST_SIZE
+#define GUTHTHILA_TOK_DEF_LIST_SIZE 16
+#endif  /*  */
+
+#ifndef GUTHTHILA_TOKEN_LEN
+#define GUTHTHILA_TOKEN_LEN(tok) (tok->size)
+#endif  /*  */
+
+#ifndef GUTHTHILA_TOKEN_TO_STRING
+#define GUTHTHILA_TOKEN_TO_STRING(tok, string, _env) \
+    string = (char *) AXIS2_MALLOC(_env->allocator, (GUTHTHILA_TOKEN_LEN(tok) + 1) * sizeof(char)); \
+    memcpy(string, (tok)->start, GUTHTHILA_TOKEN_LEN(tok)); \
+    string[GUTHTHILA_TOKEN_LEN(tok)] = 0;
+#endif  /*  */
+
+guththila_tok_list_t *
 GUTHTHILA_CALL guththila_tok_list_create(const axutil_env_t * env);
-
int GUTHTHILA_CALL
+int GUTHTHILA_CALL
 guththila_tok_list_init(
     guththila_tok_list_t * tok_list,
     const axutil_env_t * env);
-
void GUTHTHILA_CALL
+void GUTHTHILA_CALL
 guththila_tok_list_free(
     guththila_tok_list_t * tok_list,
     const axutil_env_t * env);
-
guththila_token_t *
+guththila_token_t *
 GUTHTHILA_CALL guththila_tok_list_get_token(guththila_tok_list_t * tok_list,
         const axutil_env_t * env);
-
int GUTHTHILA_CALL
+int GUTHTHILA_CALL
 guththila_tok_list_release_token(
     guththila_tok_list_t * tok_list,
     guththila_token_t * token,
     const axutil_env_t * env);
-
void GUTHTHILA_CALL
+void GUTHTHILA_CALL
 guththila_tok_list_free_data(
     guththila_tok_list_t * tok_list,
     const axutil_env_t * env);
-
int GUTHTHILA_CALL
+int GUTHTHILA_CALL
 guththila_tok_list_grow(
     guththila_tok_list_t * tok_list,
     const axutil_env_t * env);
-

int GUTHTHILA_CALL
+int GUTHTHILA_CALL
 guththila_tok_str_cmp(
     guththila_token_t * tok,
     char *str,
     size_t str_len,
     const axutil_env_t * env);
-
int GUTHTHILA_CALL
+int GUTHTHILA_CALL
 guththila_tok_tok_cmp(
     guththila_token_t * tok1,
     guththila_token_t * tok2,
     const axutil_env_t * env);
-

EXTERN_C_END() 
-#endif  /* 
 */
+EXTERN_C_END() 
+#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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_attribute.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_attribute.c Wed Oct  3 19:18:08 2007
@@ -1,30 +1,30 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <guththila_attribute.h>
-#include <guththila_stack.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <guththila_attribute.h>
+#include <guththila_stack.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
     
int GUTHTHILA_CALL
 guththila_attr_list_grow(
     guththila_attr_list_t * at_list,
     int addition,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
if (addition > 0 ||
@@ -53,7 +53,7 @@
 
}
 
 

guththila_attr_list_t *
-    GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env) 
+    GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env) 
 {
     
int i = 0;
     
guththila_attr_list_t * at_list =
@@ -66,7 +66,7 @@
                                           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;
@@ -81,7 +81,7 @@
 

int GUTHTHILA_CALL
 guththila_attr_list_init(
     guththila_attr_list_t * at_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
at_list->list =
@@ -89,7 +89,7 @@
                                           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;
@@ -104,7 +104,7 @@
 
 

guththila_attr_t *
     GUTHTHILA_CALL guththila_attr_list_get(guththila_attr_list_t * at_list,
-                                           const axutil_env_t * env) 
+                                           const axutil_env_t * env) 
 {
     
if (at_list->fr_stack.top > 0 ||
          guththila_attr_list_grow(at_list, GUTHTHILA_ATTR_DEF_SIZE, env))
@@ -117,14 +117,14 @@
 guththila_attr_list_release(
     guththila_attr_list_t * at_list,
     guththila_attr_t * attr,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
return guththila_stack_push(&at_list->fr_stack, attr, env);
 
}
 

void GUTHTHILA_CALL
 msuila_attr_list_free_data(
     guththila_attr_list_t * at_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
AXIS2_FREE(env->allocator, at_list->list);
     
guththila_stack_un_init(&at_list->fr_stack, env);
@@ -132,9 +132,9 @@
 
 guththila_attr_list_free(
     guththila_attr_list_t * at_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
AXIS2_FREE(env->allocator, at_list->list);
     
guththila_stack_un_init(&at_list->fr_stack, env);
     
AXIS2_FREE(env->allocator, at_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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_buffer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_buffer.c Wed Oct  3 19:18:08 2007
@@ -1,29 +1,29 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <guththila_buffer.h>
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <guththila_buffer.h>
     
int GUTHTHILA_CALL
 guththila_buffer_init(
     guththila_buffer_t * buffer,
     int size,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
buffer->type = GUTHTHILA_MULTIPLE_BUFFER;
     

buffer->data_size =
@@ -55,16 +55,16 @@
 

int GUTHTHILA_CALL
 guththila_buffer_un_init(
     guththila_buffer_t * buffer,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
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]); */ 
+        
+            /*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)
@@ -90,7 +90,7 @@
     guththila_buffer_t * buffer,
     char *buff,
     int size,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
buffer->type = GUTHTHILA_SINGLE_BUFFER;
     

buffer->buff =
@@ -113,7 +113,7 @@
 

void *GUTHTHILA_CALL
 guththila_buffer_get(
     guththila_buffer_t * buffer,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
size_t size = 0, current_size = 0;
     
int i = 0;
@@ -132,4 +132,4 @@
     
return buff;
 
}
 
-


+


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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_namespace.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_namespace.c Wed Oct  3 19:18:08 2007
@@ -1,30 +1,30 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <guththila_namespace.h>
-#include <guththila_stack.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <guththila_namespace.h>
+#include <guththila_stack.h>
+#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) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
if (addition > 0 ||
@@ -55,7 +55,7 @@
 
}
 
 

guththila_namespace_list_t *
-    GUTHTHILA_CALL guththila_namespace_list_create(const axutil_env_t * env) 
+    GUTHTHILA_CALL guththila_namespace_list_create(const axutil_env_t * env) 
 {
     
int i = 0;
     
guththila_namespace_list_t * namesp_list =
@@ -85,7 +85,7 @@
 

int GUTHTHILA_CALL
 guththila_namespace_list_init(
     guththila_namespace_list_t * namesp_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
namesp_list->list =
@@ -110,7 +110,7 @@
 

guththila_namespace_t *
     GUTHTHILA_CALL guththila_namespace_list_get(guththila_namespace_list_t *
                                                 namesp_list,
-                                                const axutil_env_t * env) 
+                                                const axutil_env_t * env) 
 {
     
if (namesp_list->fr_stack.top > 0 ||
          guththila_namespace_list_grow(namesp_list,
@@ -124,14 +124,14 @@
 guththila_namespace_list_release(
     guththila_namespace_list_t * namesp_list,
     guththila_namespace_t * namespace,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
return guththila_stack_push(&namesp_list->fr_stack, namespace, env);
 
}
 

void GUTHTHILA_CALL
 msuila_namespace_list_free_data(
     guththila_namespace_list_t * namesp_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
AXIS2_FREE(env->allocator, namesp_list->list);
     
guththila_stack_un_init(&namesp_list->fr_stack, env);
@@ -139,9 +139,9 @@
 
 guththila_namespace_list_free(
     guththila_namespace_list_t * namesp_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
AXIS2_FREE(env->allocator, namesp_list->list);
     
guththila_stack_un_init(&namesp_list->fr_stack, env);
     
AXIS2_FREE(env->allocator, namesp_list);
-
} 
+
} 

Modified: webservices/axis2/trunk/c/guththila/src/guththila_reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_reader.c?rev=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_reader.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_reader.c Wed Oct  3 19:18:08 2007
@@ -1,25 +1,25 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <stdlib.h>
-#include <string.h>
-#include <guththila_reader.h>
-    
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL 
-guththila_reader_create_for_file(char *file_name, const axutil_env_t * env) 
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <stdlib.h>
+#include <string.h>
+#include <guththila_reader.h>
+    
GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL 
+guththila_reader_create_for_file(char *file_name, const axutil_env_t * env) 
 {
     
guththila_reader_t * reader = NULL;
     
FILE * f = NULL;
@@ -41,9 +41,9 @@
     
return reader;
 
}
 
-

GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL 
+

GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL 
 guththila_reader_create_for_memory(void *buffer, int size,
-                                   const axutil_env_t * env) 
+                                   const axutil_env_t * env) 
 {
     
guththila_reader_t * reader =
         (guththila_reader_t *) AXIS2_MALLOC(env->allocator,
@@ -59,10 +59,10 @@
     
return NULL;
 
}
 
-

GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL 
+

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) 
+                               const axutil_env_t * env) 
 {
     
guththila_reader_t * reader =
         (guththila_reader_t *) AXIS2_MALLOC(env->allocator,
@@ -76,10 +76,10 @@
     
}
     
return NULL;
 
}
-

GUTHTHILA_EXPORT void GUTHTHILA_CALL 
+

GUTHTHILA_EXPORT void GUTHTHILA_CALL 
 guththila_reader_free(
     guththila_reader_t * r,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (r->type == GUTHTHILA_FILE_READER && r->fp)
     {
@@ -87,13 +87,13 @@
     
}
     
AXIS2_FREE(env->allocator, r);
 
}
-

GUTHTHILA_EXPORT int GUTHTHILA_CALL 
+

GUTHTHILA_EXPORT int GUTHTHILA_CALL 
 guththila_reader_read(
     guththila_reader_t * r,
     guththila_char * buffer,
     int offset,
     int length,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int rt = r->type;
     
switch (rt)
@@ -108,4 +108,4 @@
     
return 0;
 
}
 
-


+


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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_stack.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_stack.c Wed Oct  3 19:18:08 2007
@@ -1,23 +1,23 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <guththila_stack.h>
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <guththila_stack.h>
     
guththila_stack_t *
-    GUTHTHILA_CALL guththila_stack_create(const axutil_env_t * env) 
+    GUTHTHILA_CALL guththila_stack_create(const axutil_env_t * env) 
 {
     
guththila_stack_t * stack = NULL;
     
stack =
@@ -44,7 +44,7 @@
 

int GUTHTHILA_CALL
 guththila_stack_init(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
stack->top = 0;
     
stack->data =
@@ -63,7 +63,7 @@
 

void GUTHTHILA_CALL
 guththila_stack_free(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (stack->data)
         AXIS2_FREE(env->allocator, stack->data);
@@ -72,7 +72,7 @@
 

void GUTHTHILA_CALL
 guththila_stack_un_init(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (stack->data)
         AXIS2_FREE(env->allocator, stack->data);
@@ -80,7 +80,7 @@
 

void *GUTHTHILA_CALL
 guththila_stack_pop(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (stack->top > 0)
     {
@@ -92,14 +92,14 @@
 guththila_stack_push(
     guththila_stack_t * stack,
     void *data,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
int i = 0;
     
void **temp = NULL;
     
if (stack->top >= stack->max)
     {
-        
-            /*stack->data = (void **) realloc(stack->data, sizeof(void **) * (stack->max += GUTHTHILA_STACK_DEFAULT)); */ 
+        
+            /*stack->data = (void **) realloc(stack->data, sizeof(void **) * (stack->max += GUTHTHILA_STACK_DEFAULT)); */ 
             temp =
             (void **) AXIS2_MALLOC(env->allocator,
                                    sizeof(void **) * (stack->max +=
@@ -119,7 +119,7 @@
 

void *GUTHTHILA_CALL
 guththila_stack_peek(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (stack->top > 0)
     {
@@ -133,7 +133,7 @@
 

int GUTHTHILA_CALL
 guththila_stack_del_top(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
if (stack->top > 0)
     {
@@ -145,7 +145,7 @@
 

int GUTHTHILA_CALL
 guththila_stack_is_empty(
     guththila_stack_t * stack,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
return stack->top == 0 ? 1 : 0;
 
}
@@ -153,9 +153,9 @@
 guththila_stack_get_by_index(
     guththila_stack_t * stack,
     int index,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
     
return index < stack->top ? stack->data[index] : NULL;
 
}
 
-
+

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=581761&r1=581760&r2=581761&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_token.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_token.c Wed Oct  3 19:18:08 2007
@@ -1,234 +1,232 @@
 
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */  
-#include <guththila_token.h>
-    
-#include <stdlib.h>
-#include <stdio.h>
-    
-#define TOK_LIST_FREE(tok_list) \
-    (if (tok_list)
-     {
-     AXIS2_FREE(tok_list)}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */  
+#include <guththila_token.h>
+    
+#include <stdlib.h>
+#include <stdio.h>
+    
+#define TOK_LIST_FREE(tok_list) \
+    (if (tok_list) { AXIS2_FREE(tok_list)} )
+    
+#define TOK_LIST_SIZE(tok_list) (tok_list->size)
 
-)
-    
-#define TOK_LIST_SIZE(tok_list) (tok_list->size)
-        
guththila_tok_list_t *
-        GUTHTHILA_CALL guththila_tok_list_create(const axutil_env_t * env) 
+
+        guththila_tok_list_t *
+        GUTHTHILA_CALL guththila_tok_list_create(const axutil_env_t * env) 
     {
-        
int i = 0;
-        
guththila_tok_list_t * tok_list =
+        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)
+        if (!tok_list)
             return NULL;
-        

tok_list->list =
+        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))
+        if (tok_list->list && guththila_stack_init(&tok_list->fr_stack, env))
         {
-            
tok_list->capacity =
+            tok_list->capacity =
                 (int *) AXIS2_MALLOC(env->allocator,
                                      sizeof(int) * GUTHTHILA_TOK_DEF_LIST_SIZE);
-            
if (tok_list->capacity)
+            if (tok_list->capacity)
             {
-                
tok_list->no_list = GUTHTHILA_TOK_DEF_LIST_SIZE;
-                
tok_list->list[0] =
+                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++)
+                for (i = 0; i < GUTHTHILA_TOK_DEF_SIZE; i++)
                 {
-                    
guththila_stack_push(&tok_list->fr_stack,
+                    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
+                }
+                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,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
int i = 0;
-    
int cur = 0;
-    
int cur_cap = 0;
-    
guththila_token_t ** list = NULL;
-    
if (tok_list->cur_list < tok_list->no_list - 1)
-    {
-        
cur = ++tok_list->cur_list;
-        
cur_cap = tok_list->capacity[cur - 1] * 2;
-        
tok_list->list[cur] =
+    int i = 0;
+    int cur = 0;
+    int cur_cap = 0;
+    guththila_token_t ** list = NULL;
+    if (tok_list->cur_list < tok_list->no_list - 1)
+    {
+        cur = ++tok_list->cur_list;
+        cur_cap = tok_list->capacity[cur - 1] * 2;
+        tok_list->list[cur] =
             (guththila_token_t *) AXIS2_MALLOC(env->allocator,
                                                sizeof(guththila_token_t) *
                                                cur_cap);
-        
for (i = 0; i < cur_cap; i++)
+        for (i = 0; i < cur_cap; i++)
         {
-            
guththila_stack_push(&tok_list->fr_stack, &tok_list->list[cur][i],
+            guththila_stack_push(&tok_list->fr_stack, &tok_list->list[cur][i],
                                   env);
-        
}
-        
tok_list->capacity[cur] = cur_cap;
-        
return GUTHTHILA_SUCCESS;
-    
}
+        }
+        tok_list->capacity[cur] = cur_cap;
+        return GUTHTHILA_SUCCESS;
+    }
     else
     {
-        
list =
+        list =
             (guththila_token_t **) AXIS2_MALLOC(env->allocator,
                                                 sizeof(guththila_token_t *) *
                                                 tok_list->no_list * 2);
-        
if (list)
+        if (list)
         {
-            
for (i = 0; i <= tok_list->cur_list; i++)
+            for (i = 0; i <= tok_list->cur_list; i++)
             {
-                
list[i] = tok_list->list[i];
-            
}
-            
tok_list->no_list = tok_list->no_list * 2;
-            
AXIS2_FREE(env->allocator, tok_list->list);
-            
tok_list->list = list;
-            
guththila_tok_list_grow(tok_list, env);
-        
}
-    
}
-    
return GUTHTHILA_FAILURE;
-
}
-

int GUTHTHILA_CALL
+                list[i] = tok_list->list[i];
+            }
+            tok_list->no_list = tok_list->no_list * 2;
+            AXIS2_FREE(env->allocator, tok_list->list);
+            tok_list->list = list;
+            guththila_tok_list_grow(tok_list, env);
+        }
+    }
+    return GUTHTHILA_FAILURE;
+}
+int GUTHTHILA_CALL
 guththila_tok_list_init(
     guththila_tok_list_t * tok_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
int i = 0;
-    
tok_list->list =
+    int i = 0;
+    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))
+    if (tok_list->list && guththila_stack_init(&tok_list->fr_stack, env))
     {
-        
tok_list->capacity =
+        tok_list->capacity =
             (int *) AXIS2_MALLOC(env->allocator,
                                  sizeof(int) * GUTHTHILA_TOK_DEF_LIST_SIZE);
-        
if (tok_list->capacity)
+        if (tok_list->capacity)
         {
-            
tok_list->no_list = GUTHTHILA_TOK_DEF_LIST_SIZE;
-            
tok_list->list[0] =
+            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++)
+            for (i = 0; i < GUTHTHILA_TOK_DEF_SIZE; i++)
             {
-                
guththila_stack_push(&tok_list->fr_stack,
+                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 GUTHTHILA_SUCCESS;
-        
}
-    
}
-    
return GUTHTHILA_FAILURE;
-
}
-

void GUTHTHILA_CALL
+            }
+            tok_list->capacity[0] = GUTHTHILA_TOK_DEF_SIZE;
+            tok_list->cur_list = 0;
+            tok_list->no_list = GUTHTHILA_TOK_DEF_LIST_SIZE;
+            return GUTHTHILA_SUCCESS;
+        }
+    }
+    return GUTHTHILA_FAILURE;
+}
+void GUTHTHILA_CALL
 guththila_tok_list_free(
     guththila_tok_list_t * tok_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
int i = 0;
-    
guththila_stack_un_init(&tok_list->fr_stack, env);
-    
for (; i <= tok_list->cur_list; i++)
-    {
-        
AXIS2_FREE(env->allocator, tok_list->list[i]);
-    
}
-    
AXIS2_FREE(env->allocator, tok_list->list);
-    
AXIS2_FREE(env->allocator, tok_list);
-
}
-

void GUTHTHILA_CALL
+    int i = 0;
+    guththila_stack_un_init(&tok_list->fr_stack, env);
+    for (; i <= tok_list->cur_list; i++)
+    {
+        AXIS2_FREE(env->allocator, tok_list->list[i]);
+    }
+    AXIS2_FREE(env->allocator, tok_list->list);
+    AXIS2_FREE(env->allocator, tok_list);
+}
+void GUTHTHILA_CALL
 guththila_tok_list_free_data(
     guththila_tok_list_t * tok_list,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
int i = 0;
-    
guththila_stack_un_init(&tok_list->fr_stack, env);
-    

for (; i <= tok_list->cur_list; i++)
-    {
-        
AXIS2_FREE(env->allocator, tok_list->list[i]);
-    
}
-    
AXIS2_FREE(env->allocator, tok_list->list);
-
}
-

guththila_token_t *
+    int i = 0;
+    guththila_stack_un_init(&tok_list->fr_stack, env);
+    for (; i <= tok_list->cur_list; i++)
+    {
+        AXIS2_FREE(env->allocator, tok_list->list[i]);
+    }
+    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) 
+                                                const axutil_env_t * env) 
 {
-    
if (tok_list->fr_stack.top > 0 || guththila_tok_list_grow(tok_list, env))
+    if (tok_list->fr_stack.top > 0 || guththila_tok_list_grow(tok_list, env))
     {
-        
return guththila_stack_pop(&tok_list->fr_stack, env);
-    
}
-    
return NULL;
-
}
-

int GUTHTHILA_CALL
+        return guththila_stack_pop(&tok_list->fr_stack, env);
+    }
+    return NULL;
+}
+int GUTHTHILA_CALL
 guththila_tok_list_release_token(
     guththila_tok_list_t * tok_list,
     guththila_token_t * token,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
return guththila_stack_push(&tok_list->fr_stack, token, env);
-
}
-

int GUTHTHILA_CALL
+    return guththila_stack_push(&tok_list->fr_stack, token, env);
+}
+int GUTHTHILA_CALL
 guththila_tok_str_cmp(
     guththila_token_t * tok,
     char *str,
     size_t str_len,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
unsigned int i = 0;
-    
if (tok->size != str_len)
+    unsigned int i = 0;
+    if (tok->size != str_len)
         return -1;
-    
for (; i < tok->size; i++)
+    for (; i < tok->size; i++)
     {
-        
if (tok->start[i] != str[i])
+        if (tok->start[i] != str[i])
         {
-            
return -1;
-        
}
-    
}
-    
return 0;
-
}
-

int GUTHTHILA_CALL
+            return -1;
+        }
+    }
+    return 0;
+}
+int GUTHTHILA_CALL
 guththila_tok_tok_cmp(
     guththila_token_t * tok1,
     guththila_token_t * tok2,
-    const axutil_env_t * env) 
+    const axutil_env_t * env) 
 {
-    
unsigned int i = 0;
-    
if (tok1->size != tok2->size)
+    unsigned int i = 0;
+    if (tok1->size != tok2->size)
         return -1;
-    
for (; i < tok1->size; i++)
+    for (; i < tok1->size; i++)
     {
-        
if (tok1->start[i] != tok2->start[i])
+        if (tok1->start[i] != tok2->start[i])
         {
-            
return -1;
-        
}
-    
}
-    
return 0;
-
}
+            return -1;
+        }
+    }
+    return 0;
+}
+
 
-



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