add fragment warning and fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-30 22:22:13 +00:00
commit 5e77ca27e0
6 changed files with 43 additions and 16 deletions

View file

@ -374,7 +374,11 @@ void emit_action(Node *n, Wrapper *f) {
c = Char(t);
tok = strtok(c,",");
while (tok) {
Swig_fragment_emit(tok);
String *fname = NewString(tok);
Setfile(fname, Getfile(n));
Setline(fname, Getline(n));
Swig_fragment_emit(fname);
Delete(fname);
tok = strtok(NULL,",");
}
Delete(t);