X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fengine%2Fe_log.pas;h=dbe7b5dc2773f5881427c776d1d66f57e2835e7d;hb=HEAD;hp=a1ca45c21e6da75c2948a2a4c99a32b5dc66103d;hpb=1584838149790971c32aafc50a7e72506de814a1;p=d2df-sdl.git diff --git a/src/engine/e_log.pas b/src/engine/e_log.pas index a1ca45c..dbe7b5d 100644 --- a/src/engine/e_log.pas +++ b/src/engine/e_log.pas @@ -2,8 +2,7 @@ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * the Free Software Foundation, version 3 of the License ONLY. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -43,14 +42,8 @@ procedure e_InitWritelnDriver (); procedure e_LogWritefln (const fmt: AnsiString; args: array of const; category: TMsgType=TMsgType.Notify; writeTime: Boolean=true; writeConsole: Boolean=true); procedure e_LogWriteln (const s: AnsiString; category: TMsgType=TMsgType.Notify; writeTime: Boolean=true); - procedure e_WriteStackTrace (const msg: AnsiString); - -var - e_WriteToStdOut: Boolean = False; - - implementation uses @@ -67,7 +60,11 @@ var function DecodeIPV4 (ip: LongWord): string; begin +{$IFDEF FPC_LITTLE_ENDIAN} Result := Format('%d.%d.%d.%d', [ip and $FF, (ip shr 8) and $FF, (ip shr 16) and $FF, (ip shr 24)]); +{$ELSE} + Result := Format('%d.%d.%d.%d', [(ip shr 24), (ip shr 16) and $FF, (ip shr 8) and $FF, ip and $FF]); +{$ENDIF} end;