Add trace of calls

This commit is contained in:
Stas Degteff 2007-03-27 08:31:45 +00:00
parent 45fe7eaf7e
commit a1a2d28e36

View File

@ -71,6 +71,8 @@ inline int IsInitial(char c) {
int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origarea) int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origarea)
{ {
GFTRK("TemplateToText");
long fpos; long fpos;
Path tplfile; Path tplfile;
int n; int n;
@ -185,6 +187,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
strcpy(msg->txt, LNG->RobotMsg); strcpy(msg->txt, LNG->RobotMsg);
TokenXlat(mode, msg->txt, strlen(msg->txt)+1, true, msg, oldmsg, origarea); TokenXlat(mode, msg->txt, strlen(msg->txt)+1, true, msg, oldmsg, origarea);
throw_free(buf); throw_free(buf);
GFTRK(0);
return 0; return 0;
} }
} }
@ -943,6 +946,7 @@ int TemplateToText(int mode, GMsg* msg, GMsg* oldmsg, const char* tpl, int origa
remove(tplfile); remove(tplfile);
throw_free(buf); throw_free(buf);
GFTRK(0);
return disphdr; return disphdr;
} }