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 2006/08/04 08:19:57 UTC

svn commit: r428639 [1/4] - in /webservices/axis2/trunk/c: guththila/src/ include/ modules/core/clientapi/ modules/core/transport/http/ rampart/src/omxmlsec/ samples/client/dynamic_client/ util/include/

Author: samisa
Date: Thu Aug  3 23:19:55 2006
New Revision: 428639

URL: http://svn.apache.org/viewvc?rev=428639&view=rev
Log:
Fxed tabs and formatting

Modified:
    webservices/axis2/trunk/c/guththila/src/guththila_writer.c
    webservices/axis2/trunk/c/guththila/src/guththila_writer.h
    webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c
    webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.h
    webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c
    webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.h
    webservices/axis2/trunk/c/include/axis2_any_content_type.h
    webservices/axis2/trunk/c/include/axis2_callback.h
    webservices/axis2/trunk/c/include/axis2_conf_ctx.h
    webservices/axis2/trunk/c/include/axis2_ctx.h
    webservices/axis2/trunk/c/include/axis2_desc.h
    webservices/axis2/trunk/c/include/axis2_disp.h
    webservices/axis2/trunk/c/include/axis2_disp_checker.h
    webservices/axis2/trunk/c/include/axis2_flow.h
    webservices/axis2/trunk/c/include/axis2_flow_container.h
    webservices/axis2/trunk/c/include/axis2_http_chunked_stream.h
    webservices/axis2/trunk/c/include/axis2_http_client.h
    webservices/axis2/trunk/c/include/axis2_http_header.h
    webservices/axis2/trunk/c/include/axis2_http_out_transport_info.h
    webservices/axis2/trunk/c/include/axis2_http_request_line.h
    webservices/axis2/trunk/c/include/axis2_http_response_writer.h
    webservices/axis2/trunk/c/include/axis2_http_simple_request.h
    webservices/axis2/trunk/c/include/axis2_http_simple_response.h
    webservices/axis2/trunk/c/include/axis2_http_status_line.h
    webservices/axis2/trunk/c/include/axis2_http_svr_thread.h
    webservices/axis2/trunk/c/include/axis2_http_worker.h
    webservices/axis2/trunk/c/include/axis2_msg_ctx.h
    webservices/axis2/trunk/c/include/axis2_op_ctx.h
    webservices/axis2/trunk/c/include/axis2_phase_holder.h
    webservices/axis2/trunk/c/include/axis2_phase_resolver.h
    webservices/axis2/trunk/c/include/axis2_svc_ctx.h
    webservices/axis2/trunk/c/include/axis2_svc_grp_ctx.h
    webservices/axis2/trunk/c/include/axis2_svc_skeleton.h
    webservices/axis2/trunk/c/include/axis2_svr_callback.h
    webservices/axis2/trunk/c/include/axis2_transport_in_desc.h
    webservices/axis2/trunk/c/include/axis2_transport_out_desc.h
    webservices/axis2/trunk/c/include/axis2_transport_receiver.h
    webservices/axis2/trunk/c/include/axis2_transport_sender.h
    webservices/axis2/trunk/c/modules/core/clientapi/stub.c
    webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/modules/core/transport/http/http_transport_utils.c
    webservices/axis2/trunk/c/rampart/src/omxmlsec/error.c
    webservices/axis2/trunk/c/samples/client/dynamic_client/dynamic_client.c
    webservices/axis2/trunk/c/samples/client/dynamic_client/test.c
    webservices/axis2/trunk/c/util/include/axis2_array_list.h

Modified: webservices/axis2/trunk/c/guththila/src/guththila_writer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_writer.c?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_writer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_writer.c Thu Aug  3 23:19:55 2006
@@ -13,8 +13,8 @@
  *   See the License for the specific language governing permissions and
  *   limitations under the License.
  *
- *	
- * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)	
+ *   
+ * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)   
  */
 
 #include "guththila_writer.h"
@@ -46,11 +46,11 @@
   if (wt)
     {
       if (wt->guththila_writer_type == GUTHTHILA_WRITER_CREATE_FOR_FILE)
-	{
-	  if (((guththila_writer_impl_t *)wt)->outputstream)
-	    fclose (((guththila_writer_impl_t *)wt)->outputstream);
-	  ((guththila_writer_impl_t *)wt)->outputstream = NULL;
-	}
+   {
+     if (((guththila_writer_impl_t *)wt)->outputstream)
+       fclose (((guththila_writer_impl_t *)wt)->outputstream);
+     ((guththila_writer_impl_t *)wt)->outputstream = NULL;
+   }
       AXIS2_FREE (env->allocator, (guththila_writer_t *)wt);
       wt = NULL;
     }

Modified: webservices/axis2/trunk/c/guththila/src/guththila_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_writer.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_writer.h (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_writer.h Thu Aug  3 23:19:55 2006
@@ -13,8 +13,8 @@
  *   See the License for the specific language governing permissions and
  *   limitations under the License.
  *
- *	
- * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)	
+ *   
+ * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)   
  */
 
 #ifndef GUTHTHILA_WRITER_H
@@ -63,4 +63,4 @@
 (axis2_env_t *env, 
 guththila_writer_t *wt);
 
-#endif	/* GUTHTHILA_WRITE_H */
+#endif   /* GUTHTHILA_WRITE_H */

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.c Thu Aug  3 23:19:55 2006
@@ -32,7 +32,7 @@
 {
   guththila_xml_pull_parser_t *parser =
     (guththila_xml_pull_parser_t *) AXIS2_MALLOC (
-						  environment->allocator, sizeof (guththila_xml_pull_parser_t));
+                    environment->allocator, sizeof (guththila_xml_pull_parser_t));
   parser->buffer = guththila_buffer_create (environment, 1024);
   parser->stack = axis2_stack_create (environment);
   parser->attrib = axis2_stack_create (environment);
@@ -76,7 +76,7 @@
 guththila_xml_pull_parser_exception (guththila_char_t * file, int line, int error_code)
 {
   printf ("Throws guththila_xml_pull_parser_exception \t %s \t %d \n", file,
-	  line);
+     line);
   /* Samisa: we should define a set of error codes and a corresponding error message set
      rather than printing the above line to the console, we should be appending the
      above string to the error message corresponding to the current error code
@@ -113,7 +113,7 @@
                                  guththila_xml_pull_parser_t * parser)
 {
   memmove (parser->buffer->buff, parser->buffer->buff + (parser->offset),
-	   (parser->_next) - (parser->offset));
+      (parser->_next) - (parser->offset));
   parser->_next -= parser->offset;
   parser->last -= parser->offset;
   parser->offset = 0;
@@ -129,23 +129,23 @@
     {
       if (parser->offset > 0)
         {
-	  guththila_xml_pull_parser_relocate_tokens (environment, parser,
-						     parser->offset);
-	  guththila_xml_pull_parser_shift (environment, parser);
+     guththila_xml_pull_parser_relocate_tokens (environment, parser,
+                       parser->offset);
+     guththila_xml_pull_parser_shift (environment, parser);
         }
       else
         {
-	  int b = parser->buffer->size;
-	  parser->buffer =
-	    guththila_buffer_grow (environment, parser->buffer);
-	  guththila_xml_pull_parser_relocate_tokens (
+     int b = parser->buffer->size;
+     parser->buffer =
+       guththila_buffer_grow (environment, parser->buffer);
+     guththila_xml_pull_parser_relocate_tokens (
             environment, parser, (parser->buffer->size - b));
         }
     }
   c = guththila_reader_read (environment, (parser->buffer->buff),
-			     (parser->_next),
-			     (parser->buffer->size) - (parser->_next),
-			     parser->reader);
+              (parser->_next),
+              (parser->buffer->size) - (parser->_next),
+              parser->reader);
   parser->last += c;
   return !c;
 }
@@ -161,9 +161,9 @@
       && guththila_xml_pull_parser_read (environment, parser))
     {
       if (eof)
-	return -1;
+   return -1;
       else
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF);
     }
   while (!c)
     c = parser->buffer->buff[parser->_next++];
@@ -180,39 +180,39 @@
       && guththila_xml_pull_parser_read (environment, parser))
     {
       if (eof)
-	return -1;
+   return -1;
       else
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_UNEXPECTED_EOF);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_UNEXPECTED_EOF);
     }
   if (parser->_next == 0)
     {
       guththila_UTF8_char iu =
-	(guththila_UTF8_char) parser->buffer->buff[parser->_next++];
+   (guththila_UTF8_char) parser->buffer->buff[parser->_next++];
 
       if (0xff == iu
-	  && 0xfe ==
-	  (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
+     && 0xfe ==
+     (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
         {
-	  parser->unicode_state = LE;
+     parser->unicode_state = LE;
         }
       else if (0xfe == iu
-	       && 0xff ==
-	       (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
+          && 0xff ==
+          (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
         {
-	  parser->unicode_state = BE;
+     parser->unicode_state = BE;
         }
       else if (0xef == iu
-	       && 0xbb ==
-	       (guththila_UTF8_char) parser->buffer->buff[parser->_next++]
-	       && 0xbf ==
-	       (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
+          && 0xbb ==
+          (guththila_UTF8_char) parser->buffer->buff[parser->_next++]
+          && 0xbf ==
+          (guththila_UTF8_char) parser->buffer->buff[parser->_next++])
         {
-	  parser->unicode_state = None;
+     parser->unicode_state = None;
         }
       else
         {
-	  parser->unicode_state = None;
-	  parser->_next = 0;
+     parser->unicode_state = None;
+     parser->_next = 0;
         }
     }
 
@@ -220,7 +220,7 @@
     return parser->buffer->buff[parser->_next++];
   else
     return guththila_xml_pull_parser_from_utf16 (environment, parser,
-						 eof);
+                   eof);
 }
 
 
@@ -238,7 +238,7 @@
 {
   guththila_token_t *t =
     (guththila_token_t *) AXIS2_MALLOC (environment->allocator,
-					sizeof (guththila_token_t));
+               sizeof (guththila_token_t));
   t->type = Unknown;
   t->start = guththila_xml_pull_parser_last_char (environment, parser);
   AXIS2_STACK_PUSH (parser->stack, environment, t);
@@ -281,7 +281,7 @@
     {
       ic = guththila_xml_pull_parser_next_char (environment, parser, 0);
       return guththila_xml_pull_parser_skip_spaces (environment, parser,
-						    ic);
+                      ic);
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_PROCESS_EQUAL);
@@ -304,38 +304,38 @@
     {
       guththila_xml_pull_parser_open_token (environment, parser);
       if ('e' ==
-	  guththila_xml_pull_parser_next_char (environment, parser, 0)
-	  && 'r' == guththila_xml_pull_parser_next_char (environment,
-							 parser, 0)
-	  && 's' == guththila_xml_pull_parser_next_char (environment,
-							 parser, 0)
-	  && 'i' == guththila_xml_pull_parser_next_char (environment,
-							 parser, 0)
-	  && 'o' == guththila_xml_pull_parser_next_char (environment,
-							 parser, 0)
-	  && 'n' == guththila_xml_pull_parser_next_char (environment,
-							 parser, 0))
-        {
-	  ic = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  guththila_xml_pull_parser_close_token (environment, parser,
-						 _attribute, 0);
-	  quote =
-	    guththila_xml_pull_parser_process_eq (environment, parser,
-						  ic);
-	  nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  /* 0, since we don't expect EOF line here */
-	  guththila_xml_pull_parser_open_token (environment, parser);
-	  while (quote != nc)
-	    nc = guththila_xml_pull_parser_next_char (environment, parser,
-						      0);
-	  guththila_xml_pull_parser_close_token (environment, parser,
-						 _attribute_value, 0);
-	  nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  return guththila_xml_pull_parser_skip_spaces (environment, parser,
-							nc);
+     guththila_xml_pull_parser_next_char (environment, parser, 0)
+     && 'r' == guththila_xml_pull_parser_next_char (environment,
+                      parser, 0)
+     && 's' == guththila_xml_pull_parser_next_char (environment,
+                      parser, 0)
+     && 'i' == guththila_xml_pull_parser_next_char (environment,
+                      parser, 0)
+     && 'o' == guththila_xml_pull_parser_next_char (environment,
+                      parser, 0)
+     && 'n' == guththila_xml_pull_parser_next_char (environment,
+                      parser, 0))
+        {
+     ic = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     guththila_xml_pull_parser_close_token (environment, parser,
+                   _attribute, 0);
+     quote =
+       guththila_xml_pull_parser_process_eq (environment, parser,
+                    ic);
+     nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     /* 0, since we don't expect EOF line here */
+     guththila_xml_pull_parser_open_token (environment, parser);
+     while (quote != nc)
+       nc = guththila_xml_pull_parser_next_char (environment, parser,
+                        0);
+     guththila_xml_pull_parser_close_token (environment, parser,
+                   _attribute_value, 0);
+     nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     return guththila_xml_pull_parser_skip_spaces (environment, parser,
+                     nc);
         }
       else
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_INCORRECT_VERSION_INFO);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_INCORRECT_VERSION_INFO);
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_VERSION_INFO_NOT_FOUND);
@@ -360,22 +360,22 @@
       && 'i' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'n' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'g' == guththila_xml_pull_parser_next_char (environment, parser,
-						     0))
+                       0))
     {
       ic = guththila_xml_pull_parser_next_char (environment, parser, 0);
       guththila_xml_pull_parser_close_token (environment, parser,
-					     _attribute, 0);
+                    _attribute, 0);
       quote =
-	guththila_xml_pull_parser_process_eq (environment, parser, ic);
+   guththila_xml_pull_parser_process_eq (environment, parser, ic);
       nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
       guththila_xml_pull_parser_open_token (environment, parser);
       while (quote != nc)
-	nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
+   nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
       guththila_xml_pull_parser_close_token (environment, parser,
-					     _attribute_value, 0);
+                    _attribute_value, 0);
       nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
       return guththila_xml_pull_parser_skip_spaces (environment, parser,
-						    nc);
+                      nc);
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_ENCODING_DECLARATION_ERROR);
@@ -402,10 +402,10 @@
       && 'o' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'n' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'e' == guththila_xml_pull_parser_next_char (environment, parser,
-						     0))
+                       0))
     ic = guththila_xml_pull_parser_next_char (environment, parser, 0);
   guththila_xml_pull_parser_close_token (environment, parser, _attribute,
-					 0);
+                0);
   quote = guththila_xml_pull_parser_process_eq (environment, parser, ic);
   nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
   guththila_xml_pull_parser_open_token (environment, parser);
@@ -413,29 +413,29 @@
     {
       if ('y' == nc)
         {
-	  if ('e' !=
-	      guththila_xml_pull_parser_next_char (environment, parser, 0)
-	      || 's' != guththila_xml_pull_parser_next_char (environment,
-							     parser, 0))
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES);
-	  else
-	    nc = guththila_xml_pull_parser_next_char (environment, parser,
-						      0);
+     if ('e' !=
+         guththila_xml_pull_parser_next_char (environment, parser, 0)
+         || 's' != guththila_xml_pull_parser_next_char (environment,
+                          parser, 0))
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES);
+     else
+       nc = guththila_xml_pull_parser_next_char (environment, parser,
+                        0);
         }
       else if ('n' == nc)
         {
-	  if ('o' !=
-	      guththila_xml_pull_parser_next_char (environment, parser, 0))
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO);
-	  else
-	    nc = guththila_xml_pull_parser_next_char (environment, parser,
-						      0);
+     if ('o' !=
+         guththila_xml_pull_parser_next_char (environment, parser, 0))
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO);
+     else
+       nc = guththila_xml_pull_parser_next_char (environment, parser,
+                        0);
         }
       else
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE);
     }
   guththila_xml_pull_parser_close_token (environment, parser,
-					 _attribute_value, 0);
+                _attribute_value, 0);
   nc = guththila_xml_pull_parser_next_char (environment, parser, 0);
   return guththila_xml_pull_parser_skip_spaces (environment, parser, nc);
 }
@@ -451,26 +451,26 @@
   if ('x' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'm' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && 'l' == guththila_xml_pull_parser_next_char (environment, parser,
-						     0))
+                       0))
     {
       ix = guththila_xml_pull_parser_process_version_info (environment,
-							   parser);
+                        parser);
 
       if ('e' == ix)
-	ix = guththila_xml_pull_parser_process_encoding_decl (environment,
-							      parser);
+   ix = guththila_xml_pull_parser_process_encoding_decl (environment,
+                           parser);
 
       if ('s' == ix)
-	ix = guththila_xml_pull_parser_process_sd_decl (environment,
-							parser);
+   ix = guththila_xml_pull_parser_process_sd_decl (environment,
+                     parser);
 
       if ('?' == ix)
         {
-	  if ('>' !=
-	      guththila_xml_pull_parser_next_char (environment, parser, 0))
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION);
-	  else
-	    parser->guththila_event = GUTHTHILA_START_DOCUMENT;
+     if ('>' !=
+         guththila_xml_pull_parser_next_char (environment, parser, 0))
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION);
+     else
+       parser->guththila_event = GUTHTHILA_START_DOCUMENT;
         }
     }
   else
@@ -549,18 +549,18 @@
   guththila_xml_pull_parser_open_token (environment, parser);
   c = guththila_xml_pull_parser_next_char (environment, parser, 0);
   while (!
-	 (guththila_xml_pull_parser_is_space (environment, c) || '/' == c
-	  || '=' == c || '?' == c || '>' == c))
+    (guththila_xml_pull_parser_is_space (environment, c) || '/' == c
+     || '=' == c || '?' == c || '>' == c))
     {
       if (':' == c)
         {
-	  guththila_xml_pull_parser_close_token (environment, parser,
-						 _prefix, 0);
-	  c = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  guththila_xml_pull_parser_open_token (environment, parser);
+     guththila_xml_pull_parser_close_token (environment, parser,
+                   _prefix, 0);
+     c = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     guththila_xml_pull_parser_open_token (environment, parser);
         }
       else
-	c = guththila_xml_pull_parser_next_char (environment, parser, 0);
+   c = guththila_xml_pull_parser_next_char (environment, parser, 0);
     }
   guththila_xml_pull_parser_close_token (environment, parser, _name, 0);
 
@@ -581,13 +581,13 @@
       guththila_xml_pull_parser_open_token (environment, parser);
       do
         {
-	  c = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  if (quote == c)
+     c = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     if (quote == c)
             {
-	      guththila_xml_pull_parser_close_token (environment, parser,
-						     _attribute_value, 0);
-	      return guththila_xml_pull_parser_next_char (environment,
-							  parser, 0);
+         guththila_xml_pull_parser_close_token (environment, parser,
+                       _attribute_value, 0);
+         return guththila_xml_pull_parser_next_char (environment,
+                       parser, 0);
             }
         }
       while ('<' != c || '&' != c);
@@ -609,7 +609,7 @@
   q = guththila_xml_pull_parser_process_name (environment, parser);
   q = guththila_xml_pull_parser_process_eq (environment, parser, q);
   q = guththila_xml_pull_parser_process_attribute_value (environment,
-							 parser, q);
+                      parser, q);
   return q;
 }
 
@@ -628,21 +628,21 @@
     {
       if ('/' == c)
         {
-	  parser->guththila_event = GUTHTHILA_EMPTY_ELEMENT;
-	  if ('>' ==
-	      guththila_xml_pull_parser_next_char (environment, parser, 0))
-	    return c;
-	  else
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED);
+     parser->guththila_event = GUTHTHILA_EMPTY_ELEMENT;
+     if ('>' ==
+         guththila_xml_pull_parser_next_char (environment, parser, 0))
+       return c;
+     else
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED);
         }
       else if ('>' == c)
-	return c;
+   return c;
       else
         {
-	  c = guththila_xml_pull_parser_process_attribute (environment,
-							   parser, c);
-	  c = guththila_xml_pull_parser_skip_spaces (environment, parser,
-						     c);
+     c = guththila_xml_pull_parser_process_attribute (environment,
+                        parser, c);
+     c = guththila_xml_pull_parser_skip_spaces (environment, parser,
+                       c);
         }
     }
 }
@@ -668,13 +668,13 @@
       /*             all_spaces = (all_spaces && guththila_is_space (c)); */
 
       if (c == '&')
-	ref = 1;
+   ref = 1;
 
       if (c == -1)
         {
-	  guththila_xml_pull_parser_close_token (environment, parser,
-						 _char_data, ref);
-	  return 0;
+     guththila_xml_pull_parser_close_token (environment, parser,
+                   _char_data, ref);
+     return 0;
         }
     }
   while (c != '<');
@@ -690,9 +690,9 @@
 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_process_end_tag (axis2_env_t *
-					   environment,
-					   guththila_xml_pull_parser_t *
-					   parser)
+                  environment,
+                  guththila_xml_pull_parser_t *
+                  parser)
 {
   int c;
   c = guththila_xml_pull_parser_next_char (environment, parser, 0);
@@ -728,34 +728,34 @@
   int c;
   if ('-' == guththila_xml_pull_parser_next_char (environment, parser, 0)
       && '-' == guththila_xml_pull_parser_next_char (environment, parser,
-						     0))
+                       0))
     {
       c = guththila_xml_pull_parser_next_char (environment, parser, 0);
       while (1)
         {
-	  c = guththila_xml_pull_parser_next_char (environment, parser, 0);
-	  if ('-' == c)
+     c = guththila_xml_pull_parser_next_char (environment, parser, 0);
+     if ('-' == c)
             {
-	      c = guththila_xml_pull_parser_next_char (environment, parser,
-						       0);
-	      if ('-' == c)
+         c = guththila_xml_pull_parser_next_char (environment, parser,
+                         0);
+         if ('-' == c)
                 {
-		  if ('>' ==
-		      guththila_xml_pull_parser_next_char (environment,
-							   parser, 0))
+        if ('>' ==
+            guththila_xml_pull_parser_next_char (environment,
+                        parser, 0))
                     {
-		      parser->guththila_event = GUTHTHILA_COMMENT;
-		      while ('<' != c)
+            parser->guththila_event = GUTHTHILA_COMMENT;
+            while ('<' != c)
                         {
-			  c = guththila_xml_pull_parser_next_char
-			    (environment, parser, -1);
-			  if (c == -1)
-			    return c;
+           c = guththila_xml_pull_parser_next_char
+             (environment, parser, -1);
+           if (c == -1)
+             return c;
                         }
-		      return c;
+            return c;
                     }
-		  else
-		    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT);
+        else
+          guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT);
                 }
             }
         }
@@ -764,7 +764,7 @@
     {
       c = guththila_xml_pull_parser_next_char (environment, parser, 0);
       while ('<' != c)
-	c = guththila_xml_pull_parser_next_char (environment, parser, -1);
+   c = guththila_xml_pull_parser_next_char (environment, parser, -1);
     }
   return 0;
 }
@@ -779,84 +779,84 @@
       int c;
       c = guththila_xml_pull_parser_next_char (environment, parser, -1);
       if (c == -1)
-	return -1;
+   return -1;
 
       switch (parser->status)
         {
         case S_1:
-	  while (isspace(c))
+     while (isspace(c))
             {
-	      c = guththila_xml_pull_parser_next_char (environment, parser, -1);
-		if (c == -1)
-		  return -1;
-		  }
+         c = guththila_xml_pull_parser_next_char (environment, parser, -1);
+      if (c == -1)
+        return -1;
+        }
 
             if ('<' == c)
-	      parser->status = S_2;
+         parser->status = S_2;
             else
-	      parser->status = S_0;
+         parser->status = S_0;
             break;
         case S_2:
-	  {
-	    if ('?' == c)
-	      {
-		guththila_xml_pull_parser_process_xml_decl (environment,
-							    parser);
-		parser->status = S_3;
-	      }
-	    else if ('!' == c)
-	      {
-		guththila_xml_pull_parser_process_comment (environment,
-							   parser);
-		parser->status = S_4;
-	      }
-	    else
-	      {
-		guththila_xml_pull_parser_processSTagOrEmptyElem
-		  (environment, parser);
-		parser->status = S_3;
-	      }
-	  }
-	  break;
+     {
+       if ('?' == c)
+         {
+      guththila_xml_pull_parser_process_xml_decl (environment,
+                         parser);
+      parser->status = S_3;
+         }
+       else if ('!' == c)
+         {
+      guththila_xml_pull_parser_process_comment (environment,
+                        parser);
+      parser->status = S_4;
+         }
+       else
+         {
+      guththila_xml_pull_parser_processSTagOrEmptyElem
+        (environment, parser);
+      parser->status = S_3;
+         }
+     }
+     break;
         case S_3:
-	  if ('<' == c)
-	    parser->status = S_4;
-	  else
+     if ('<' == c)
+       parser->status = S_4;
+     else
             {
-	      c = guththila_xml_pull_parser_process_char_data (environment,
-							       parser);
-	      if ('<' == c)
+         c = guththila_xml_pull_parser_process_char_data (environment,
+                            parser);
+         if ('<' == c)
                 {
-		  parser->status = S_4;
-		  return parser->guththila_event;
+        parser->status = S_4;
+        return parser->guththila_event;
                 }
-	      else if ('\0' == c)
-		parser->status = S_3;
-	      else
-		parser->status = S_0;
+         else if ('\0' == c)
+      parser->status = S_3;
+         else
+      parser->status = S_0;
             }
-	  break;
+     break;
         case S_4:
-	  if ('/' == c)
+     if ('/' == c)
             {
-	      guththila_xml_pull_parser_process_end_tag (environment,
-							 parser);
-	      parser->status = S_3;
+         guththila_xml_pull_parser_process_end_tag (environment,
+                      parser);
+         parser->status = S_3;
             }
-	  else if ('?' == c)
-	    guththila_xml_pull_parser_process_pi (environment, parser);
-	  else if ('!' == c)
-	    guththila_xml_pull_parser_process_comment (environment,
-						       parser);
-	  else
+     else if ('?' == c)
+       guththila_xml_pull_parser_process_pi (environment, parser);
+     else if ('!' == c)
+       guththila_xml_pull_parser_process_comment (environment,
+                         parser);
+     else
             {
-	      guththila_xml_pull_parser_processSTagOrEmptyElem (environment,
-								parser);
-	      parser->status = S_3;
+         guththila_xml_pull_parser_processSTagOrEmptyElem (environment,
+                        parser);
+         parser->status = S_3;
             }
-	  break;
+     break;
         case S_0:
-	  guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_TOKENIZE_ERROR);
+     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_TOKENIZE_ERROR);
         }
     }
   while (parser->status != S_3);
@@ -878,120 +878,120 @@
 
     case GUTHTHILA_START_DOCUMENT:
       {
-	int ix;
-	guththila_token_t *token;
-	guththila_token_t *att_name;
-	guththila_token_t *att_value;
-	ix = AXIS2_STACK_SIZE (parser->stack, environment);
-	for (; ix > 0; ix--)
-	  {
-	    token = (guththila_token_t *)AXIS2_STACK_POP (parser->stack, environment);
-	    if (token->type == _attribute_value)
-	      {
-		att_value = token;
-		token = (guththila_token_t *)AXIS2_STACK_POP (parser->stack, environment);
-		ix--;
-		att_name = token;
-		guththila_xml_pull_parser_add_attribute (environment,
-							 parser, att_name,
-							 att_value);
-	      }
-	  }
+   int ix;
+   guththila_token_t *token;
+   guththila_token_t *att_name;
+   guththila_token_t *att_value;
+   ix = AXIS2_STACK_SIZE (parser->stack, environment);
+   for (; ix > 0; ix--)
+     {
+       token = (guththila_token_t *)AXIS2_STACK_POP (parser->stack, environment);
+       if (token->type == _attribute_value)
+         {
+      att_value = token;
+      token = (guththila_token_t *)AXIS2_STACK_POP (parser->stack, environment);
+      ix--;
+      att_name = token;
+      guththila_xml_pull_parser_add_attribute (environment,
+                      parser, att_name,
+                      att_value);
+         }
+     }
       }
       break;
     case GUTHTHILA_START_ELEMENT:
     case GUTHTHILA_EMPTY_ELEMENT:
       {
-	int is = 0;
-	guththila_token_t *token;
-	guththila_token_t *name = NULL;
-	guththila_token_t *value = NULL;
-	is = AXIS2_STACK_SIZE (parser->stack, environment);
-	for (;
-	     is > 0 && 	AXIS2_STACK_SIZE (parser->stack, environment);
-	     is--)
-	  {
-	    token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
-	    /* be careful about memory leaks, when we pull it we get
-	       seperate _element need to free it properly */
-	    if (token->type == _attribute_value)
-	      {
-		value = token;
-		token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
-		is--;
-		name = token;
-		if (!guththila_token_compare
-		    (environment, token, "xmlns", 5,
-		     parser->unicode_state))
-		  guththila_xml_pull_parser_add_namespace (environment,
-							   parser, name,
-							   value);
-		else
-		  guththila_xml_pull_parser_add_attribute (environment,
-							   parser, name,
-							   value);
-	      }
-	    else if (token->type == _name)
-	      {
-		name = token;
-		parser->name = name;
-		parser->prefix = NULL;
-
-	      }
-	    else if (token->type == _prefix)
-	      {
-		guththila_attribute_t *attribute;
-		if (!guththila_token_compare
-		    (environment, token, "xmlns", 5,
-		     parser->unicode_state))
-		  {
-		    attribute = (guththila_attribute_t *) AXIS2_STACK_POP ( parser->attrib, environment);
-		    guththila_xml_pull_parser_add_namespace (environment,
-							     parser,
-							     attribute->
-							     name,
-							     attribute->
-							     value);
-		  }
-		else
-		  {
-		    if (parser->name)
-		      parser->prefix = token;
-		    else
-		      {
-			attribute = (guththila_attribute_t *) AXIS2_STACK_POP ( parser->attrib, environment);
-			guththila_xml_pull_parser_add_attribute_with_prefix
-			  (environment, parser, token,
-			   attribute->name, attribute->value);
-		      }
-		  }
-	      }
-	    else
-	      guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_INVALID_TOKEN_TYPE);
-	  }
-	guththila_xml_pull_parser_open_element (environment, parser);
+   int is = 0;
+   guththila_token_t *token;
+   guththila_token_t *name = NULL;
+   guththila_token_t *value = NULL;
+   is = AXIS2_STACK_SIZE (parser->stack, environment);
+   for (;
+        is > 0 &&    AXIS2_STACK_SIZE (parser->stack, environment);
+        is--)
+     {
+       token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
+       /* be careful about memory leaks, when we pull it we get
+          seperate _element need to free it properly */
+       if (token->type == _attribute_value)
+         {
+      value = token;
+      token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
+      is--;
+      name = token;
+      if (!guththila_token_compare
+          (environment, token, "xmlns", 5,
+           parser->unicode_state))
+        guththila_xml_pull_parser_add_namespace (environment,
+                        parser, name,
+                        value);
+      else
+        guththila_xml_pull_parser_add_attribute (environment,
+                        parser, name,
+                        value);
+         }
+       else if (token->type == _name)
+         {
+      name = token;
+      parser->name = name;
+      parser->prefix = NULL;
+
+         }
+       else if (token->type == _prefix)
+         {
+      guththila_attribute_t *attribute;
+      if (!guththila_token_compare
+          (environment, token, "xmlns", 5,
+           parser->unicode_state))
+        {
+          attribute = (guththila_attribute_t *) AXIS2_STACK_POP ( parser->attrib, environment);
+          guththila_xml_pull_parser_add_namespace (environment,
+                          parser,
+                          attribute->
+                          name,
+                          attribute->
+                          value);
+        }
+      else
+        {
+          if (parser->name)
+            parser->prefix = token;
+          else
+            {
+         attribute = (guththila_attribute_t *) AXIS2_STACK_POP ( parser->attrib, environment);
+         guththila_xml_pull_parser_add_attribute_with_prefix
+           (environment, parser, token,
+            attribute->name, attribute->value);
+            }
+        }
+         }
+       else
+         guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_INVALID_TOKEN_TYPE);
+     }
+   guththila_xml_pull_parser_open_element (environment, parser);
       }
       break;
     case GUTHTHILA_END_ELEMENT:
       {
-	guththila_token_t *token;
-	token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
-	if (token->type == _name)
-	  parser->name = token;
-
-	if (AXIS2_STACK_SIZE (parser->stack, environment))
-	  {
-	    token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
-	    if (token->type == _prefix)
-	      parser->prefix = token;
-	  }
+   guththila_token_t *token;
+   token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
+   if (token->type == _name)
+     parser->name = token;
+
+   if (AXIS2_STACK_SIZE (parser->stack, environment))
+     {
+       token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
+       if (token->type == _prefix)
+         parser->prefix = token;
+     }
       }
       break;
     case GUTHTHILA_CHARACTER:
       {
-	guththila_token_t *token;
-	token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
-	parser->value = token;
+   guththila_token_t *token;
+   token = (guththila_token_t *) AXIS2_STACK_POP (parser->stack, environment);
+   parser->value = token;
       }
       break;
     case GUTHTHILA_ENTITY_REFERANCE:
@@ -1011,7 +1011,7 @@
   int ii;
   guththila_depth_t *m =
     (guththila_depth_t *) AXIS2_MALLOC (environment->allocator,
-					sizeof (guththila_depth_t));
+               sizeof (guththila_depth_t));
   guththila_depth_t *l = NULL;
   guththila_depth_t *depth;
   ii = AXIS2_STACK_SIZE (parser->dep, environment);
@@ -1050,13 +1050,13 @@
       namespace = (guththila_namespace_t *) AXIS2_STACK_POP (parser->namesp, environment);
       if (namespace->name)
         {
-	  AXIS2_FREE (environment->allocator, namespace->name);
-	  namespace->name = NULL;
+     AXIS2_FREE (environment->allocator, namespace->name);
+     namespace->name = NULL;
         }
       if (namespace->uri)
         {
-	  AXIS2_FREE (environment->allocator, namespace->uri);
-	  namespace->uri = NULL;
+     AXIS2_FREE (environment->allocator, namespace->uri);
+     namespace->uri = NULL;
         }
       
     }
@@ -1074,8 +1074,8 @@
   guththila_attribute_t *att;
   att =
     (guththila_attribute_t *) AXIS2_MALLOC (environment->allocator,
-					    sizeof
-					    (guththila_attribute_t));
+                   sizeof
+                   (guththila_attribute_t));
   att->name = name;
   att->value = value;
   att->prefix = NULL;
@@ -1098,8 +1098,8 @@
   guththila_attribute_t *att;
   att =
     (guththila_attribute_t *) AXIS2_MALLOC (environment->allocator,
-					    sizeof
-					    (guththila_attribute_t));
+                   sizeof
+                   (guththila_attribute_t));
   att->name = name;
   att->value = value;
   att->prefix = prefix;
@@ -1118,8 +1118,8 @@
 {
   guththila_namespace_t *ns;
   ns = (guththila_namespace_t *) AXIS2_MALLOC (environment->allocator,
-					       sizeof
-					       (guththila_namespace_t));
+                      sizeof
+                      (guththila_namespace_t));
   ns->name =
     guththila_token_to_string (environment, name, parser->unicode_state);
   ns->length = AXIS2_STRLEN ( ns->name);
@@ -1166,7 +1166,7 @@
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_NULL_ATTRIBUTE_NAME);
   if (att->name->end)
     return guththila_token_to_string (environment, att->name,
-				      parser->unicode_state);
+                  parser->unicode_state);
   return NULL;
 }
 
@@ -1182,7 +1182,7 @@
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_NULL_ATTRIBUTE_VALUE);
   if (att->value->end)
     return guththila_token_to_string (environment, att->value,
-				      parser->unicode_state);
+                  parser->unicode_state);
   return NULL;
 }
 
@@ -1198,7 +1198,7 @@
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_ERROR_NULL_ATTRIBUTE_PREFIX);
   if (att->prefix->end)
     return guththila_token_to_string (environment, att->prefix,
-				      parser->unicode_state);
+                  parser->unicode_state);
   return NULL;
 }
 
@@ -1218,7 +1218,7 @@
       attribute = (guththila_attribute_t *) AXIS2_STACK_GET_AT (parser->attrib, environment, ix-i);
     }
   return guththila_token_to_string (environment, attribute->prefix,
-				    parser->unicode_state);
+                parser->unicode_state);
 }
 
 
@@ -1237,7 +1237,7 @@
       attribute = (guththila_attribute_t *) AXIS2_STACK_GET_AT (parser->attrib, environment, ix-i);
     }
   return guththila_token_to_string (environment, attribute->name,
-				    parser->unicode_state);
+                parser->unicode_state);
 }
 
 
@@ -1256,7 +1256,7 @@
       attribute = (guththila_attribute_t *) AXIS2_STACK_GET_AT (parser->attrib, environment, ix-i);
     }
   return guththila_token_to_string (environment, attribute->value,
-				    parser->unicode_state);
+                parser->unicode_state);
 }
 
 
@@ -1266,7 +1266,7 @@
 {
   if (parser->name->end)
     return guththila_token_to_string (environment, parser->name,
-				      parser->unicode_state);
+                  parser->unicode_state);
   return NULL;
 }
 
@@ -1277,7 +1277,7 @@
 {
   if (parser->value->end)
     return guththila_token_to_string (environment, parser->value,
-				      parser->unicode_state);
+                  parser->unicode_state);
   else
     return NULL;
 }
@@ -1289,7 +1289,7 @@
 {
   if (parser->prefix)
     return guththila_token_to_string (environment, parser->prefix,
-				      parser->unicode_state);
+                  parser->unicode_state);
   return NULL;
 }
 
@@ -1399,7 +1399,7 @@
   guththila_namespace_t *ns = NULL;
   att_prefix =
     guththila_xml_pull_parser_get_attribute_prefix_by_number (environment,
-							      parser, i);
+                           parser, i);
 
   for (ii = 0; ii <= ix; ii++)
     {
@@ -1407,12 +1407,12 @@
       ns = (guththila_namespace_t *) AXIS2_STACK_GET_AT (parser->namesp, environment, ix-ii);
       if (ns)
         {
-	  if (ns && att_prefix)
+     if (ns && att_prefix)
             {
-	      if (!
-		  (AXIS2_STRCMP
-		   ( ns->name, att_prefix)))
-		return AXIS2_STRDUP (ns->uri, environment);
+         if (!
+        (AXIS2_STRCMP
+         ( ns->name, att_prefix)))
+      return AXIS2_STRDUP (ns->uri, environment);
             }
         }
     }
@@ -1421,7 +1421,7 @@
 
 AXIS2_EXTERN guththila_char_t *
 guththila_xml_pull_parser_get_encoding(axis2_env_t *environment,
-				       guththila_xml_pull_parser_t *parser)
+                   guththila_xml_pull_parser_t *parser)
 {
   /* parser will find character encoding base on Byte Order Mark
      (BOM). */

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.h (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_pull_parser.h Thu Aug  3 23:19:55 2006
@@ -97,16 +97,16 @@
 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_read (axis2_env_t * environment,
-				guththila_xml_pull_parser_t * p);
+            guththila_xml_pull_parser_t * p);
                                 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_next_char (axis2_env_t *environment,
-				     guththila_xml_pull_parser_t * p,
-				     int eof);
+                 guththila_xml_pull_parser_t * p,
+                 int eof);
 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_tokenize (axis2_env_t *environment,
-				    guththila_xml_pull_parser_t * p);
+                guththila_xml_pull_parser_t * p);
                                         
                                         
 AXIS2_EXTERN int
@@ -114,12 +114,12 @@
 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_skip_spaces (axis2_env_t *environment,
-				       guththila_xml_pull_parser_t *p,
-				       int c);
+                   guththila_xml_pull_parser_t *p,
+                   int c);
                                            
 AXIS2_EXTERN int
 guththila_xml_pull_parser_process_xml_decl(axis2_env_t *environment,
-					   guththila_xml_pull_parser_t * p);
+                  guththila_xml_pull_parser_t * p);
                                             
 AXIS2_EXTERN int
 guththila_xml_pull_parser_process_version_info(axis2_env_t * environment,
@@ -186,7 +186,7 @@
                                       
 AXIS2_EXTERN int
 guththila_xml_pull_parser_process_end_tag (axis2_env_t *environment,
-					   guththila_xml_pull_parser_t *p);
+                  guththila_xml_pull_parser_t *p);
                                              
 AXIS2_EXTERN void
 guththila_xml_pull_parser_reset (axis2_env_t *environment,
@@ -249,15 +249,15 @@
 
 AXIS2_EXTERN int
 guththila_xml_pull_parser_next (axis2_env_t * environment,
-				guththila_xml_pull_parser_t * p);
+            guththila_xml_pull_parser_t * p);
                                 
 AXIS2_EXTERN guththila_xml_pull_parser_t *
 guththila_xml_pull_parser_create (axis2_env_t * environment,
-				  guththila_reader_t * r);
+              guththila_reader_t * r);
                                   
 AXIS2_EXTERN void
 guththila_xml_pull_parser_free (axis2_env_t * environment,
-				guththila_xml_pull_parser_t * parser);
+            guththila_xml_pull_parser_t * parser);
                                
 AXIS2_EXTERN int
 guththila_xml_pull_parser_get_attribute_count 
@@ -288,7 +288,7 @@
                                  
 AXIS2_EXTERN guththila_attribute_t *
 guththila_xml_pull_parser_get_attribute (axis2_env_t *environment,
-					 guththila_xml_pull_parser_t * p);
+                guththila_xml_pull_parser_t * p);
                                          
                                          
 AXIS2_EXTERN guththila_char_t *
@@ -314,22 +314,22 @@
                                          
 AXIS2_EXTERN guththila_char_t *
 guththila_xml_pull_parser_get_name (axis2_env_t * environment,
-				    guththila_xml_pull_parser_t * p);
+                guththila_xml_pull_parser_t * p);
                                     
                                     
 AXIS2_EXTERN guththila_char_t *
 guththila_xml_pull_parser_get_prefix (axis2_env_t * environment,
-				      guththila_xml_pull_parser_t * p);
+                  guththila_xml_pull_parser_t * p);
                                       
                                       
 AXIS2_EXTERN guththila_char_t *
 guththila_xml_pull_parser_get_value (axis2_env_t * environment,
-				     guththila_xml_pull_parser_t * p);
+                 guththila_xml_pull_parser_t * p);
                                      
                                      
 AXIS2_EXTERN guththila_namespace_t *
 guththila_xml_pull_parser_get_namespace (axis2_env_t *environment,
-					 guththila_xml_pull_parser_t * p);
+                guththila_xml_pull_parser_t * p);
                                          
                                          
 AXIS2_EXTERN int

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c Thu Aug  3 23:19:55 2006
@@ -13,8 +13,8 @@
  *   See the License for the specific language governing permissions and
  *   limitations under the License.
  *
- *	
- * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)	
+ *   
+ * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)   
  */
 
 #include "guththila_xml_pull_parser.h"
@@ -34,7 +34,7 @@
       p->xsw->depth = axis2_stack_create (env);
       p->xsw->next = 0;
       p->xsw->offset = 0;
-      p->xsw->last = 1024;	/* size of the buffer */
+      p->xsw->last = 1024;   /* size of the buffer */
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
@@ -88,14 +88,14 @@
     {
       guththila_xml_pull_parser_closeStartElement (env, p);
       if (element)
-	{
-	  guththila_xml_pull_parser_writeToBuffer (env, p, "</");
-	  guththila_xml_pull_parser_writeToBuffer (env, p, element);
-	  guththila_xml_pull_parser_writeToBuffer (env, p, ">");
-	  guththila_xml_pull_parser_close_depth_element (env, p);
-	}
+   {
+     guththila_xml_pull_parser_writeToBuffer (env, p, "</");
+     guththila_xml_pull_parser_writeToBuffer (env, p, element);
+     guththila_xml_pull_parser_writeToBuffer (env, p, ">");
+     guththila_xml_pull_parser_close_depth_element (env, p);
+   }
       else
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
     }
 }
 
@@ -127,16 +127,16 @@
       guththila_xml_pull_parser_closeStartElement (env, p);
       size = AXIS2_STACK_SIZE (p->xsw->element, env);
       if (size)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->element, env, 0);
-	  if (!strcmp ((char *)element, start_element))
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->element, env, 0);
+     if (!strcmp ((char *)element, start_element))
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+   }
       guththila_xml_pull_parser_checkNameValidity (env, p,start_element);
       p->xsw->start_element_open = 1;
 
       if (!p->xsw->empty_element_open)
-	AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
+   AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
       guththila_xml_pull_parser_writeToBuffer (env, p,"<");
       guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
     }
@@ -150,19 +150,19 @@
     {
       guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
       if (p->xsw->next >= p->xsw->last)
-	{
-	  guththila_xml_pull_parser_flush (env, p);
-	  p->xsw->next = 0;
-	  p->xsw->offset = 0;
-	}
+   {
+     guththila_xml_pull_parser_flush (env, p);
+     p->xsw->next = 0;
+     p->xsw->offset = 0;
+   }
       else
-	{
-	  int length;
-	  length = strlen (buff);
-	  strcat ((p->xsw->writer_buffer->buff) + (p->xsw->next), buff);
-	  p->xsw->offset = p->xsw->next;
-	  p->xsw->next += length;
-	}
+   {
+     int length;
+     length = strlen (buff);
+     strcat ((p->xsw->writer_buffer->buff) + (p->xsw->next), buff);
+     p->xsw->offset = p->xsw->next;
+     p->xsw->next += length;
+   }
     }
 }
 
@@ -226,10 +226,10 @@
   for (ii = 1; ii < length; ii++)
     {
       if ((name[ii] == '$' || name[ii] == '^' || name[ii] == '%'
-	   || name[ii] == ';' || name[ii] == '\'' || name[ii] == '"'
-	   || name[ii] == '&' || name[ii] == '<' || name[ii] == '>'
-	   || isspace(name[ii])))
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME);
+      || name[ii] == ';' || name[ii] == '\'' || name[ii] == '"'
+      || name[ii] == '&' || name[ii] == '<' || name[ii] == '>'
+      || isspace(name[ii])))
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME);
     }
 }
 
@@ -242,7 +242,7 @@
   for (ii = 0x4e00 ; ii < 0x9fa5; ii ++)
     {
       if (ii == xy[0])
-	return 1;
+   return 1;
     }
 
   if (0x3007 == xy[0])
@@ -251,7 +251,7 @@
   for (ii = 0x3021 ; ii <  0x3029; ii ++)
     {
       if (ii == xy[0])
-	return 1;
+   return 1;
     }
   return 0;
 }
@@ -279,33 +279,33 @@
   if (buff)
     {
       switch (buff[0])
-	{
-	case '>':
-	  {
-	    guththila_xml_pull_parser_writeToBuffer (env, p,"&gt;");
-	  }
-	  break;
-	case '<':
-	  {
-	    guththila_xml_pull_parser_writeToBuffer (env, p,"&lt;");
-	  }
-	  break;
-	case '\'':
-	  {
-	    guththila_xml_pull_parser_writeToBuffer (env, p,"&apos;");
-	  }
-	  break;
-	case '"':
-	  {
-	    guththila_xml_pull_parser_writeToBuffer (env, p,"&quot;");
-	  }
-	  break;
-	case '&':
-	  {
-	    guththila_xml_pull_parser_writeToBuffer (env, p,"&amp;");
-	  }
-	  break;
-	};
+   {
+   case '>':
+     {
+       guththila_xml_pull_parser_writeToBuffer (env, p,"&gt;");
+     }
+     break;
+   case '<':
+     {
+       guththila_xml_pull_parser_writeToBuffer (env, p,"&lt;");
+     }
+     break;
+   case '\'':
+     {
+       guththila_xml_pull_parser_writeToBuffer (env, p,"&apos;");
+     }
+     break;
+   case '"':
+     {
+       guththila_xml_pull_parser_writeToBuffer (env, p,"&quot;");
+     }
+     break;
+   case '&':
+     {
+       guththila_xml_pull_parser_writeToBuffer (env, p,"&amp;");
+     }
+     break;
+   };
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_INVALID_BUFFER);
@@ -327,21 +327,21 @@
     {
       int ii;
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
-	  if (element)
-	    {
-	      attr = (guththila_attribute_t *)element;
-	      if (!strcmp((char *)attr->name, local_name))
-		guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-	      else
-		{
-		  guththila_xml_pull_parser_doWriteAttribute (env, p,local_name, value);
-		  break;
-		}
-	    }
-	}
-	    
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
+     if (element)
+       {
+         attr = (guththila_attribute_t *)element;
+         if (!strcmp((char *)attr->name, local_name))
+      guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+         else
+      {
+        guththila_xml_pull_parser_doWriteAttribute (env, p,local_name, value);
+        break;
+      }
+       }
+   }
+       
     }
   else
     {
@@ -399,9 +399,9 @@
     {
      
       if (guththila_xml_pull_parser_checkDefaultNamespace (env, p,namespace_uri))
-	{
-	  guththila_xml_pull_parser_doWriteDefaultNamespace (env, p,namespace_uri);
-	}
+   {
+     guththila_xml_pull_parser_doWriteDefaultNamespace (env, p,namespace_uri);
+   }
     }
 }
 
@@ -417,18 +417,18 @@
   if (size)
     {
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
-	  if (element)
-	    {
-	      ns = (guththila_namespace_t *)element;
-	      if (ns)
-		{
-		  if (!ns->length || !strcmp (ns->uri, ns_uri))
-		    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
+     if (element)
+       {
+         ns = (guththila_namespace_t *)element;
+         if (ns)
+      {
+        if (!ns->length || !strcmp (ns->uri, ns_uri))
+          guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+      }
+       }
+   }
       return 1;
 
     }
@@ -466,7 +466,7 @@
   else
     {
       if (guththila_xml_pull_parser_checkPrefixValidity (env, p,prefix, uri))
-	guththila_xml_pull_parser_doWriteNamespace (env, p,prefix, uri);
+   guththila_xml_pull_parser_doWriteNamespace (env, p,prefix, uri);
     }
 
 }
@@ -483,26 +483,26 @@
   if (size)
     {
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
-	  if (element)
-	    {
-	      ns = (guththila_namespace_t *)element;
-	      if (ns->name)
-		{
-		  if (!strcmp (ns->name, prefix))
-		    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		}
-	      if (uri)
-		{
-		  if (ns->uri)
-		    {
-		      if (!strcmp (ns->uri, uri))
-			guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		    }
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
+     if (element)
+       {
+         ns = (guththila_namespace_t *)element;
+         if (ns->name)
+      {
+        if (!strcmp (ns->name, prefix))
+          guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+      }
+         if (uri)
+      {
+        if (ns->uri)
+          {
+            if (!strcmp (ns->uri, uri))
+         guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+          }
+      }
+       }
+   }
       return 1;
     }
   else
@@ -531,8 +531,8 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_writeAttribute_with_prefix_and_namespace (axis2_env_t *env, guththila_xml_pull_parser_t *p,
-							 const char *prefix, const char *namespace,
-							 const char *local_name, const char *value)
+                      const char *prefix, const char *namespace,
+                      const char *local_name, const char *value)
 {
   int size = 0;
   void *element;
@@ -549,31 +549,31 @@
     {
       int ii;
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
-	  if (element)
-	    {
-	      attr = (guththila_attribute_t *)element;
-	      /* We want to make sure that out checking attribute has
-		 the prefix otherwise we don't wan't to worry */
-	      if (attr->name && attr->prefix) 
-		{
-		  if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
-		    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		  else
-		    {
-		      guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (env, p,prefix, namespace, local_name, value);
-		      break;
-		    }
-		}
-	      else
-		{
-		  /* since att->prefix is null im going to write it here */
-		  guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (env, p,prefix, namespace, local_name, value);
-		  break;
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
+     if (element)
+       {
+         attr = (guththila_attribute_t *)element;
+         /* We want to make sure that out checking attribute has
+       the prefix otherwise we don't wan't to worry */
+         if (attr->name && attr->prefix) 
+      {
+        if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
+          guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+        else
+          {
+            guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (env, p,prefix, namespace, local_name, value);
+            break;
+          }
+      }
+         else
+      {
+        /* since att->prefix is null im going to write it here */
+        guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (env, p,prefix, namespace, local_name, value);
+        break;
+      }
+       }
+   }
       
     }
   else
@@ -586,8 +586,8 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (axis2_env_t *env, guththila_xml_pull_parser_t *p, 
-							   const char *prefix, const char *namespace_uri,
-							   const char *local_name, const char *value)
+                        const char *prefix, const char *namespace_uri,
+                        const char *local_name, const char *value)
 {
   guththila_attribute_t *attr = (guththila_attribute_t *) AXIS2_MALLOC (env->allocator, sizeof (guththila_attribute_t));
   
@@ -629,7 +629,7 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_writeAttribute_with_prefix (axis2_env_t *env, guththila_xml_pull_parser_t *p, const char *prefix,
-					   const char *local_name, const char *value)
+                  const char *local_name, const char *value)
 {
   int size = 0;
   void *element;
@@ -643,40 +643,40 @@
     {
       size = AXIS2_STACK_SIZE (p->xsw->attribute, env);
       if (size)
-	{
-	  int ii;
-	  for (ii = 0; ii <= size; ii++)
-	    {
-	      element = AXIS2_STACK_GET_AT (p->xsw->attribute, env,  ii);
-	      if (element)
-		{
-		  attr = (guththila_attribute_t *)element;
-		  /* We want to make sure that out checking attribute has
-		     the prefix otherwise we don't wan't to worry */
-		  if (attr->name && attr->prefix) 
-		    {
-		      if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
-			guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		      else
-			{
-			  guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-			  break;
-			}
-		    }
-		  else
-		    {
-		      /* since att->prefix is null im going to write it here */
-		      guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-		      break;
-		    }
-		}
-	    }
+   {
+     int ii;
+     for (ii = 0; ii <= size; ii++)
+       {
+         element = AXIS2_STACK_GET_AT (p->xsw->attribute, env,  ii);
+         if (element)
+      {
+        attr = (guththila_attribute_t *)element;
+        /* We want to make sure that out checking attribute has
+           the prefix otherwise we don't wan't to worry */
+        if (attr->name && attr->prefix) 
+          {
+            if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
+         guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+            else
+         {
+           guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+           break;
+         }
+          }
+        else
+          {
+            /* since att->prefix is null im going to write it here */
+            guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+            break;
+          }
+      }
+       }
       
-	}
+   }
       else
-	{
-	  guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-	}
+   {
+     guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+   }
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX);
@@ -686,7 +686,7 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_doWriteAttribute_with_prefix(axis2_env_t *env, guththila_xml_pull_parser_t *p, const char *prefix,
-					    const char *local_name, const char *value)
+                   const char *local_name, const char *value)
 {
   guththila_xml_pull_parser_doWriteAttribute_with_prefix_and_namespace (env, p,prefix, NULL, local_name, value);
 }
@@ -703,18 +703,18 @@
   if (size)
     {
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, ii);
-	  if (element)
-	    {
-	      ns = (guththila_namespace_t *)element;
-	      if (ns->name)
-		{
-		  if (!strcmp (ns->name, prefix))
-		    return 1;
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, ii);
+     if (element)
+       {
+         ns = (guththila_namespace_t *)element;
+         if (ns->name)
+      {
+        if (!strcmp (ns->name, prefix))
+          return 1;
+      }
+       }
+   }
       return 0;
     }
   else
@@ -733,18 +733,18 @@
   if (size)
     {
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->namespace, env , size - ii);
-	  if (element)
-	    {
-	      ns = (guththila_namespace_t *)element;
-	      if (ns->uri)
-		{
-		  if (!strcmp (ns->uri, uri))
-		    return 1;
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->namespace, env , size - ii);
+     if (element)
+       {
+         ns = (guththila_namespace_t *)element;
+         if (ns->uri)
+      {
+        if (!strcmp (ns->uri, uri))
+          return 1;
+      }
+       }
+   }
       return 0;
     }
   else
@@ -754,7 +754,7 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_writeAttribute_with_namespace (axis2_env_t *env, guththila_xml_pull_parser_t *p, const char *namespace,
-					      const char *local_name, const char *value)
+                     const char *local_name, const char *value)
 {
   int size = 0;
   void *element;
@@ -769,40 +769,40 @@
       prefix = guththila_xml_pull_parser_getPrefixForNamespace (env, p, namespace);
       size = AXIS2_STACK_SIZE (p->xsw->attribute, env);
       if (size)
-	{
-	  int ii;
-	  for (ii = 0; ii <= size; ii++)
-	    {
-	      element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
-	      if (element)
-		{
-		  attr = (guththila_attribute_t *)element;
-		  /* We want to make sure that out checking attribute has
-		     the namespace otherwise we don't wan't to worry */
-		  if (attr->name && attr->prefix) 
-		    {
-		      if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
-			guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-		      else
-			{
-			  guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-			  break;
-			}
-		    }
-		  else
-		    {
-		      /* since att->prefix is null im going to write it here */
-		      guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-		      break;
-		    }
-		}
-	    }
+   {
+     int ii;
+     for (ii = 0; ii <= size; ii++)
+       {
+         element = AXIS2_STACK_GET_AT (p->xsw->attribute, env, size - ii);
+         if (element)
+      {
+        attr = (guththila_attribute_t *)element;
+        /* We want to make sure that out checking attribute has
+           the namespace otherwise we don't wan't to worry */
+        if (attr->name && attr->prefix) 
+          {
+            if (!strcmp((char *)attr->name, local_name) && !strcmp((char *)attr->prefix, prefix))
+         guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+            else
+         {
+           guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+           break;
+         }
+          }
+        else
+          {
+            /* since att->prefix is null im going to write it here */
+            guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+            break;
+          }
+      }
+       }
       
-	}
+   }
       else
-	{
-	  guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
-	}
+   {
+     guththila_xml_pull_parser_doWriteAttribute_with_prefix (env, p,prefix, local_name, value);
+   }
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI);
@@ -820,18 +820,18 @@
   if (size)
     {
       for (ii = 0; ii <= size; ii++)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
-	  if (element)
-	    {
-	      ns = (guththila_namespace_t *)element;
-	      if (ns->uri)
-		{
-		  if (!strcmp (ns->uri, namespace))
-		    return (char *)ns->name;
-		}
-	    }
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->namespace, env, size - ii);
+     if (element)
+       {
+         ns = (guththila_namespace_t *)element;
+         if (ns->uri)
+      {
+        if (!strcmp (ns->uri, namespace))
+          return (char *)ns->name;
+      }
+       }
+   }
       return 0;
     }
   else
@@ -841,7 +841,7 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_writeStartElement_with_prefix_and_namespace (axis2_env_t *env, guththila_xml_pull_parser_t *p, const char *prefix,
-							    const char *namespace_uri, const char *local_name)
+                         const char *namespace_uri, const char *local_name)
 {
   int size;
   void *element;
@@ -854,24 +854,24 @@
       guththila_xml_pull_parser_closeStartElement (env, p);
      
       if (prefix)
-	{
-	  strcat (start_element, prefix);
-	  strcat (start_element, ":");
-	  strcat (start_element, local_name);
-	} 
+   {
+     strcat (start_element, prefix);
+     strcat (start_element, ":");
+     strcat (start_element, local_name);
+   } 
       size = AXIS2_STACK_SIZE (p->xsw->element, env);
       if (size)
-	{
-	  element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
-	  if (!strcmp ((char *)element, start_element))
-	    guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-	}
+   {
+     element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
+     if (!strcmp ((char *)element, start_element))
+       guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+   }
 
       guththila_xml_pull_parser_checkNameValidity (env, p,start_element);
       p->xsw->start_element_open = 1;
       
       if (!p->xsw->empty_element_open)
-	AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
+   AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
       guththila_xml_pull_parser_writeToBuffer (env, p,"<");
       guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
       guththila_xml_pull_parser_writeNamespace (env, p,(char *)prefix, (char *)namespace_uri);
@@ -888,41 +888,41 @@
   if (guththila_xml_pull_parser_isExsistingNamespaceUri (env, p,namespace_uri))
     {
       if (!p || !local_name)
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
       else
-	{
-	  guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
-	  guththila_xml_pull_parser_closeStartElement (env, p);
-	  char *prefix = guththila_xml_pull_parser_getPrefixForNamespace (env, p,namespace_uri);
-	  if (prefix)
-	    start_element = (char *) calloc ((strlen (prefix) + strlen (local_name) +2), 1);
-	  else
-	    start_element = (char *) calloc ((strlen (local_name) +2), 1);
+   {
+     guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
+     guththila_xml_pull_parser_closeStartElement (env, p);
+     char *prefix = guththila_xml_pull_parser_getPrefixForNamespace (env, p,namespace_uri);
+     if (prefix)
+       start_element = (char *) calloc ((strlen (prefix) + strlen (local_name) +2), 1);
+     else
+       start_element = (char *) calloc ((strlen (local_name) +2), 1);
      
-	  if (prefix)
-	    {
-	      strcat (start_element, prefix);
-	      strcat (start_element, ":");
-	      strcat (start_element, local_name);
-	    } 
-	  else
-	    strcat (start_element, local_name);
-	  size = AXIS2_STACK_SIZE (p->xsw->element, env);
-	  if (size)
-	    {
-	      element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
-	      if (!strcmp ((char *)element, start_element))
-		guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-	    }
+     if (prefix)
+       {
+         strcat (start_element, prefix);
+         strcat (start_element, ":");
+         strcat (start_element, local_name);
+       } 
+     else
+       strcat (start_element, local_name);
+     size = AXIS2_STACK_SIZE (p->xsw->element, env);
+     if (size)
+       {
+         element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
+         if (!strcmp ((char *)element, start_element))
+      guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+       }
 
-	  guththila_xml_pull_parser_checkNameValidity (env, p,start_element);
-	  p->xsw->start_element_open = 1;
+     guththila_xml_pull_parser_checkNameValidity (env, p,start_element);
+     p->xsw->start_element_open = 1;
       
-	  if (!p->xsw->empty_element_open)
-	    AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
-	  guththila_xml_pull_parser_writeToBuffer (env, p,"<");
-	  guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
-	}
+     if (!p->xsw->empty_element_open)
+       AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
+     guththila_xml_pull_parser_writeToBuffer (env, p,"<");
+     guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
+   }
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI);
@@ -938,37 +938,37 @@
   if (guththila_xml_pull_parser_isExsistingPrefix (env, p,prefix))
     {
       if (!p || !local_name)
-	guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
+   guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS);
       else
-	{
-	  guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
-	  guththila_xml_pull_parser_closeStartElement (env, p);
-	  
-	  if (prefix)
-	    start_element = (char *) calloc ((strlen (prefix) + strlen (local_name) +2), 1);
-	       
-	  if (prefix)
-	    {
-	      strcat (start_element, prefix);
-	      strcat (start_element, ":");
-	      strcat (start_element, local_name);
-	    } 
-	  size = AXIS2_STACK_SIZE (p->xsw->element, env);
-	  if (size)
-	    {
-	      element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
-	      if (!strcmp ((char *)element, start_element))
-		guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
-	    }
+   {
+     guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
+     guththila_xml_pull_parser_closeStartElement (env, p);
+     
+     if (prefix)
+       start_element = (char *) calloc ((strlen (prefix) + strlen (local_name) +2), 1);
+          
+     if (prefix)
+       {
+         strcat (start_element, prefix);
+         strcat (start_element, ":");
+         strcat (start_element, local_name);
+       } 
+     size = AXIS2_STACK_SIZE (p->xsw->element, env);
+     if (size)
+       {
+         element = AXIS2_STACK_GET_AT (p->xsw->element, env, size);
+         if (!strcmp ((char *)element, start_element))
+      guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS);
+       }
 
-	  guththila_xml_pull_parser_checkNameValidity (env, p, start_element);
-	  p->xsw->start_element_open = 1;
+     guththila_xml_pull_parser_checkNameValidity (env, p, start_element);
+     p->xsw->start_element_open = 1;
       
-	  if (!p->xsw->empty_element_open)
-	    AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
-	  guththila_xml_pull_parser_writeToBuffer (env, p,"<");
-	  guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
-	}
+     if (!p->xsw->empty_element_open)
+       AXIS2_STACK_PUSH (p->xsw->element, env, start_element);
+     guththila_xml_pull_parser_writeToBuffer (env, p,"<");
+     guththila_xml_pull_parser_writeToBuffer  (env, p,start_element);
+   }
     }
   else
     guththila_xml_pull_parser_exception (p_FILE, LINE, GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX);
@@ -977,7 +977,7 @@
 
 AXIS2_EXTERN void
 guththila_xml_pull_parser_writeEmptyElement_with_prefix_and_namespace (axis2_env_t *env, guththila_xml_pull_parser_t *p,const char *prefix,
-							    const char *namespace_uri, const char *empty_element)
+                         const char *namespace_uri, const char *empty_element)
 {
   guththila_xml_pull_parser_checkXmlStreamWriter (env, p);
   guththila_xml_pull_parser_closeStartElement (env, p);
@@ -1041,12 +1041,12 @@
   if (d->count)
     {
       for (; d->count > 0; d->count --)
-	{
-	  elem = AXIS2_STACK_POP (p->xsw->namespace, env);
-	  ns = elem;
-	  if (ns)
-	    free (ns);
-	}
+   {
+     elem = AXIS2_STACK_POP (p->xsw->namespace, env);
+     ns = elem;
+     if (ns)
+       free (ns);
+   }
     }
 }
 

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.h (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.h Thu Aug  3 23:19:55 2006
@@ -13,8 +13,8 @@
  *   See the License for the specific language governing permissions and
  *   limitations under the License.
  *
- *	
- * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)	
+ *   
+ * @author Dinesh Premalal (xydinesh@gmail.com, premalwd@cse.mrt.ac.lk)   
  */
 
 #ifndef XML_STREAMWRITER_H

Modified: webservices/axis2/trunk/c/include/axis2_any_content_type.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_any_content_type.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_any_content_type.h (original)
+++ webservices/axis2/trunk/c/include/axis2_any_content_type.h Thu Aug  3 23:19:55 2006
@@ -54,7 +54,7 @@
          * Adds given value to the content value map.
          * @param any_content_type any_content_type struct. cannot be NULL.
          * @param env pointer to environment struct. MUST NOT be NULL.
-	 * @param qname pointer to qname
+    * @param qname pointer to qname
          * @param value value to be added.
          * @return AXIS2_SUCCESS on success else AXIS2_FAILURE
          */

Modified: webservices/axis2/trunk/c/include/axis2_callback.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_callback.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_callback.h (original)
+++ webservices/axis2/trunk/c/include/axis2_callback.h Thu Aug  3 23:19:55 2006
@@ -224,7 +224,7 @@
      */
     struct axis2_callback
     {
-	    /** operations of callback */
+       /** operations of callback */
         axis2_callback_ops_t *ops;
     };
 

Modified: webservices/axis2/trunk/c/include/axis2_conf_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_conf_ctx.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_conf_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_conf_ctx.h Thu Aug  3 23:19:55 2006
@@ -220,7 +220,7 @@
                     struct axis2_conf_ctx *conf_ctx,
                     const axis2_env_t *env,
                     struct axis2_conf *conf);
-	
+   
         /**
          * @param conf_ctx pointer to configuration context
          * @param env pointer to environment struct

Modified: webservices/axis2/trunk/c/include/axis2_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_ctx.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_ctx.h Thu Aug  3 23:19:55 2006
@@ -155,7 +155,7 @@
      */
     struct axis2_ctx
     {
-	/** operations of context struct */
+   /** operations of context struct */
         axis2_ctx_ops_t *ops;
     };
 

Modified: webservices/axis2/trunk/c/include/axis2_desc.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_desc.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_desc.h (original)
+++ webservices/axis2/trunk/c/include/axis2_desc.h Thu Aug  3 23:19:55 2006
@@ -48,53 +48,53 @@
      */
     AXIS2_DECLARE_DATA struct axis2_desc_ops
     {
-	/** 
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-	 */
+   /** 
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    */
         axis2_status_t (AXIS2_CALL *
                 free)(
                     axis2_desc_t *desc,
                     const axis2_env_t *env);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param param pointer to param
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param param pointer to param
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    */
         axis2_status_t (AXIS2_CALL *
                 add_param)(
                     axis2_desc_t *desc,
                     const axis2_env_t *env,
                     axis2_param_t *param);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param param_name pointer to param name
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param param_name pointer to param name
+    */
         axis2_param_t *(AXIS2_CALL *
                 get_param) (
                     const axis2_desc_t *desc,
                     const axis2_env_t *env,
                     const axis2_char_t *param_name);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    */
         axis2_array_list_t *(AXIS2_CALL *
                 get_all_params)(
                     const axis2_desc_t *desc,
                     const axis2_env_t *env);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param param_name pointer to param name
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param param_name pointer to param name
+    */
         axis2_bool_t (AXIS2_CALL *
                 is_param_locked)(
                     const axis2_desc_t *desc,
@@ -112,12 +112,12 @@
             const axis2_desc_t *desc, 
             const axis2_env_t *env);*/
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param key pointer to key
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param key pointer to key
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    */
         axis2_status_t (AXIS2_CALL *
                 add_child)(
                     const axis2_desc_t *desc,
@@ -125,32 +125,32 @@
                     const axis2_char_t *key,
                     const void* child);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    */
         axis2_hash_t *(AXIS2_CALL *
                 get_all_children)(
                     const axis2_desc_t *desc,
                     const axis2_env_t *env);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param key pointer to key
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param key pointer to key
+    */
         void *(AXIS2_CALL *
                 get_child)(
                     const axis2_desc_t *desc,
                     const axis2_env_t *env,
                     const axis2_char_t *key);
 
-	/**
-	 * @param desc pointer to desc
-	 * @param env pointer to environment struct
-	 * @param key pointer to key
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
-	 */
+   /**
+    * @param desc pointer to desc
+    * @param env pointer to environment struct
+    * @param key pointer to key
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    */
         axis2_status_t (AXIS2_CALL *
                 remove_child)(
                     const axis2_desc_t *desc,

Modified: webservices/axis2/trunk/c/include/axis2_disp.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_disp.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_disp.h (original)
+++ webservices/axis2/trunk/c/include/axis2_disp.h Thu Aug  3 23:19:55 2006
@@ -59,7 +59,7 @@
          */
         axis2_handler_t* (AXIS2_CALL 
                 *get_base)(
-		            const axis2_disp_t *disp,
+                  const axis2_disp_t *disp,
                     const axis2_env_t *env);
 
         /**
@@ -80,7 +80,7 @@
                 *set_qname)(
                     struct axis2_disp *disp,
                     const axis2_env_t *env, 
-		            axis2_qname_t *qname);
+                  axis2_qname_t *qname);
 
         /**
          * @param disp pointer to dispatcher

Modified: webservices/axis2/trunk/c/include/axis2_disp_checker.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_disp_checker.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_disp_checker.h (original)
+++ webservices/axis2/trunk/c/include/axis2_disp_checker.h Thu Aug  3 23:19:55 2006
@@ -65,7 +65,7 @@
          */
         axis2_qname_t* (AXIS2_CALL *
                 get_qname)(
-	                const axis2_disp_checker_t *disp_checker,
+                   const axis2_disp_checker_t *disp_checker,
                     const axis2_env_t *env);
 
         /**

Modified: webservices/axis2/trunk/c/include/axis2_flow.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_flow.h?rev=428639&r1=428638&r2=428639&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_flow.h (original)
+++ webservices/axis2/trunk/c/include/axis2_flow.h Thu Aug  3 23:19:55 2006
@@ -56,9 +56,9 @@
     struct axis2_flow_ops
     {
         /** Deallocate memory
-	 * @param flow pointer to flow
-	 * @param env pointer to environment struct
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    * @param flow pointer to flow
+    * @param env pointer to environment struct
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
          */
         axis2_status_t (AXIS2_CALL *
                 free)(
@@ -67,10 +67,10 @@
 
         /**
          * Add handler description
-	 * @param flow pointer to flow
-	 * @param env pointer to environment struct
+    * @param flow pointer to flow
+    * @param env pointer to environment struct
          * @param handler handler description
-	 * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+    * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
          */
         axis2_status_t (AXIS2_CALL *
                 add_handler)(
@@ -80,8 +80,8 @@
 
         /**
          * Get handler
-	 * @param flow pointer to flow
-	 * @param env pointer to environment struct
+    * @param flow pointer to flow
+    * @param env pointer to environment struct
          * @param index index of the handler
          * @return handler description
          */
@@ -93,8 +93,8 @@
 
         /**
          * Get handler count
-	 * @param flow pointer to flow
-	 * @param env pointer to environment struct
+    * @param flow pointer to flow
+    * @param env pointer to environment struct
          * @return handler count
          */
         int (AXIS2_CALL *



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