You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2008/03/12 15:32:51 UTC
svn commit: r636339 - in /xerces/c/trunk/swig/util: ./
XMLExceptionHandler.cpp XMLExceptionHandler.hpp
Author: jasons
Date: Wed Mar 12 07:32:48 2008
New Revision: 636339
URL: http://svn.apache.org/viewvc?rev=636339&view=rev
Log:
XMLExceptionHandler singleton for copying excpetion info in catch blocks - now in language neutral dir
Added:
xerces/c/trunk/swig/util/
xerces/c/trunk/swig/util/XMLExceptionHandler.cpp
- copied, changed from r463844, xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.cpp
xerces/c/trunk/swig/util/XMLExceptionHandler.hpp
- copied, changed from r463844, xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.hpp
Copied: xerces/c/trunk/swig/util/XMLExceptionHandler.cpp (from r463844, xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.cpp)
URL: http://svn.apache.org/viewvc/xerces/c/trunk/swig/util/XMLExceptionHandler.cpp?p2=xerces/c/trunk/swig/util/XMLExceptionHandler.cpp&p1=xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.cpp&r1=463844&r2=636339&rev=636339&view=diff
==============================================================================
--- xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.cpp (original)
+++ xerces/c/trunk/swig/util/XMLExceptionHandler.cpp Wed Mar 12 07:32:48 2008
@@ -15,6 +15,7 @@
*/
#include <stdlib.h>
+#include <stdio.h>
#include "XMLExceptionHandler.hpp"
XERCES_CPP_NAMESPACE_USE
@@ -124,6 +125,6 @@
}
else
{
- croak("Unknown Exception type: %d", e.getType());
+ fprintf(stderr,"Unknown Exception type: %d", e.getType());
}
}
Copied: xerces/c/trunk/swig/util/XMLExceptionHandler.hpp (from r463844, xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.hpp)
URL: http://svn.apache.org/viewvc/xerces/c/trunk/swig/util/XMLExceptionHandler.hpp?p2=xerces/c/trunk/swig/util/XMLExceptionHandler.hpp&p1=xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.hpp&r1=463844&r2=636339&rev=636339&view=diff
==============================================================================
--- xerces/c/trunk/swig/perl/Transcoder/XMLExceptionHandler.hpp (original)
+++ xerces/c/trunk/swig/util/XMLExceptionHandler.hpp Wed Mar 12 07:32:48 2008
@@ -17,20 +17,6 @@
#ifndef __XMLEXCEPTIONHANDLER
#define __XMLEXCEPTIONHANDLER
-/* Needed on some windows machines---since MS plays funny
- games with the header files under C++ */
-extern "C" {
-
-#include "EXTERN.h"
-#include "perl.h"
-#include "XSUB.h"
-
-/* Get rid of free and malloc defined by perl */
-#undef free
-#undef malloc
-
-}
-
#include "xercesc/util/ArrayIndexOutOfBoundsException.hpp"
#include "xercesc/util/EmptyStackException.hpp"
#include "xercesc/util/IllegalArgumentException.hpp"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org