More fix for warnings, and add some of the ideas of the Bill's 'labels' patch

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-02-24 23:48:20 +00:00
commit 192e00615d
18 changed files with 177 additions and 141 deletions

View file

@ -46,7 +46,7 @@
#ifdef SWIGPYTHON
%{
static void SWIG_exception_(int code, const char *msg) {
SWIGINTERN void SWIG_exception_(int code, const char *msg) {
switch(code) {
case SWIG_MemoryError:
PyErr_SetString(PyExc_MemoryError,msg);
@ -90,7 +90,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGGUILE
%{
static void SWIG_exception_ (int code, const char *msg,
SWIGINTERN void SWIG_exception_ (int code, const char *msg,
const char *subr) {
#define ERROR(scmerr) \
scm_error(gh_symbol2scm((char *) (scmerr)), \
@ -125,7 +125,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGMZSCHEME
%{
static void SWIG_exception_ (int code, const char *msg) {
SWIGINTERN void SWIG_exception_ (int code, const char *msg) {
#define ERROR(errname) \
scheme_signal_error(errname " (%s)", msg);
#define MAP(swigerr, errname) \
@ -156,7 +156,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGJAVA
%{
static void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
SWIGINTERN void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
SWIG_JavaExceptionCodes exception_code = SWIG_JavaUnknownError;
switch(code) {
case SWIG_MemoryError:
@ -195,7 +195,7 @@ 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) {
SWIGINTERN 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 );
@ -206,7 +206,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGRUBY
%{
static void SWIG_exception_(int code, const char *msg) {
SWIGINTERN void SWIG_exception_(int code, const char *msg) {
switch (code) {
case SWIG_MemoryError:
rb_raise(rb_eNoMemError, msg);
@ -253,7 +253,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGCHICKEN
%{
#define CHICKEN_MSG_BUF_LEN 1024
static void SWIG_exception_(int code, const char *msg) {
SWIGINTERN void SWIG_exception_(int code, const char *msg) {
char msg_buf[CHICKEN_MSG_BUF_LEN];
C_word *a;
C_word scmmsg;
@ -270,7 +270,7 @@ static void SWIG_exception_(int code, const char *msg) {
#ifdef SWIGCSHARP
%{
static void SWIG_CSharpException(int code, const char *msg) {
SWIGINTERN void SWIG_CSharpException(int code, const char *msg) {
if (code == SWIG_ValueError) {
SWIG_CSharpExceptionArgumentCodes exception_code = SWIG_CSharpArgumentOutOfRangeException;
SWIG_CSharpSetPendingExceptionArgument(exception_code, msg, 0);