Various warning fixes for .NET 2003 cl /W4 to work barring one warning and for gcc -ansi -Wall -pedantic to be warning free:

const fixes and function prototype declarations matching the definition etc


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5639 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-01-15 22:46:07 +00:00
commit 8377edf02a
24 changed files with 77 additions and 63 deletions

View file

@ -112,7 +112,7 @@ List *Preprocessor_depend(void) {
/* -----------------------------------------------------------------------------
* void Preprocessor_cpp_init() - Initialize the preprocessor
* ----------------------------------------------------------------------------- */
void Preprocessor_init() {
void Preprocessor_init(void) {
Hash *s;
cpp = NewHash();
s = NewHash();
@ -386,7 +386,7 @@ Hash *Preprocessor_define(const String_or_char *_str, int swigmacro)
*
* Undefines a macro.
* ----------------------------------------------------------------------------- */
void Preprocessor_undef(String_or_char *str)
void Preprocessor_undef(const String_or_char *str)
{
Hash *symbols;
assert(cpp);
@ -1343,7 +1343,7 @@ Preprocessor_parse(String *s)
Printf(ns,"%%importfile \"%s\" [\n", Swig_last_file());
/* See if the filename has a directory component */
dirname = Swig_file_dirname(Swig_last_file);
dirname = Swig_file_dirname(Swig_last_file());
if (!strlen(dirname)) dirname = 0;
if (dirname) {
dirname[strlen(dirname)-1] = 0; /* Kill trailing directory delimeter */