#1 2020-06-25 14:33:52

newsanti
Member
Registered: 2020-06-24
Posts: 3

can't compile synlog.pas

[dcc32 Error] SynLog.pas(5113): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'

begin
  // 1. calculate fLines[] + fCount and fLevels[] + fLogProcNatural[] from .log content
  fLineHeaderCountToIgnore := 3; fIsJournald := false;
  if IdemPChar(fMap.Buffer,'-- LOGS BEGIN AT') then begin
    //-- Logs begin at Sun 2020-06-07 12:42:31 EEST, end at Thu 2020-06-18 18:08:52 EEST. --
    fIsJournald := true;
    fHeaderLinesCount := 1;
    fLineHeaderCountToIgnore := 1;
  end else begin
    //2020-06-18T13:28:20.754089+0300 ub[12316]:
    Iso8601ToDateTimePUTF8CharVar(fMap.Buffer,26,fStartDateTime);
    if fStartDateTime > 0 then begin
      fIsJournald := true;
      fHeaderLinesCount := 0;
      fLineHeaderCountToIgnore := 0;
    end;
  end;

Offline

#2 2020-06-25 15:40:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,007
Website

Re: can't compile synlog.pas

Offline

Board footer

Powered by FluxBB