Removed warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@466 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-06-15 03:20:53 +00:00
commit 1d28f29584
4 changed files with 21 additions and 20 deletions

View file

@ -21,8 +21,9 @@ static char cvsroot[] = "$Header$";
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
extern "C" {
#include "preprocessor.h"
}
#ifndef SWIG_LIB
#define SWIG_LIB "/usr/local/lib/swig1.3"
@ -61,7 +62,7 @@ static char cvsroot[] = "$Header$";
class SwigException {};
static char *usage = "\
static char *usage = (char*)"\
\nGeneral Options\n\
-c - Produce raw wrapper code (omit support code)\n\
-c++ - Enable C++ processing\n\
@ -450,9 +451,9 @@ int SWIG_main(int argc, char *argv[], Language *l) {
DataType *temp_t = new DataType(T_CHAR);
temp_t->is_pointer++;
if (CPlusPlus)
typemap_register("newfree",typemap_lang,temp_t,"","delete [] $source;\n",0);
typemap_register((char*)"newfree",typemap_lang,temp_t,(char*)"",(char*)"delete [] $source;\n",0);
else
typemap_register("newfree",typemap_lang,temp_t,"","free($source);\n",0);
typemap_register((char*)"newfree",typemap_lang,temp_t,(char*)"",(char*)"free($source);\n",0);
delete temp_t;
}

View file

@ -248,12 +248,12 @@ int ParmList::numopt() {
if (parms[i]->defvalue) {
n++;
state = 1;
} else if (typemap_check("default",typemap_lang,parms[i]->t,parms[i]->name)) {
} else if (typemap_check((char*)"default",typemap_lang,parms[i]->t,parms[i]->name)) {
n++;
state = 1;
} else if (typemap_check("ignore",typemap_lang,parms[i]->t,parms[i]->name)) {
} else if (typemap_check((char*)"ignore",typemap_lang,parms[i]->t,parms[i]->name)) {
n++;
} else if (typemap_check("build",typemap_lang,parms[i]->t,parms[i]->name)) {
} else if (typemap_check((char*)"build",typemap_lang,parms[i]->t,parms[i]->name)) {
n++;
} else {
if (state) {

View file

@ -123,7 +123,7 @@ void scanner_close() {
line_number = p->line_number;
input_file = p->in_file;
WrapExtern = p->extern_mode;
if (!WrapExtern) remove_symbol("SWIGEXTERN");
if (!WrapExtern) remove_symbol((char*)"SWIGEXTERN");
ForceExtern = p->force_extern;
} else {
LEX_in = NULL;

View file

@ -965,18 +965,18 @@ void typeeq_mangle(char *n1, char *n2, char *cast=0) {
void typeeq_standard(void) {
typeeq_mangle("int", "signed int");
typeeq_mangle("int", "unsigned int");
typeeq_mangle("signed int", "int");
typeeq_mangle("unsigned int", "int");
typeeq_mangle("short","signed short");
typeeq_mangle("signed short","short");
typeeq_mangle("short","unsigned short");
typeeq_mangle("unsigned short","short");
typeeq_mangle("long","signed long");
typeeq_mangle("signed long","long");
typeeq_mangle("long","unsigned long");
typeeq_mangle("unsigned long","long");
typeeq_mangle((char*)"int", (char*)"signed int");
typeeq_mangle((char*)"int", (char*)"unsigned int");
typeeq_mangle((char*)"signed int", (char*)"int");
typeeq_mangle((char*)"unsigned int", (char*)"int");
typeeq_mangle((char*)"short",(char*)"signed short");
typeeq_mangle((char*)"signed short",(char*)"short");
typeeq_mangle((char*)"short",(char*)"unsigned short");
typeeq_mangle((char*)"unsigned short",(char*)"short");
typeeq_mangle((char*)"long",(char*)"signed long");
typeeq_mangle((char*)"signed long",(char*)"long");
typeeq_mangle((char*)"long",(char*)"unsigned long");
typeeq_mangle((char*)"unsigned long",(char*)"long");
}