From db9b55ba524f9b7f633ea9e6b334f9d268ea9e17 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Thu, 11 May 2000 08:11:30 +0000 Subject: [PATCH] (Super_scope): Replace call to non-existent(?) `Setscope' w/ a fprintf to stderr warning of `Super_scope' damage. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@440 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Swig/super.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Swig/super.c b/Source/Swig/super.c index 6528df7d7..930b04a26 100644 --- a/Source/Swig/super.c +++ b/Source/Swig/super.c @@ -406,7 +406,12 @@ Super_scope(DOH *o, int sc) int i; for (i = 0; i < s->numtags; i++) - Setscope(s->tags[i].filename, sc); + /* I am commenting this out because I can't find a definition anywhere. + Sorry for this horrible kludge! The fprintf should be removed when + things are properly fixed. -ttn, 2000/05/11 01:11:24 */ + /* Setscope(s->tags[i].filename, sc) */ + fprintf (stderr, "WARNING: Swig/super.c:Super_scope() dainbramaged!\n") + ; } /* ------------------------------------------------------------------------- @@ -453,7 +458,8 @@ Super_insert(DOH *so, int pos, DOH *str) Getfile(str), Getline(str)); else /* hmph. Nothin. */ - Super_string_insert(s, pos, str, 0, 0, 0); + /* The cast to `char *' seems bogus. --ttn, 2000/05/11 00:03:24 */ + Super_string_insert(s, pos, (char *) str, 0, 0, 0); return 0; }