Ignore:
Timestamp:
Jan 22, 2008, 9:19:59 PM (16 years ago)
Author:
イグトランス (egtra)
Message:

_System_CThreadCollectionでのクラスインスタンスへのポインタの使用を除去、参照変数構文へ。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Include/basic/function.sbp

    r394 r400  
    263263                If _System_IsLowSurrogate(s[0]) Then
    264264                    AscW = ((s[0] And &h3FF) As DWord << 10) Or (s[1] And &h3FF)
     265                    AscW += &h10000
    265266                    Exit Function
    266267                End If
     
    276277        Return New String(c As StrChar, 1)
    277278    ElseIf c <= &h10FFFF Then
     279        c -= &h10000
    278280        Dim t[1] As WCHAR
    279281        t[0] = (&hD800 Or (c >> 10)) As WCHAR
     
    647649    Val=0
    648650
    649     While buf[0]=Asc(" ") or buf[0]=Asc(Ex"\t")
     651    While ActiveBasic.CType.IsSpace(buf[0])
    650652        buf = VarPtr(buf[1])
    651653    Wend
     
    655657        temporary = temporary.ToUpper()
    656658        TempPtr = StrPtr(temporary)
    657         If TempPtr(1)=Asc("O") Then
     659        If TempPtr(1) = Asc("O") Then
    658660            '8進数
    659661            i=2
     
    715717
    716718Function Eof(FileNum As Long) As Long
    717     Dim dwCurrent As DWord, dwEnd As DWord
    718 
    719719    FileNum--
    720 
    721     dwCurrent=SetFilePointer(_System_hFile(FileNum),0,NULL,FILE_CURRENT)
    722     dwEnd=SetFilePointer(_System_hFile(FileNum),0,NULL,FILE_END)
    723     SetFilePointer(_System_hFile(FileNum),dwCurrent,NULL,FILE_BEGIN)
     720    Dim dwCurrent = SetFilePointer(_System_hFile(FileNum), 0,NULL, FILE_CURRENT)
     721    Dim dwEnd = SetFilePointer(_System_hFile(FileNum), 0, NULL, FILE_END)
     722    SetFilePointer(_System_hFile(FileNum), dwCurrent, NULL, FILE_BEGIN)
    724723
    725724    If dwCurrent>=dwEnd Then
     
    770769
    771770Function _System_malloc(stSize As SIZE_T) As VoidPtr
    772     Return HeapAlloc(_System_hProcessHeap,0,stSize)
     771    Return HeapAlloc(_System_hProcessHeap, 0, stSize)
    773772End Function
    774773
    775774Function _System_calloc(stSize As SIZE_T) As VoidPtr
    776     Return HeapAlloc(_System_hProcessHeap,HEAP_ZERO_MEMORY,stSize)
     775    Return HeapAlloc(_System_hProcessHeap, HEAP_ZERO_MEMORY, stSize)
    777776End Function
    778777
     
    786785
    787786Sub _System_free(lpMem As VoidPtr)
    788     HeapFree(_System_hProcessHeap,0,lpMem)
     787    HeapFree(_System_hProcessHeap, 0, lpMem)
    789788End Sub
    790789
Note: See TracChangeset for help on using the changeset viewer.