Changeset 233


Ignore:
Timestamp:
May 6, 2007, 8:37:57 PM (18 years ago)
Author:
dai
Message:

タスプミスを修正。

Location:
Include
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • Include/Classes/System/Collections/ArrayList.ab

    r207 r233  
    319319
    320320    Static Function FixedSize(l As IList) As IList
    321         Return FixedSize(Adapter(VarPtr(i)))
     321        Return FixedSize(Adapter(VarPtr(l)))
    322322    End Function
    323323
     
    327327
    328328    Static Function ReadOnly(l As IList) As IList
    329         Return ReadOnly(Adapter(VarPtr(i)))
     329        Return ReadOnly(Adapter(VarPtr(l)))
    330330    End Function
    331331
  • Include/Classes/System/Environment.ab

    r208 r233  
    5353        If osVer = Nothing Then
    5454            Dim vi As OSVERSIONINFO
    55             GetVersionInfoEx(vi)
     55            GetVersionEx(vi)
    5656            osVer = New OperatingSystem(vi)
    5757        End If
  • Include/Classes/System/Math.ab

    r232 r233  
    6868            Asin = _System_GetNaN()
    6969        Else
    70             Asin = ATan(x / Sqrt(1 - x * x))
     70            Asin = Math.Atan(x / Sqrt(1 - x * x))
    7171        End If
    7272    End Function
     
    126126    Static Function Ceiling(x As Double) As Long
    127127        If Floor(x) = x then
    128             Return x
     128            Return x As Long
    129129        Else
    130130            Return Floor(x) + 1
     
    144144    Static Function Cosh(value As Double) As Double
    145145        Dim t As Double
    146         t = Exp(value)
     146        t = Math.Exp(value)
    147147        return (t + 1 / t) * 0.5
    148148    End Function
     
    514514        If Math.Abs(x) > _System_EPS5 Then
    515515            Dim t As Double
    516             t = Exp(x)
     516            t = Math.Exp(x)
    517517            Return (t - 1 / t) * 0.5
    518518        Else
     
    571571    Static Function Tanh(x As Double) As Double
    572572        If x > _System_EPS5 Then
    573             Return 2 / (1 + Exp(-2 * x)) - 1
     573            Return 2 / (1 + Math.Exp(-2 * x)) - 1
    574574        ElseIf x < -_System_EPS5 Then
    575             Return 1 - 2 / (Exp(2 * x) + 1)
     575            Return 1 - 2 / (Math.Exp(2 * x) + 1)
    576576        Else
    577577            Return x * (1 - x * x * 0.333333333333333) 'x * (1 - x * x / 3)
     
    591591
    592592        If x >= 0 Then
    593             k = Fix(x * _System_InverseHalfPI) + 0.5
    594         Else
    595             k = Fix(x * _System_InverseHalfPI) - 0.5
     593            k = ( Fix(x * _System_InverseHalfPI) + 0.5 ) As Long
     594        Else
     595            k = ( Fix(x * _System_InverseHalfPI) - 0.5 ) As Long
    596596        End If
    597597        x = (x - (3217.0 / 2048.0) * k) + _System_D * k
  • Include/Classes/System/OperatingSystem.ab

    r208 r233  
    1818    Sub OperatingSystem(vi As OSVERSIONINFOA)
    1919        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)
    2121        sp = vi.szCSDVersion
    2222    End Sub
     
    2424    Sub OperatingSystem(vi As OSVERSIONINFOW)
    2525        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)
    2727        sp = vi.szCSDVersion
    2828    End Sub
  • Include/Classes/System/Runtime/InteropServices/GCHandle.ab

    r230 r233  
    1616
    1717    Const Function IsAllocated() As Boolean
    18         Retrun handle <> 0
     18        Return handle <> 0
    1919    End Function
    2020
  • Include/Classes/System/TimeSpan.ab

    r106 r233  
    4040
    4141    Function Operator/ (value As Long) As TimeSpan
    42         Return FromTicks(m_Value \ value)
     42        Return FromTicks(m_Time \ value)
    4343    End Function
    4444
  • Include/Classes/System/Version.ab

    r212 r233  
    5757    End Function
    5858
    59     Const Function MajorRivision() As Integer
     59    Const Function MajorRevision() As Integer
    6060        Return HIWORD(revision) As Integer
    6161    End Function
    6262
    63     Const Function MinorRivision() As Integer
     63    Const Function MinorRevision() As Integer
    6464        Return LOWORD(revision) As Integer
    6565    End Function
     
    7272        CompareTo = build - v.build
    7373        If CompareTo <> 0 Then Exit Function
    74         CompareTo = rivision - v.rivision
     74        CompareTo = revision - v.revision
    7575    End Function
    7676
     
    8080
    8181    Override Function GetHashCode() As Long
    82         Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(rivision As DWord)
     82        Return _System_BSwap(major As DWord) Xor minor Xor build Xor _System_BSwap(revision As DWord)
    8383    End Function
    8484
     
    111111        If build >= 0 Then
    112112            ToString = ToString + "." + Str$(build)
    113             If rivision >= 0 Then
    114                 ToString = ToString + "." + Str$(rivision)
     113            If revision >= 0 Then
     114                ToString = ToString + "." + Str$(revision)
    115115            End If
    116116        End If
     
    136136        If fieldCount = 3 Then Exit Function
    137137
    138         If rivision < 0 Then
     138        If revision < 0 Then
    139139            ' Throw ArgumentException
    140140            Debug
    141141        End If
    142         ToString = ToString + "." + Str$(rivision)
     142        ToString = ToString + "." + Str$(revision)
    143143    End Function
    144144Private
     
    146146    minor As Long
    147147    build As Long
    148     rivision As Long
     148    revision As Long
    149149End Class
    150150
  • Include/WinNT.ab

    r185 r233  
    63586358Sub /*FORCEINLINE*/ TpInitializeCallbackEnviron(ByRef CallbackEnviron As TP_CALLBACK_ENVIRON)
    63596359    With CallbackEnviron
    6360         Version = 1
    6361         Pool = NULL
    6362         CleanupGroup = NULL
    6363         CleanupGroupCancelCallback = NULL
    6364         RaceDll = NULL
    6365         ActivationContext = NULL
    6366         FinalizationCallback = NULL
    6367         Flags = 0
     6360        .Version = 1
     6361        .Pool = NULL
     6362        .CleanupGroup = NULL
     6363        .CleanupGroupCancelCallback = NULL
     6364        .RaceDll = NULL
     6365        .ActivationContext = NULL
     6366        .FinalizationCallback = NULL
     6367        .Flags = 0
    63686368    End With
    63696369End Sub
  • Include/system/string.sbp

    r223 r233  
    157157
    158158Function 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)
    160160End Function
    161161
     
    177177
    178178Function 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)
    180180End Function
    181181
Note: See TracChangeset for help on using the changeset viewer.