@@ -43,15 +43,15 @@ procedure TTestGitRecords.Test_git_commit;
4343 else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
4444 end ;
4545begin
46- CheckEquals(112 , sizeof(git_commit), ' git_commit' );
46+ CheckEquals( 88 , sizeof(git_commit), ' git_commit' );
4747
4848 CheckEquals( 0 , offsetof(' object_' ), ' object_' );
49- CheckEquals( 56 , offsetof(' parent_oids' ), ' parent_oids' );
50- CheckEquals( 76 , offsetof(' tree_oid' ), ' tree_oid' );
51- CheckEquals( 96 , offsetof(' author' ), ' author' );
52- CheckEquals(100 , offsetof(' committer' ), ' committer' );
53- CheckEquals(104 , offsetof(' message_' ), ' message_' );
54- CheckEquals(108 , offsetof(' message_short' ), ' message_short' );
49+ CheckEquals( 32 , offsetof(' parent_oids' ), ' parent_oids' );
50+ CheckEquals( 52 , offsetof(' tree_oid' ), ' tree_oid' );
51+ CheckEquals( 72 , offsetof(' author' ), ' author' );
52+ CheckEquals( 76 , offsetof(' committer' ), ' committer' );
53+ CheckEquals( 80 , offsetof(' message_' ), ' message_' );
54+ CheckEquals( 84 , offsetof(' message_short' ), ' message_short' );
5555end ;
5656
5757procedure TTestGitRecords.Test_git_index ;
@@ -120,19 +120,23 @@ procedure TTestGitRecords.Test_git_odb_backend;
120120 else if Value = ' read' then Result := Integer(@item.read) - Integer(@item)
121121 else if Value = ' read_header' then Result := Integer(@item.read_header) - Integer(@item)
122122 else if Value = ' write' then Result := Integer(@item.write) - Integer(@item)
123+ else if Value = ' writestream' then Result := Integer(@item.writestream) - Integer(@item)
124+ else if Value = ' readstream' then Result := Integer(@item.readstream) - Integer(@item)
123125 else if Value = ' exists' then Result := Integer(@item.exists) - Integer(@item)
124126 else if Value = ' free' then Result := Integer(@item.free) - Integer(@item)
125127 else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
126128 end ;
127129begin
128- CheckEquals( 24 , sizeof(git_odb_backend), ' git_odb_backend size' );
130+ CheckEquals( 32 , sizeof(git_odb_backend), ' git_odb_backend size' );
129131
130132 CheckEquals( 0 , offsetof(' odb' ), ' odb' );
131133 CheckEquals( 4 , offsetof(' read' ), ' read' );
132134 CheckEquals( 8 , offsetof(' read_header' ), ' read_header' );
133135 CheckEquals( 12 , offsetof(' write' ), ' write' );
134- CheckEquals( 16 , offsetof(' exists' ), ' exists' );
135- CheckEquals( 20 , offsetof(' free' ), ' free' );
136+ CheckEquals( 16 , offsetof(' writestream' ), ' writestream' );
137+ CheckEquals( 20 , offsetof(' readstream' ), ' readstream' );
138+ CheckEquals( 24 , offsetof(' exists' ), ' exists' );
139+ CheckEquals( 28 , offsetof(' free' ), ' free' );
136140end ;
137141
138142procedure TTestGitRecords.Test_git_reference ;
@@ -187,14 +191,14 @@ procedure TTestGitRecords.Test_git_tag;
187191 else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
188192 end ;
189193begin
190- CheckEquals( 92 , sizeof(git_tag), ' git_tag size' );
194+ CheckEquals( 68 , sizeof(git_tag), ' git_tag size' );
191195
192196 CheckEquals( 0 , offsetof(' object_' ), ' object_' );
193- CheckEquals( 56 , offsetof(' target' ), ' target' );
194- CheckEquals( 76 , offsetof(' type_' ), ' type_' );
195- CheckEquals( 80 , offsetof(' tag_name' ), ' tag_name' );
196- CheckEquals( 84 , offsetof(' tagger' ), ' tagger' );
197- CheckEquals( 88 , offsetof(' message_' ), ' message_' );
197+ CheckEquals( 32 , offsetof(' target' ), ' target' );
198+ CheckEquals( 52 , offsetof(' type_' ), ' type_' );
199+ CheckEquals( 56 , offsetof(' tag_name' ), ' tag_name' );
200+ CheckEquals( 60 , offsetof(' tagger' ), ' tagger' );
201+ CheckEquals( 64 , offsetof(' message_' ), ' message_' );
198202end ;
199203
200204procedure TTestGitRecords.Test_git_time ;
@@ -251,9 +255,9 @@ procedure TTestGitRecords.Test_sizes;
251255 CheckEquals( 48 , sizeof(git_index), ' git_index' );
252256 CheckEquals( 8 , sizeof(git_hashtable_node), ' git_hashtable_node' );
253257 CheckEquals( 28 , sizeof(git_hashtable), ' git_hashtable' );
254- CheckEquals( 60 , sizeof(git_repository), ' git_repository' );
258+ CheckEquals( 64 , sizeof(git_repository), ' git_repository' );
255259 CheckEquals( 32 , sizeof(git_tree_entry), ' git_tree_entry' );
256- CheckEquals( 76 , sizeof(git_tree), ' git_tree' );
260+ CheckEquals( 52 , sizeof(git_tree), ' git_tree' );
257261 CheckEquals( 8 , sizeof(git_refcache), ' git_refcache' );
258262end ;
259263
0 commit comments