axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r345828 - in /webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src: guththila_errno.h guththila_error.h guththila_xml_stream_writer.c guththila_xml_stream_writer.h
Date Mon, 21 Nov 2005 04:55:27 GMT
Author: samisa
Date: Sun Nov 20 20:55:18 2005
New Revision: 345828

URL: http://svn.apache.org/viewcvs?rev=345828&view=rev
Log:
guththila_errno.h file removed as it is no longer used 

Removed:
    webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_errno.h
Modified:
    webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_error.h
    webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.c
    webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.h

Modified: webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_error.h?rev=345828&r1=345827&r2=345828&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_error.h (original)
+++ webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_error.h Sun
Nov 20 20:55:18 2005
@@ -58,6 +58,7 @@
         GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL,
         GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_PREFIX,
         GUTHTHILA_STREAM_WRITER_ERROR_OUT_OF_MEMORY,
+        GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND,
         GUTHTHILA_STREAM_READER_ERROR_OUT_OF_MEMORY
     } guththila_error_codes_t;
 

Modified: webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.c?rev=345828&r1=345827&r2=345828&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.c
(original)
+++ webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.c
Sun Nov 20 20:55:18 2005
@@ -35,19 +35,29 @@
 
 GUTHTHILA_DECLARE (guththila_xml_stream_writer_t *)
 guththila_create_xml_stream_writer (guththila_environment_t * environment,
-                                    FILE * writer,
+                                    void * writer,
                                     guththila_char_t * encoding,
                                     int prefix_defaulting)
 {
     /*   guththila_status_t status; */
     guththila_xml_stream_writer_t *stream_writer;
+    FILE *fp = NULL;
     if (!writer)
         return 0;
 
     stream_writer =
         (guththila_xml_stream_writer_t *) GUTHTHILA_MALLOC (environment->allocator,
                                           sizeof(guththila_xml_stream_writer_t));
+    if(writer)
+    {
+        fp = fopen(writer, "w");
+        if(!fp)
+            return GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND;            
+        stream_writer->writer = fp;
+    }
+    else{
     stream_writer->writer = stdout;
+    }
     stream_writer->encoding = NULL;
     if (encoding)
         stream_writer->encoding = GUTHTHILA_STRDUP(environment, encoding);

Modified: webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.h?rev=345828&r1=345827&r2=345828&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.h
(original)
+++ webservices/axis2/trunk/c/modules/xml/parser/guththila/impl/src/guththila_xml_stream_writer.h
Sun Nov 20 20:55:18 2005
@@ -37,7 +37,7 @@
 
 GUTHTHILA_DECLARE (guththila_xml_stream_writer_t *)
 guththila_create_xml_stream_writer (guththila_environment_t * environment,
-                                    FILE * writer,
+                                    void * writer,
                                     guththila_char_t * encoding,
                                     int is_prefix_defaulting);
 



Mime
View raw message