summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2003-09-23 21:13:27 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2003-09-23 21:13:27 +0000
commitcd940e3a13827391d98baa650c1aa4882057f317 (patch)
treecb2c0928442f244e02bd31e9919c4f6b564a3954 /Lib
parent8dc9f45083b89e95e843a905b74ecf6198c728f6 (diff)
downloadswig-cd940e3a13827391d98baa650c1aa4882057f317.tar.gz
Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 :
_SWIG_Exception => SWIG_Exception_ git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib')
-rw-r--r--Lib/exception.i24
1 files changed, 12 insertions, 12 deletions
diff --git a/Lib/exception.i b/Lib/exception.i
index 48333a21c..374dfc773 100644
--- a/Lib/exception.i
+++ b/Lib/exception.i
@@ -46,7 +46,7 @@
#ifdef SWIGPYTHON
%{
-static void _SWIG_exception(int code, const char *msg) {
+static void SWIG_exception_(int code, const char *msg) {
switch(code) {
case SWIG_MemoryError:
PyErr_SetString(PyExc_MemoryError,msg);
@@ -84,13 +84,13 @@ static void _SWIG_exception(int code, const char *msg) {
}
}
-#define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
+#define SWIG_exception(a,b) { SWIG_exception_(a,b); SWIG_fail; }
%}
#endif
#ifdef SWIGGUILE
%{
- static void _SWIG_exception (int code, const char *msg,
+ static void SWIG_exception_ (int code, const char *msg,
const char *subr) {
#define ERROR(scmerr) \
scm_error(gh_symbol2scm((char *) (scmerr)), \
@@ -118,14 +118,14 @@ static void _SWIG_exception(int code, const char *msg) {
#undef MAP
}
-#define SWIG_exception(a,b) _SWIG_exception(a, b, FUNC_NAME)
+#define SWIG_exception(a,b) SWIG_exception_(a, b, FUNC_NAME)
%}
#endif
#ifdef SWIGMZSCHEME
%{
- static void _SWIG_exception (int code, const char *msg) {
+ static void SWIG_exception_ (int code, const char *msg) {
#define ERROR(errname) \
scheme_signal_error(errname " (%s)", msg);
#define MAP(swigerr, errname) \
@@ -150,7 +150,7 @@ static void _SWIG_exception(int code, const char *msg) {
#undef MAP
}
-#define SWIG_exception(a,b) _SWIG_exception(a, b)
+#define SWIG_exception(a,b) SWIG_exception_(a, b)
%}
#endif
@@ -195,18 +195,18 @@ static void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
#ifdef SWIGOCAML
%{
#define OCAML_MSG_BUF_LEN 1024
-static void _SWIG_exception(int code, const char *msg) {
+static void SWIG_exception_(int code, const char *msg) {
char msg_buf[OCAML_MSG_BUF_LEN];
sprintf( msg_buf, "Exception(%d): %s\n", code, msg );
failwith( msg_buf );
}
-#define SWIG_exception(a,b) _SWIG_exception((a),(b))
+#define SWIG_exception(a,b) SWIG_exception_((a),(b))
%}
#endif
#ifdef SWIGRUBY
%{
-static void _SWIG_exception(int code, const char *msg) {
+static void SWIG_exception_(int code, const char *msg) {
switch (code) {
case SWIG_MemoryError:
rb_raise(rb_eNoMemError, msg);
@@ -246,14 +246,14 @@ static void _SWIG_exception(int code, const char *msg) {
}
}
-#define SWIG_exception(a, b) _SWIG_exception((a), (b))
+#define SWIG_exception(a, b) SWIG_exception_((a), (b))
%}
#endif
#ifdef SWIGCHICKEN
%{
#define CHICKEN_MSG_BUF_LEN 1024
-static void _SWIG_exception(int code, const char *msg) {
+static void SWIG_exception_(int code, const char *msg) {
char msg_buf[CHICKEN_MSG_BUF_LEN];
C_word *a;
C_word scmmsg;
@@ -264,7 +264,7 @@ static void _SWIG_exception(int code, const char *msg) {
scmmsg = C_string2 (&a, msg_buf);
C_halt (scmmsg);
}
-#define SWIG_exception(a,b) _SWIG_exception((a),(b))
+#define SWIG_exception(a,b) SWIG_exception_((a),(b))
%}
#endif