#include "precomp.h" #pragma hdrstop EnableAssert private void ParseLe(LE *); private char *SzLField(char * *, char *, int); private void FileField(char **, LE *); char szFileLog[] = "%ld;%s;%s;%s;%s;%s@v%d;%s;%.320s\n"; PTH pthLog[] = "/log.slm"; PTH pthCurLog[cchPthMax];/* name of current log (pmfLog->pthReal pointer here)*/ MF *pmfLog = 0; int fForwards; char rgbLog[cbLogPage+1];/* assume that all log records are smaller than this */ char *pbLog; /* either 0 or points to current record */ char *pbMac; /* if non-zero, file position is here in buffer */ F fMappedLog; /* If fTrue, then log file mapped into memory */ F fSetPosDone; /* If fTrue, then FGetLe gets current not next*/ char *pbBase; /* If mapped into memory, this variable points to first byte */ /* append info to current log file which must be open */ void AppendLog( AD *pad, FI far *pfi, char *szDiff, char *szComment) { AssertF(pmfLog != 0); SeekMf(pmfLog, (POS)0, 2); /* seek to end */ WrLogInfo(pmfLog, pad, pfi, szDiff, szComment); } /* write log information for one log line to pmf */ void WrLogInfo( MF *pmf, AD *pad, FI far *pfi, char *szDiff, char *szComment) { register char *pch; pbMac = pbLog = 0; /* REVIEW: we may want to set the time to the mtime of the log file since we may have several machines all using different clocks. */ /*