From: <wsf...@us...> - 2010-01-09 19:26:40
|
Revision: 11812 http://swig.svn.sourceforge.net/swig/?rev=11812&view=rev Author: wsfulton Date: 2010-01-09 19:26:34 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Change -debug-template to use Swig_diagnostic for file/line display Modified Paths: -------------- trunk/Source/CParse/cscanner.c trunk/Source/CParse/templ.c Modified: trunk/Source/CParse/cscanner.c =================================================================== --- trunk/Source/CParse/cscanner.c 2010-01-09 17:20:11 UTC (rev 11811) +++ trunk/Source/CParse/cscanner.c 2010-01-09 19:26:34 UTC (rev 11812) @@ -135,7 +135,7 @@ break; Putc(c, fn); } - /* Printf(stderr,"location: %s:%d\n",cparse_file,cparse_line); */ + /* Swig_diagnostic(cparse_file, cparse_line, "Scanner_set_location\n"); */ Scanner_set_location(scan,cparse_file,cparse_line); Delete(fn); } @@ -502,7 +502,7 @@ l = yylook(); - /* Printf(stdout, "%s:%d:::%d: '%s'\n", cparse_file, cparse_line, l, Scanner_text(scan)); */ + /* Swig_diagnostic(cparse_file, cparse_line, ":::%d: '%s'\n", l, Scanner_text(scan)); */ if (l == NONID) { last_id = 1; Modified: trunk/Source/CParse/templ.c =================================================================== --- trunk/Source/CParse/templ.c 2010-01-09 17:20:11 UTC (rev 11811) +++ trunk/Source/CParse/templ.c 2010-01-09 19:26:34 UTC (rev 11812) @@ -512,7 +512,8 @@ if (template_debug) { tname = Copy(name); SwigType_add_template(tname, tparms); - Printf(stdout, "\n%s:%d: template_debug: Searching for match to: '%s'\n", cparse_file, cparse_line, tname); + Printf(stdout, "\n"); + Swig_diagnostic(cparse_file, cparse_line, "template_debug: Searching for match to: '%s'\n", tname); Delete(tname); tname = 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |