diff --git a/rtl/objpas/sysutils/sysutilh.inc b/rtl/objpas/sysutils/sysutilh.inc index 25381949ab..6f28c66d98 100644 --- a/rtl/objpas/sysutils/sysutilh.inc +++ b/rtl/objpas/sysutils/sysutilh.inc @@ -217,10 +217,10 @@ type ENoDynLibsSupport = class(Exception); EProgrammerNotFound = class(Exception); - + EMonitor = class(Exception); EMonitorLockException = class(EMonitor); - ENoMonitorSupportException = class(EMonitor); + ENoMonitorSupportException = class(EMonitor); EObjectDisposed = class(Exception); @@ -265,7 +265,7 @@ type function ListIndexErrorMsg(aIndex, aMaxIndex: SizeInt; const aListObjName: string): string; overload; function ListIndexErrorMsg(aIndex, aMaxIndex: SizeInt; aListObj: TObject): string; overload; procedure RangeIndexError(aIndex, aMaxIndex: SizeInt; aListObj: TObject); - + Type TBeepHandler = Procedure; @@ -288,10 +288,8 @@ type procedure AddTerminateProc(TermProc: TTerminateProc); function CallTerminateProcs: Boolean; -{$IFNDEF VER3_0} generic function IfThen(val:boolean;const iftrue:T; const iffalse:T) :T; inline; overload; generic function Exchange(var target:T; const newvalue:T) :T; inline; -{$ENDIF} Var OnShowException : Procedure (Msg : ShortString); @@ -360,7 +358,7 @@ Type {$IFDEF FPC_HAS_FEATURE_UNICODESTRINGS} { strange Delphi thing } {$i sysmarshalh.inc} -{$ENDIF} +{$ENDIF} function SafeLoadLibrary(const FileName: AnsiString; ErrorMode: DWord = {$ifdef windows}SEM_NOOPENFILEERRORBOX{$else windows}0{$endif windows}): HMODULE; @@ -410,7 +408,7 @@ Type TArchitecture = (arIntelX86, arIntelX64, arARM32, arARM64, arIntelX16, arXTensa, arAVR, arM68k, arPowerPC, arPower64, arMips, arMipsel, arMips64, arMips64el, arJVM, arWasm32, arSparc, arSparc64, arRiscV32, arRiscV64, arZ80, arLoongArch64, arOther); - + TPlatform = (pfWindows, pfMacOS, pfiOS, pfAndroid, pfWinRT, pfLinux, pfGo32v2, pfOS2, pfFreeBSD, pfBeos, pfNetBSD, pfAmiga, pfAtari, pfSolaris, pfQNX, pfNetware, pfOpenBSD, pfWDosX, @@ -420,7 +418,7 @@ Type pfNativeNT, pfMSDos, pfWII, pfAROS, pfDragonFly, pfWin16, pfFreeRTOS, pfZXSpectrum, pfMSXDOS, pfAmstradCPC, pfSinclairQL, pfWasi, pfOther); - TDelphiPlatform = TPlatform.pfWindows..TPlatform.pfLinux; + TDelphiPlatform = TPlatform.pfWindows..TPlatform.pfLinux; public const AllArchitectures = [Low(TArchitecture) .. High(TArchitecture)]; AllPlatforms = [Low(TPlatform) .. High(TPlatform)]; @@ -468,6 +466,6 @@ Type Function GetCompiledPlatform : TOSVersion.TPlatform; {$IFNDEF HAS_INVALIDHANDLE} -const +const INVALID_HANDLE_VALUE = DWORD(-1); {$ENDIF} diff --git a/rtl/objpas/sysutils/sysutils.inc b/rtl/objpas/sysutils/sysutils.inc index 1805e7caee..dff400bdc4 100644 --- a/rtl/objpas/sysutils/sysutils.inc +++ b/rtl/objpas/sysutils/sysutils.inc @@ -47,7 +47,7 @@ {$IFDEF FPC_HAS_FEATURE_UNICODESTRINGS} { strange Delphi thing } {$i sysmarshal.inc} -{$ENDIF} +{$ENDIF} {$ifndef OS_FILEISREADONLY} Function FileIsReadOnly(const FileName: RawByteString): Boolean; @@ -305,7 +305,7 @@ end; ErrCode:=Code; end; - + constructor EInOutArgumentException.Create(const aMsg, aPath: string); overload; begin @@ -688,7 +688,7 @@ begin if Assigned(aObj) then aClassName:=aObj.ClassName else - aClassName:=''; + aClassName:=''; Raise EListError.CreateFmt(SErrListIndexExt,[aIndex,aClassName,aMax]) end; @@ -899,7 +899,6 @@ end; // generic ifthen.. -{$IFNDEF VER3_0} generic function IfThen(val:boolean;const iftrue:T; const iffalse:T) :T; inline; overload; begin if val then @@ -913,7 +912,7 @@ begin Result := target; target := newvalue; end; -{$ENDIF} + Function ArrayOfConstToStrArray(const Args: array of const) : TUTF8StringDynArray;