Change -debug-template to use Swig_diagnostic for file/line display
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5a3ba0d607
commit
a541f7c203
2 changed files with 4 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ static void scanner_locator(String *loc) {
|
||||||
break;
|
break;
|
||||||
Putc(c, fn);
|
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);
|
Scanner_set_location(scan,cparse_file,cparse_line);
|
||||||
Delete(fn);
|
Delete(fn);
|
||||||
}
|
}
|
||||||
|
|
@ -502,7 +502,7 @@ int yylex(void) {
|
||||||
|
|
||||||
l = yylook();
|
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) {
|
if (l == NONID) {
|
||||||
last_id = 1;
|
last_id = 1;
|
||||||
|
|
|
||||||
|
|
@ -512,7 +512,8 @@ static Node *template_locate(String *name, Parm *tparms, Symtab *tscope) {
|
||||||
if (template_debug) {
|
if (template_debug) {
|
||||||
tname = Copy(name);
|
tname = Copy(name);
|
||||||
SwigType_add_template(tname, tparms);
|
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);
|
Delete(tname);
|
||||||
tname = 0;
|
tname = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue