- Timestamp:
- May 6, 2007, 8:37:57 PM (18 years ago)
- Location:
- Include
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Collections/ArrayList.ab
r207 r233 319 319 320 320 Static Function FixedSize(l As IList) As IList 321 Return FixedSize(Adapter(VarPtr( i)))321 Return FixedSize(Adapter(VarPtr(l))) 322 322 End Function 323 323 … … 327 327 328 328 Static Function ReadOnly(l As IList) As IList 329 Return ReadOnly(Adapter(VarPtr( i)))329 Return ReadOnly(Adapter(VarPtr(l))) 330 330 End Function 331 331 -
Include/Classes/System/Environment.ab
r208 r233 53 53 If osVer = Nothing Then 54 54 Dim vi As OSVERSIONINFO 55 GetVersion InfoEx(vi)55 GetVersionEx(vi) 56 56 osVer = New OperatingSystem(vi) 57 57 End If -
Include/Classes/System/Math.ab
r232 r233 68 68 Asin = _System_GetNaN() 69 69 Else 70 Asin = ATan(x / Sqrt(1 - x * x))70 Asin = Math.Atan(x / Sqrt(1 - x * x)) 71 71 End If 72 72 End Function … … 126 126 Static Function Ceiling(x As Double) As Long 127 127 If Floor(x) = x then 128 Return x 128 Return x As Long 129 129 Else 130 130 Return Floor(x) + 1 … … 144 144 Static Function Cosh(value As Double) As Double 145 145 Dim t As Double 146 t = Exp(value)146 t = Math.Exp(value) 147 147 return (t + 1 / t) * 0.5 148 148 End Function … … 514 514 If Math.Abs(x) > _System_EPS5 Then 515 515 Dim t As Double 516 t = Exp(x)516 t = Math.Exp(x) 517 517 Return (t - 1 / t) * 0.5 518 518 Else … … 571 571 Static Function Tanh(x As Double) As Double 572 572 If x > _System_EPS5 Then 573 Return 2 / (1 + Exp(-2 * x)) - 1573 Return 2 / (1 + Math.Exp(-2 * x)) - 1 574 574 ElseIf x < -_System_EPS5 Then 575 Return 1 - 2 / ( Exp(2 * x) + 1)575 Return 1 - 2 / (Math.Exp(2 * x) + 1) 576 576 Else 577 577 Return x * (1 - x * x * 0.333333333333333) 'x * (1 - x * x / 3) … … 591 591 592 592 If x >= 0 Then 593 k = Fix(x * _System_InverseHalfPI) + 0.5594 Else 595 k = Fix(x * _System_InverseHalfPI) - 0.5593 k = ( Fix(x * _System_InverseHalfPI) + 0.5 ) As Long 594 Else 595 k = ( Fix(x * _System_InverseHalfPI) - 0.5 ) As Long 596 596 End If 597 597 x = (x - (3217.0 / 2048.0) * k) + _System_D * k -
Include/Classes/System/OperatingSystem.ab
r208 r233 18 18 Sub OperatingSystem(vi As OSVERSIONINFOA) 19 19 pf = vi.dwPlatformId As PlatformID, 20 ver = New Version(vi.dwMajorVersion, vi. MinorVersion, vi.BuildNumber)20 ver = New Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber) 21 21 sp = vi.szCSDVersion 22 22 End Sub … … 24 24 Sub OperatingSystem(vi As OSVERSIONINFOW) 25 25 pf = vi.dwPlatformId As PlatformID, 26 ver = New Version(vi.dwMajorVersion, vi. MinorVersion, vi.BuildNumber)26 ver = New Version(vi.dwMajorVersion, vi.dwMinorVersion, vi.dwBuildNumber) 27 27 sp = vi.szCSDVersion 28 28 End Sub -
Include/Classes/System/Runtime/InteropServices/GCHandle.ab
r230 r233 16 16 17 17 Const Function IsAllocated() As Boolean 18 Ret run handle <> 018 Return handle <> 0 19 19 End Function 20 20 -
Include/Classes/System/TimeSpan.ab
r106 r233 40 40 41 41 Function Operator/ (value As Long) As TimeSpan 42 Return FromTicks(m_ Value \ value)42 Return FromTicks(m_Time \ value) 43 43 End Function 44 44 -
Include/Classes/System/Version.ab
r212 r233 57 57 End Function 58 58 59 Const Function MajorR ivision() As Integer59 Const Function MajorRevision() As Integer 60 60 Return HIWORD(revision) As Integer 61 61 End Function 62 62 63 Const Function MinorR ivision() As Integer63 Const Function MinorRevision() As Integer 64 64 Return LOWORD(revision) As Integer 65 65 End Function … … 72 72 CompareTo = build - v.build 73 73 If CompareTo <> 0 Then Exit Function 74 CompareTo = r ivision - v.rivision74 CompareTo = revision - v.revision 75 75 End Function 76 76 … … 80 80 81 81 Override Function GetHashCode() As Long 82 Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(r ivision As DWord)82 Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(revision As DWord) 83 83 End Function 84 84 … … 111 111 If build >= 0 Then 112 112 ToString = ToString + "." + Str$(build) 113 If r ivision >= 0 Then114 ToString = ToString + "." + Str$(r ivision)113 If revision >= 0 Then 114 ToString = ToString + "." + Str$(revision) 115 115 End If 116 116 End If … … 136 136 If fieldCount = 3 Then Exit Function 137 137 138 If r ivision < 0 Then138 If revision < 0 Then 139 139 ' Throw ArgumentException 140 140 Debug 141 141 End If 142 ToString = ToString + "." + Str$(r ivision)142 ToString = ToString + "." + Str$(revision) 143 143 End Function 144 144 Private … … 146 146 minor As Long 147 147 build As Long 148 r ivision As Long148 revision As Long 149 149 End Class 150 150 -
Include/WinNT.ab
r185 r233 6358 6358 Sub /*FORCEINLINE*/ TpInitializeCallbackEnviron(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON) 6359 6359 With CallbackEnviron 6360 Version = 16361 Pool = NULL6362 CleanupGroup = NULL6363 CleanupGroupCancelCallback = NULL6364 RaceDll = NULL6365 ActivationContext = NULL6366 FinalizationCallback = NULL6367 Flags = 06360 .Version = 1 6361 .Pool = NULL 6362 .CleanupGroup = NULL 6363 .CleanupGroupCancelCallback = NULL 6364 .RaceDll = NULL 6365 .ActivationContext = NULL 6366 .FinalizationCallback = NULL 6367 .Flags = 0 6368 6368 End With 6369 6369 End Sub -
Include/system/string.sbp
r223 r233 157 157 158 158 Function GetTCStr(ByRef s As String, ByRef wcs As PCTSTR) As SIZE_T 159 Return GetStr(s.Chars, s.Length As SIZE_T, tcs)159 Return GetStr(s.Chars, s.Length As SIZE_T, wcs) 160 160 End Function 161 161 … … 177 177 178 178 Function GetSCStr(ByRef s As String, ByRef wcs As *StrChar) As SIZE_T 179 Return GetStr(s.Chars, s.Length As SIZE_T, ss)179 Return GetStr(s.Chars, s.Length As SIZE_T, wcs) 180 180 End Function 181 181
Note:
See TracChangeset
for help on using the changeset viewer.