axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r549354 - in /webservices/axis2/trunk/c/guththila: include/guththila.h src/guththila_xml_parser.c src/guththila_xml_writer.c
Date Thu, 21 Jun 2007 04:02:49 GMT
Author: samisa
Date: Wed Jun 20 21:02:48 2007
New Revision: 549354

URL: http://svn.apache.org/viewvc?view=rev&rev=549354
Log:
Fixed warning in the code

Modified:
    webservices/axis2/trunk/c/guththila/include/guththila.h
    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?view=diff&rev=549354&r1=549353&r2=549354
==============================================================================
--- webservices/axis2/trunk/c/guththila/include/guththila.h (original)
+++ webservices/axis2/trunk/c/guththila/include/guththila.h Wed Jun 20 21:02:48 2007
@@ -121,8 +121,6 @@
 GUTHTHILA_EXPORT int GUTHTHILA_CALL guththila_un_init(guththila_t *m);
 
 
-static int GUTHTHILA_CALL guththila_next_char(guththila_t *m, int eof);
-static int GUTHTHILA_CALL guththila_next_no_char(guththila_t *m, int eof, char *bytes, int
no);
 
 typedef void  (GUTHTHILA_CALL *guththila_error_func)(void *arg, 
 						 const char *msg,

Modified: webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c?view=diff&rev=549354&r1=549353&r2=549354
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_parser.c Wed Jun 20 21:02:48 2007
@@ -23,6 +23,9 @@
 
 #define GUTHTHILA_VALIDATION_PARSER
 
+static int GUTHTHILA_CALL guththila_next_char(guththila_t *m, int eof);
+static int GUTHTHILA_CALL guththila_next_no_char(guththila_t *m, int eof, char *bytes, int
no);
+
 int is_inited = 0;
 static void GUTHTHILA_CALL guththila_token_close(guththila_t *m, guththila_token_t *tok,
int tok_type, int referer);
 static int GUTHTHILA_CALL guththila_process_xml_dec(guththila_t *m);
@@ -72,7 +75,6 @@
 static void GUTHTHILA_CALL guththila_token_close(guththila_t *m, guththila_token_t *tok,
int tok_type, int referer)
 {
 	guththila_attr_t *attr = NULL;
-	guththila_namespace_t *namesp = NULL;
 	guththila_element_t *elem = NULL;
 	guththila_elem_namesp_t *e_namesp = NULL;
 	int counter = 0, nmsp_no = 0, i = 0;
@@ -385,8 +387,7 @@
 	guththila_element_t *elem = NULL;
 	guththila_elem_namesp_t *nmsp = NULL;
 	guththila_token_t *tok = NULL;
-	int temp = 0, quote = 0, ref = 0;
-	guththila_char *last_c = NULL;
+	int quote = 0, ref = 0;
 	char c_arra[16] = {0};	
 	int c = -1;
 	guththila_attr_t *attr = NULL;
@@ -872,9 +873,7 @@
 
 GUTHTHILA_EXPORT guththila_char * GUTHTHILA_CALL guththila_get_namespace_prefix_by_number
(guththila_t * m, int i)
 {
-	guththila_token_t *token = NULL;
 	char *str = NULL;
-	guththila_namespace_t *namesp = NULL;
 #ifndef GUTHTHILA_VALIDATION_PARSER
 	if (GUTHTHILA_STACK_SIZE(m->namesp) >= i){
 		namesp = guththila_stack_get_by_index(&m->namesp, i);
@@ -898,9 +897,7 @@
 
 GUTHTHILA_EXPORT guththila_char * GUTHTHILA_CALL guththila_get_namespace_uri_by_number (guththila_t
* m, int i) 
 {
-	guththila_token_t *token = NULL;
 	char *str = NULL;
-	guththila_namespace_t *namesp = NULL;
 	/*TODO check the given index, this can begn from 1, here I assume begin from 0*/
 #ifndef GUTHTHILA_VALIDATION_PARSER
 	if (GUTHTHILA_STACK_SIZE(m->namesp) > i){
@@ -956,7 +953,7 @@
 	return "UTF-8";
 }
 
-int GUTHTHILA_CALL guththila_next_char(guththila_t *m, int eof)
+static int GUTHTHILA_CALL guththila_next_char(guththila_t *m, int eof)
 {
 	int c = -1;
 	size_t temp = 0, data_move = 0, i = 0;
@@ -1023,7 +1020,7 @@
 	return -1;
 }
 
-int GUTHTHILA_CALL guththila_next_no_char (guththila_t *m, int eof, char *bytes, int no)
+static int GUTHTHILA_CALL guththila_next_no_char (guththila_t *m, int eof, char *bytes, int
no)
 {
 	int c = -1, temp = 0, data_move = 0, i = 0;
 	char **temp1 = NULL;
@@ -1095,4 +1092,5 @@
 		}
 	}
 	return c >= 0 ? c : -1;
-}
\ No newline at end of file
+}
+

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?view=diff&rev=549354&r1=549353&r2=549354
==============================================================================
--- webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c (original)
+++ webservices/axis2/trunk/c/guththila/src/guththila_xml_writer.c Wed Jun 20 21:02:48 2007
@@ -528,7 +528,6 @@
 {
 	int cur_pos = 0;
 	size_t len = 0;
-	guththila_xml_writer_element_t *element = (guththila_xml_writer_element_t *)malloc(sizeof(guththila_xml_writer_element_t));
 	len = strlen(empty_element);
 	if (wr->status == START) {		
 		guththila_write(wr, "><", 2u);
@@ -1099,7 +1098,6 @@
 #else
 			if (!guththila_tok_str_cmp(writer_namesp->uri[j], namespace_uri, strlen(namespace_uri)))
{
 #endif
-				guththila_xml_writer_element_t *element = (guththila_xml_writer_element_t *)malloc(sizeof(guththila_xml_writer_element_t));
 				if (wr->status == START) {		
 					guththila_write(wr, "><", 2u);
 #ifndef GUTHTHILA_XML_WRITER_TOKEN
@@ -1156,7 +1154,6 @@
 #else
 			if (!guththila_tok_str_cmp(writer_namesp->name[j], prefix, pref_len)) {
 #endif
-				guththila_xml_writer_element_t *element = (guththila_xml_writer_element_t *)malloc(sizeof(guththila_xml_writer_element_t));
 				if (wr->status == START) {		
 					guththila_write(wr, "><", 2u);
 					guththila_write_xtoken(wr, prefix, pref_len);



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


Mime
View raw message