Changeset 400 for trunk/Include/basic/function.sbp
- Timestamp:
- Jan 22, 2008, 9:19:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/basic/function.sbp
r394 r400 263 263 If _System_IsLowSurrogate(s[0]) Then 264 264 AscW = ((s[0] And &h3FF) As DWord << 10) Or (s[1] And &h3FF) 265 AscW += &h10000 265 266 Exit Function 266 267 End If … … 276 277 Return New String(c As StrChar, 1) 277 278 ElseIf c <= &h10FFFF Then 279 c -= &h10000 278 280 Dim t[1] As WCHAR 279 281 t[0] = (&hD800 Or (c >> 10)) As WCHAR … … 647 649 Val=0 648 650 649 While buf[0]=Asc(" ") or buf[0]=Asc(Ex"\t")651 While ActiveBasic.CType.IsSpace(buf[0]) 650 652 buf = VarPtr(buf[1]) 651 653 Wend … … 655 657 temporary = temporary.ToUpper() 656 658 TempPtr = StrPtr(temporary) 657 If TempPtr(1) =Asc("O") Then659 If TempPtr(1) = Asc("O") Then 658 660 '8進数 659 661 i=2 … … 715 717 716 718 Function Eof(FileNum As Long) As Long 717 Dim dwCurrent As DWord, dwEnd As DWord718 719 719 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) 724 723 725 724 If dwCurrent>=dwEnd Then … … 770 769 771 770 Function _System_malloc(stSize As SIZE_T) As VoidPtr 772 Return HeapAlloc(_System_hProcessHeap, 0,stSize)771 Return HeapAlloc(_System_hProcessHeap, 0, stSize) 773 772 End Function 774 773 775 774 Function _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) 777 776 End Function 778 777 … … 786 785 787 786 Sub _System_free(lpMem As VoidPtr) 788 HeapFree(_System_hProcessHeap, 0,lpMem)787 HeapFree(_System_hProcessHeap, 0, lpMem) 789 788 End Sub 790 789
Note:
See TracChangeset
for help on using the changeset viewer.