Changeset 384
- Timestamp:
- Jul 9, 2012, 3:58:43 PM (12 years ago)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/Common.lpk
r380 r384 22 22 <License Value="GNU/GPL"/> 23 23 <Version Minor="7"/> 24 <Files Count="1 4">24 <Files Count="15"> 25 25 <Item1> 26 26 <Filename Value="StopWatch.pas"/> … … 82 82 <UnitName Value="UXMLUtils"/> 83 83 </Item14> 84 <Item15> 85 <Filename Value="UApplicationInfo.pas"/> 86 <HasRegisterProc Value="True"/> 87 <UnitName Value="UApplicationInfo"/> 88 </Item15> 84 89 </Files> 85 90 <i18n> -
Common/Common.pas
r380 r384 10 10 StopWatch, UCommon, UDebugLog, UDelay, UPrefixMultiplier, UURI, UThreading, 11 11 UMemory, UResetableThread, UPool, ULastOpenedList, URegistry, 12 UJobProgressView, UXMLUtils, LazarusPackageIntf;12 UJobProgressView, UXMLUtils, UApplicationInfo, LazarusPackageIntf; 13 13 14 14 implementation … … 19 19 RegisterUnit('ULastOpenedList', @ULastOpenedList.Register); 20 20 RegisterUnit('UJobProgressView', @UJobProgressView.Register); 21 RegisterUnit('UApplicationInfo', @UApplicationInfo.Register); 21 22 end; 22 23 -
Common/URegistry.pas
r371 r384 9 9 10 10 type 11 TRegistryRoot = (rrKeyClassesRoot = HKEY($80000000), 12 rrKeyCurrentUser = HKEY($80000001), 13 rrKeyLocalMachine = HKEY($80000002), 14 rrKeyUsers = HKEY($80000003), 15 rrKeyPerformanceData = HKEY($80000004), 16 rrKeyCurrentConfig = HKEY($80000005), 17 rrKeyDynData = HKEY($80000006)); 11 18 12 19 { TRegistryEx } -
Common/UThreading.pas
r369 r384 303 303 I: Integer; 304 304 begin 305 if Terminated then Exit; 305 306 SysUtils.Sleep(Delay mod Quantum); 306 307 for I := 1 to (Delay div Quantum) do begin -
CoolStreaming/UVarBlockSerializer.pas
r341 r384 40 40 function GetVarSize: Integer; 41 41 function GetVarCount: Integer; 42 function TryVarBlock: Boolean; 42 43 43 44 // Advanced data types … … 450 451 end; 451 452 453 function TVarBlockSerializer.TryVarBlock: Boolean; 454 var 455 Data: Byte; 456 StoredPosition: Integer; 457 Count: Integer; 458 begin 459 if Stream.Position < Stream.Size then 460 try 461 StoredPosition := Stream.Position; 462 Data := Stream.ReadByte; 463 if Data = $ff then begin 464 if TryVarBlock then begin 465 Count := ReadVarUInt; 466 Result := Count <= Stream.Size - Stream.Position; 467 end else Result := False; 468 end else begin 469 Count := DecodeUnaryLength(Data) - 1; 470 Result := Count <= Stream.Size - Stream.Position; 471 end; 472 Stream.Position := StoredPosition; 473 except 474 raise Exception.Create(SErrorGetVarSize); 475 end else Result := False; 476 end; 477 452 478 procedure TVarBlockSerializer.WriteVarSInt(Value: Int64); 453 479 begin -
PinConnection/UCommThread.pas
r302 r384 125 125 begin 126 126 Active := False; 127 FInputBuffer.Free; 128 FInputBufferLock.Free; 129 Ext.Free; 130 Pin.Free; 131 FStatusEvent.Free; 132 FDataAvailable.Free; 133 inherited Destroy; 127 FInputBufferLock.Acquire; 128 FreeAndNil(FInputBuffer); 129 FreeAndNil(FInputBufferLock); 130 FreeAndNil(Ext); 131 FreeAndNil(Pin); 132 FreeAndNil(FStatusEvent); 133 FreeAndNil(FDataAvailable); 134 inherited; 134 135 end; 135 136
Note:
See TracChangeset
for help on using the changeset viewer.