Changeset 402
- Timestamp:
- May 22, 2016, 2:08:43 PM (9 years ago)
- Location:
- trunk/Library
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Library/ACLLibraryTestForm.pas
r392 r402 7 7 StdCtrls, 8 8 ACLFileIOUtility, 9 ACLFileUtility,10 ACLFindFunctions,11 ACLProfile,12 ACLStringUtility,13 9 ACLUtility, 14 10 PCharList, … … 30 26 FindButton: TButton; 31 27 Button1: TButton; 28 Button2: TButton; 32 29 Button3: TButton; 33 30 Procedure FindButtonOnClick (Sender: TObject); 34 31 Procedure Button4OnClick (Sender: TObject); 35 32 Procedure Button3OnClick (Sender: TObject); 33 Procedure Button2OnClick (Sender: TObject); 36 34 Procedure ACLLibraryTestFormOnCreate (Sender: TObject); 37 35 Procedure ACLLibraryTestFormOnDestroy (Sender: TObject); … … 51 49 uses 52 50 SysUtils, 53 ACLString, AStringUtilityUnit,51 ACLString, 54 52 RunProgramUnit; 55 53 … … 77 75 End; 78 76 77 const 78 test: string = 'This is the string I want to test the CRC with. Ha ha haa'; 79 test2: string = 'HERES ANOTHER #&*#^*& STRING'; 80 test3: string = #234#221#014; 81 82 Procedure TACLLibraryTestForm.Button2OnClick (Sender: TObject); 83 var 84 crc: longword; 85 Begin 86 crc := GetCRC32( Addr( test ), Length( test ) + 1 ); 87 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 88 crc := Pascal_GetCRC32( Addr( test ), Length( test ) + 1 ); 89 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 90 91 crc := GetCRC32( Addr( test2 ), Length( test2 ) + 1 ); 92 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 93 crc := Pascal_GetCRC32( Addr( test2 ), Length( test2 ) + 1 ); 94 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 95 96 crc := GetCRC32( Addr( test3 ), Length( test3 ) + 1 ); 97 Memo1.Lines.Add( 'Asm Crc = ' + IntToStr( crc ) ); 98 crc := Pascal_GetCRC32( Addr( test3 ), Length( test3 ) + 1 ); 99 Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) ); 100 101 End; 79 102 80 103 type -
trunk/Library/ACLtest.spr
r309 r402 1 1 [Application Options] 2 2 3 ApplicationIcon= 3 ApplicationIcon=P:\NEWVIEW_DEV\NewView\NewView.ico 4 4 5 5 [Browser Files] … … 29 29 File22=INIFILES 30 30 File23=ACLUTILITY 31 File24= ACLSTRINGUTILITY32 File25= ACLFILEIOUTILITY33 File26= ACLFINDFUNCTIONS34 File27=ACL STRING35 File28= ACLFILEUTILITY36 File29=ACL PROFILE37 File30= PCHARLIST38 File31= ACLRESOURCEUTILITY39 File32= ACLVERSIONUTILITYUNIT40 File33= SEMAPHORES41 File34= SHAREDMEMORYUNIT42 File35=A STRINGUTILITYUNIT31 File24=CHARUTILSUNIT 32 File25=DEBUGUNIT 33 File26=STRINGUTILSUNIT 34 File27=ACLFILEIOUTILITY 35 File28=PCHARLIST 36 File29=ACLRESOURCEUTILITY 37 File30=ACLVERSIONUTILITYUNIT 38 File31=SEMAPHORES 39 File32=SHAREDMEMORYUNIT 40 File33=BSEDEV 41 File34=FILEUTILSUNIT 42 File35=ACLSTRING 43 43 File36=RUNPROGRAMUNIT 44 44 File37=ACLLIBRARYTESTFORM … … 46 46 [Compiler Options] 47 47 48 CodeGeneration= Assertions48 CodeGeneration= 49 49 Syntax= 50 50 Optimize=OptimizeCommonSub,OptimizePeephole … … 57 57 MaxWarnings=200 58 58 MaxErrors=10 59 60 [Component Library OS/2] 61 62 CompLibName=D:\progs\develop\SIBYL_FP3\Bin\CompLib.dll 59 63 60 64 [Debugger Options] … … 68 72 [Directories] 69 73 70 LastDir=P:\NEWVIEW_DEV 71 OutDir= x:\temp\Library72 LibDir= x:\temp\Sibyl73 LibSrcDir= x:\sibyl\rtl;x:\sibyl\spcc74 LastDir=P:\NEWVIEW_DEV\BUILD\LIBRARY 75 OutDir=P:\newview_dev\build\library 76 LibDir=P:\newview_dev\build\sibyl\lib 77 LibSrcDir=P:\newview_dev\sibyl\spcc;P:\newview_dev\sibyl\rtl 74 78 IncSrcDir= 75 CompInstallDir= d:\development\sibyl\Compnt79 CompInstallDir=P:\NEWVIEW_DEV\build\components 76 80 77 81 [Find History] 78 82 79 Find0=crc 83 Find0=TTerminateCheck 84 Find1=TerminateCheck 85 Find2=Check 86 Find3=AddAndResize 87 Find4=GetMaskedFilesForDir 88 Find5=StrRightFrom 80 89 81 90 [General] … … 84 93 ProjectName=P:\NEWVIEW_DEV\Library\ACLtest.spr 85 94 ProjectType=Visual 86 CompLibName= d:\development\sibyl\Bin\CompLib.dll87 Win32CompLibName= d:\development\sibyl\Bin\CompLib.dll95 CompLibName=D:\progs\develop\SIBYL_FP3\Bin\CompLib.dll 96 Win32CompLibName=D:\progs\develop\SIBYL_FP3\Bin\CompLib.dll 88 97 RunParameter= 89 98 InActiveLanguages= … … 93 102 [Last Open Files] 94 103 95 File0=.\ACL LibraryTestForm.pas104 File0=.\ACLUtility.pas 96 105 File0.Left=-4 97 File0.Bottom=-4 98 File0.Width=1723 99 File0.Height=609 100 File0.Column=177 101 File0.Line=22 106 File0.Bottom=-5 107 File0.Width=1388 108 File0.Height=582 109 File0.Column=14 110 File0.Line=141 111 File1=.\StringUtilsUnit.pas 112 File1.Left=-4 113 File1.Bottom=-5 114 File1.Width=1388 115 File1.Height=582 116 File1.Column=7 117 File1.Line=865 118 File2=.\ACLFileIOUtility.pas 119 File2.Left=-4 120 File2.Bottom=-5 121 File2.Width=1388 122 File2.Height=582 123 File2.Column=1 124 File2.Line=41 125 File3=.\CharUtilsUnit.pas 126 File3.Left=-4 127 File3.Bottom=-5 128 File3.Width=1388 129 File3.Height=582 130 File3.Column=31 131 File3.Line=109 132 File4=.\ACLLibraryTestForm.pas 133 File4.Left=-4 134 File4.Bottom=-5 135 File4.Width=1388 136 File4.Height=582 137 File4.Column=87 138 File4.Line=141 139 File5=.\ACLLibrary.pas 140 File5.Left=-4 141 File5.Bottom=-5 142 File5.Width=1388 143 File5.Height=582 144 File5.Column=38 145 File5.Line=4 146 File6=.\FileUtilsUnit.pas 147 File6.Left=-4 148 File6.Bottom=-5 149 File6.Width=1388 150 File6.Height=582 151 File6.Column=5 152 File6.Line=1083 153 File7=.\RunProgramUnit.pas 154 File7.Left=-4 155 File7.Bottom=-5 156 File7.Width=1388 157 File7.Height=582 158 File7.Column=28 159 File7.Line=216 102 160 103 161 [Linker Options] … … 127 185 128 186 SCUName=.\ACLLibrary.scu 129 MainForm= 187 MainForm=ACLLibraryTestForm 130 188 131 189 [Win32 Application Options] … … 135 193 [Win32 Compiler Options] 136 194 137 CodeGeneration= Assertions195 CodeGeneration= 138 196 Syntax= 139 197 Optimize=OptimizeCommonSub,OptimizePeephole
Note:
See TracChangeset
for help on using the changeset viewer.