Changeset 391 for trunk/Include/basic
- Timestamp:
- Dec 7, 2007, 12:21:58 AM (17 years ago)
- Location:
- trunk/Include/basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/basic/command.sbp
r364 r391 158 158 159 159 Dim i = 0 As Long 160 Dim i2 As Long, i3 As Long 161 Dim buffer = New System.Text.StringBuilder(GetFileSize(_System_hFile[FileNumber], 0) + 1) 160 Dim buffer = New System.Text.StringBuilder(256) 162 161 Dim temp[1] As StrChar 163 162 Dim dwAccessBytes As DWord … … 167 166 '次のデータをサーチ 168 167 Do 169 i2=ReadFile(_System_hFile[FileNumber],temp,SizeOf (StrChar),VarPtr(dwAccessBytes),ByVal 0)170 If i2=0 or dwAccessBytes=0 Then168 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf (StrChar),VarPtr(dwAccessBytes),ByVal 0) 169 If ret=0 or dwAccessBytes=0 Then 171 170 'error 172 171 Exit Macro … … 176 175 177 176 '読み込み 178 i3=-1179 177 IsStr=0 180 178 While 1 181 i3++ 182 183 i2=ReadFile(_System_hFile[FileNumber],temp,SizeOf (StrChar),VarPtr(dwAccessBytes),ByVal 0) 184 If i2=0 or (i3=0 and dwAccessBytes=0) Then 179 Dim ret = ReadFile(_System_hFile[FileNumber],temp,SizeOf (StrChar),VarPtr(dwAccessBytes),ByVal 0) 180 If ret = 0 or dwAccessBytes = 0 Then 185 181 'error 186 182 Exit Macro … … 188 184 If temp[0]=34 Then IsStr=IsStr xor 1 189 185 190 buffer [i3]=temp[0]186 buffer.Append(temp[0]) 191 187 If dwAccessBytes=0 or temp[0]=0 or temp[0]=13 or temp[0]=10 or (IsStr=0 and temp[0]=Asc(",")) or (IsStr=0 and (temp[0]=32 or temp[0]=9) and _System_InputDataType[i]<>_System_Type_String) Then 192 188 If temp[0]=13 Then … … 210 206 End If 211 207 212 buffer [i3]=0208 buffer.Append(0 As StrChar) 213 209 Exit While 214 210 End If -
trunk/Include/basic/dos_console.sbp
r293 r391 40 40 Goto *InputReStart 41 41 End If 42 _System_Input_SetArgument(_System_InputDataPtr[i], _System_InputDataType[i], broken[i] .ToString)42 _System_Input_SetArgument(_System_InputDataPtr[i], _System_InputDataType[i], broken[i]) 43 43 Next 44 44
Note:
See TracChangeset
for help on using the changeset viewer.