ChangeLog 14.2 KB
Newer Older
1 2 3 4 5
1999-09-26  Arturo Tena <arturo@directmail.org>

	* ms-ole.c (characterise_block): Added recognized block type.
	(read_bb): mark all bbd blocks as unused (incluiding additional ones).

6 7 8 9 10
1999-09-26  Arturo Tena <arturo@directmail.org>

	* ms-ole.c (ms_ole_open): Fixed bug: core dumped when called with an
	inexistent file name.

Michael Meeks's avatar
Michael Meeks committed
11 12 13 14 15 16
1999-09-26  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole.c (read_bb): Add semicolon after assert.
	(set_blk_dirty): remove: unused.
	(dump_header): kill arg.

17 18 19 20 21
1999-09-26  Arturo Tena <arturo@directmail.org>

	* ms-ole.c (read_bb): Read all the BBD's, including those where are in
	the additional bbd lists.

Michael Meeks's avatar
Michael Meeks committed
22
1999-09-25  Arturo Tena  <arturo@directmail.org>
Arturo Tena/libole2's avatar
Arturo Tena/libole2 committed
23 24 25 26

	* gnome-stream-ole.c, gnome-stream-ole.h, gnome-storage-ole.h,
	gnome-storage-ole.c: Killed again.

Michael Meeks's avatar
Michael Meeks committed
27 28 29 30 31
1999-09-25  Michael Meeks  <michael@nuclecu.unam.mx>

	* Makefile.am (lib_LT_LIBRARIES): Make libole2
	install.

32 33 34 35 36 37
1999-09-20  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole.c (ms_ole_open): fixed leak, updated.
	Re-written to allow a fallback from mmap.
	(ms_ole_read_ptr_bb, ms_ole_read_ptr_sb): fix logic.

Michael Meeks's avatar
Michael Meeks committed
38 39 40 41 42 43
1999-09-20  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole.c (path_to_pps): add degenerate no file case.
	(ms_ole_unlink): stub (ms_ole_directory): implemented.
	(ms_ole_stat): implemented.

Michael Meeks's avatar
Michael Meeks committed
44 45 46 47
1999-09-20  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole.c (ms_ole_destroy): Paper bag error.

Michael Meeks's avatar
Michael Meeks committed
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
1999-09-19  Michael Meeks  <michael@nuclecu.unam.mx>

	* Makefile.am: Killed storage.

	* gnome-storage-ole.[ch]: Killed.

	* ms-ole-summary.c (ms_ole_summary_open): 

	* ms-ole.c (MAP_FAILED): Hack for wierd systems.
	(ms_ols_*directory*): Destroyed, all new API. This time its permanant.
	will allow clean VFS integration & simple leak free usage. It cleans
	the header file & namespace and improves performance.
	(path_to_pps, pps_create): helper functions.
	(pps_create, pps_decode_tree): PPS signature for debugging.

Michael Meeks's avatar
Michael Meeks committed
63 64 65 66 67 68 69 70 71 72 73 74
1999-09-17  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole-summary.c (ms_ole_summary_set_string): Remove verbose
	comments; various cleans.

1999-09-15  Frank Chiulli  <fchiulli@home.com>

	* plugins/excel/libole2/ms-ole-summary.c (write_items): Calculate
	offsets correctly - properties must start on a 32-bit (4-byte)
	boundary.
	(ms_ole_summary_set_string): Strings are null-terminated.

Michael Meeks's avatar
Michael Meeks committed
75 76 77 78 79 80
1999-09-08  Michael Meeks  <michael@nuclecu.unam.mx>

	* ms-ole.c (ms_ole_open, extend_file): Added trap for MAP_FAILED.

	MM to MW: Thanks, my new mail address is as above.

Morten Welinder's avatar
Morten Welinder committed
81 82
1999-08-29  Morten Welinder  <terra@diku.dk>

83 84 85 86
	MW to MM: your primary mail server (mail.imaginator.com) is out;
	your secondary server (mail.peasy.net) is no longer accepting
	mail for imaginator.com.

Morten Welinder's avatar
Morten Welinder committed
87 88
	* ms-ole.c (ms_ole_path_decode): Plug leak.

89 90 91 92 93 94 95 96 97
1999-08-16  Michael Meeks  <michael@imaginator.com>

	* gnome-stream-ole.c (real_seek): Expanded, and fixed for
	new Bonobo seek type.

	* ms-ole.c (ms_ole_lseek): Implemented MsOleSeekEnd

	* ms-ole.h: Expanded seek enum.

98 99 100 101 102
1999-08-15  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_path_decode): Stop it trying to 'enter' streams :-)
	(ms_ole_directory_enter): Add more flowery debug.

Michael Meeks's avatar
Michael Meeks committed
103 104 105 106 107
1999-08-14  Michael Meeks  <michael@imaginator.com>

	* gnome-stream-ole.c (gnome_stream_ole_open_create): Fix cockups
	that broke compile.

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
1999-08-14  Michael Meeks  <michael@imaginator.com>

	* ms-ole.[ch]: Get seek to return new position.

	* ms-ole.[ch]: Rehash all daft guint32 references converting
	them to MsOlePos's.

	* README: More chat.

	* ms-ole.c (ms_ole_stream_open): Setup 'dir'

	* ms-ole.h (struct _MsOleStream): Re-ordered elements to make
	privacy more explicit, add 'dir' element to keep track of
	the file's directory handle.

	* ms-ole-summary.c (ms_ole_summary_open, ms_ole_summary_create):
	Use new open_name semantics.

	* gnome-stream-ole.[ch]: Created.

	* gnome-storage-ole.[ch]: Created.

1999-08-13  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_path_decode): Created.
	(ms_ole_stream_open_name): Changed API to use path.
	(ms_ole_file_decode): Added - This whole API needs fixing !

	* Makefile.am: Added gnome-stream/storage bits.

	* gnome-stream-ole.[ch]: Added.

	* gnome-storage-ole.[ch]: Added.

142 143 144 145 146 147 148 149 150 151 152
1999-07-26  Michael Meeks  <michael@edenproject.org>

	* ms-ole-summary.c (ms_ole_summary_create_stream): Implemented.
	(ms_ole_summary_create): Ditto.
	(ms_ole_summary_get_time, ms_ole_summary_get_preview): kill redundant
	and buggy seeks.
	(ms_ole_summary_set_long, ms_ole_summary_set_time),
	(ms_ole_summary_set_preview, write_item_t_new),
	(ms_ole_summary_set_string): Implemented.
	(ms_ole_summary_destroy): renamed ms_ole_summary_close.

153 154 155 156 157 158
1999-07-26  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c: Removed all references to GET/SET_GUINT(8,16,32):
	replaced with MS_OLE_~.
	(ms_ole_directory_new): Removed; old and redundant.
	(ms_ole_directory_next): Updated return type to gboolean.
159
	Started API documentation.
160

161
1999-07-22  Michael Meeks  <michael@edenproject.org>
162 163 164 165 166 167 168 169

	* ms-ole.c (ms_ole_stream_open): Cope with dodgy files by truncating
	them ( best we can do ).
	(NEXT_BB, NEXT_SB): Global insertion of cosmetic whitespace.

	* ms-ole-summary.h: Add get_properties API, pointless and asymetrical
	but possibly useful.

170 171
	* ms-ole-summary.c (ms_ole_summary_open_stream): Actually init. the
	items array.
172 173
	(read_items): Handle corrupt streams more correctly and chattily.
	
174 175 176 177 178
1999-07-20  Michael Meeks  <michael@edenproject.org>

	* ms-ole-summary.h: Changed not_available to available, improves
	legibility.

179 180
1999-07-19  Michael Meeks  <michael@edenproject.org>

181 182
	* ms-ole.h: Remove gnumeric references.

183 184 185 186 187 188
	* Makefile.am (libole2_a_SOURCES): Added -summary*

	* README: Updated to include summary source info.

	* ms-ole-summary.[ch]: Added.

Michael Meeks's avatar
Michael Meeks committed
189 190 191 192 193
1999-07-13  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (ms_ole_stream_open_name): Added.
	(ms_ole_directory_copy): Add.

194 195 196 197 198
1999-07-09  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (ms_ole_directory_create): Quieten
	"Trying N to read beyond EOF..." messages.

Michael Meeks's avatar
Michael Meeks committed
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
1999-07-03  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (ms_ole_read_copy_sb, ms_ole_read_copy_bb):
	Added check on ptr.

1999-07-02  Michael Meeks  <michael@edenproject.org>

	* ms-ole.h: Indented nicely again.

1999-07-03  Michael Meeks  <michael@edenproject.org>

	* ms-ole.[ch]: Clean.
	s/MS_OLE_STREAM/MsOleStream/g
	s/MS_OLE_DIRECTORY/MsOleDirectory/g
	s/MS_OLE/MsOle/g
	s/MsOle_SEEK_SET/MsOleSeekSet/g
	s/MsOle_SEEK_CUR/MsOleSeekCur/g
	s/ms_ole_seek_t/MsOleSeek/g
	s/MsOle_PPS_STORAGE/MsOlePPSStorage/g
	s/MsOle_PPS_STREAM/MsOlePPSStream/g
	s/MsOle_PPS_ROOT/MsOlePPSRoot/g
	s/PPS_TYPE/PPSType/g
	s/ms_ole_pos_t/MsOlePos/g
	s/MsOle_SMALL_BLOCK/MsOleSmallBlock/g
	s/MsOle_LARGE_BLOCK/MsOleLargeBlock/g
	s/BB_BLK_ATTR/BBBlkAttr/g

226 227 228 229 230 231 232 233
1999-06-28  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (pps_encode_tree_initial): Added different
	magic numbers for small block files.
	(extend_file): Culled unused variables.
	(read_pps): Add clobber of duff root node name, is this
	a bug in pps_get_text ?

Michael Meeks's avatar
Michael Meeks committed
234 235 236 237 238 239
1999-06-18  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (ms_ole_read_ptr_bb): Stupid bug detecting
	contiguous blocks !
	(ms_ole_read_ptr_sb): ditto.

Morten Welinder's avatar
Morten Welinder committed
240 241 242 243
1999-06-15  Morten Welinder  <terra@diku.dk>

	* ms-ole.c (ms_ole_destroy): Plug leak.

244 245
1999-06-15  Michael Meeks  <michael@edenproject.org>

246 247 248 249 250 251
	* ms-ole.c: Large updates to helper macros, to allow
	clean setting of dirty bits etc.
	(write_cache_block, set_blk_dirty): Created,
	(get_block_ptr): LRU strategy implemented.
	(ms_ole_destroy): Implemented for non-mmap.

252 253 254 255
	* ms-ole.h (struct MS_OLE): Renamed file_descriptor.

	* ms-ole.c (ms_ole_open): Fix bug opening directories.
	Added non-mmap code.
256

257 258 259 260 261 262 263 264
1999-06-01  Michael Meeks  <michael@edenproject.org>

	* ms-ole.c (pps_decode_tree): Added debug in case of
	currupted directory.
	(read_pps): Added check to make duff files fail on
	probe.
	(write_bb): Embarassing bug with block directories fixed.

265 266 267 268 269
1999-05-26  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_create): Set parent corectly.
	(ms_ole_directory_create): Set children correctly.

270 271 272 273 274 275
1999-05-25  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c: Really large overhaul of directory stuff, now
	all chaining is stored in a tree in memory and the read /
	write side is cleanly separate. All functions touched.
	Breaks directory writing.
276
	(read_bb): Fixed another unthinkable bug.
277

278 279 280
1999-05-24  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (write_sb): Fixed up sbf chain.
281 282 283 284 285 286 287 288
	(read_sb): Made sbf chain consistant.
	(write_sb): Removed sillyness with late chaining of sbf.
	(next_free_bb): Extend one block at a time.
	Cleaned all references to dump_allocation, added
	ms_ole_debug helper function.
	(ms_ole_debug): Re-implemented dump_allocation with
	(characterise_block): for extra spiffy debugging.
	(read_bb): Stop us leaking BBD blocks all over the shop.
289

Michael Meeks's avatar
Michael Meeks committed
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
1999-05-23  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_directory_create): Setup 'dir' properly
	for streams tacked onto chain.
	(PPS_SET_NAME_LEN): Removed factor of two.
	(ms_ole_create): Updated magic from 0x0003003b to 0x0003003e

1999-05-22  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (pps_encode): Fix for NULL names.
	(ms_ole_directory_create): Silly bug chaining in filenames.
	(next_free_sb): Actually mark the blocks we are using as used.
	Re-adjust the calculations for extending the sbf.
	(ms_ole_stream_close): Add check on array before free.
	(free_allocation): Write the Small block writing code.
	(ms_ole_directory_next): Recurse over NULL names.
	Cleaned debug: silent except for errors.
	Added 'dirty' flag to MS_OLE *, fo write-backs.
	(read_sb): Trancate the SB chain to remove appended
	unused blocks.
	(write_pps): Fiddled.
	(pps_encode): Silly bug in PPS name length setting &
	setting start to END_OF_CHAIN.

314 315 316
1999-05-21  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_stream_close): Leak fixed: thanks Morten.
Michael Meeks's avatar
Michael Meeks committed
317 318 319 320 321 322 323 324 325 326
	(read_bb): Silly bug with lengths and header block.
	(ms_ole_create): Changed creation method, parallel but discrete.
	(ms_ole_directory_create): Cleaned up, bug not setting primary_entr
	(ms_ole_cleanup): Fleshed out.
	(next_free_pps): Serious bug klonked.
	(write_pps, write_sb, write_bb): Implemented.
	(ms_ole_append_block): Fix silly bug using sb not bb.
	(next_free_bb): Add call to extend_file !
	(ms_ole_write_sb): Simplified conversion and killed nasty
	critical section checks.
327

328 329 330 331 332 333 334 335 336 337 338 339
1999-05-20  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c: Whole Block structure totaly re-written for the
	third time ! Lots cleaner, and should support non-mmapped
	architectures with time.

1999-05-19  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_write_sb): Fix fatal bug with converting a
	SB -> a BB file when mmap moves memory invalidating src ptr.
	(ms_ole_create): Init header to UNUSED_BLOCK.

Michael Meeks's avatar
Michael Meeks committed
340 341 342 343 344 345 346 347
1999-05-18  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (init_pps): Constricted name writing further.
	Added missing factor of 2 to length.
	(ms_ole_create): Remove silly set name length.
	(pps_get_text): Added halving of length
	(ms_ole_directory_create): Init startblock to END_OF_CHAIN.

348 349 350 351 352 353 354
1999-05-17  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (dump_stream): Updated to use s->position.
	(set_offset, get_offset): Culled ( dead ).
	(dump): Removed spurious #undefs
	(ms_ole_write_bb, ms_ole_write_sb): Fixed for mid-stream
	writes.
355 356 357 358 359
	(next_free_bb): Limit extension to 10 blocks.
	Fix sillyness in UNUSED_BLOCK setting.
	(ms_ole_create): Fix killer stupid bug ! setting whole map to
	END_OF_CHAIN instead of UNUSED_BLOCK ! idiot !
	Correctly terminated the root directory chain.
Michael Meeks's avatar
Michael Meeks committed
360 361
	Added magic numbers.
	(ms_ole_directory_create): Added magic numbers.
362 363 364 365 366 367 368 369

	* ms-ole.h (struct _MS_OLE_STREAM): Add tell method, and fix
	broken comments.
	Added ms_ole_pos_t typedef.
	
	* ms-ole.c (directory_setup): Add check.
	(ms_ole_directory_next): Fix leak from Morten.

Michael Meeks's avatar
Michael Meeks committed
370 371 372 373 374 375
1999-05-15  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_create): Fixed stupid bug; created
	ole file was opened read-only; also set mode = 'w'
	Major re-working / bug-fixing...

376 377 378 379 380
1999-05-14  Michael Meeks  <michael@imaginator.com>

	* ms-ole.h: Updated types to forward references.
	Changed ms_ole_directory_get_root to ms_ole_get_root.

381 382 383 384 385
1999-05-13  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_new, ms_ole_create, ms_ole_deanalyse): 
	Fatal bug with uninitialised arrays fixed.

386 387 388 389
1999-05-12  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (free_allocation): Major hassles here with
	setting up sbf/sbd chain pointers.
Michael Meeks's avatar
Michael Meeks committed
390 391 392 393 394 395
	(read_link_array): Checks for silly situations.
	(ms_ole_directory_create): Check for name != NULL.
	(next_free_sb): Added assert. Fix of out by 1 condition
	for extending SBD.
	Cleaned debug up throught and made conditional on OLE_DEBUG

396 397 398 399 400 401 402 403 404 405

1999-05-11  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (next_free_bb): Removed recurse, and
	added assert for speed and ease.
	(ms_ole_lseek): Altered logic slightly on position
	setting.
	Major alteration of sbd_list, sbf_list, root_list to
	GArray's: Touches everything.

Michael Meeks's avatar
Michael Meeks committed
406 407 408 409 410 411 412 413 414
1999-05-10  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (next_free_bb): recurse for safety.
	More debugging checks throught
	More safty bracketing in macros.
	(next_free_pps): Added read_root_list.
	(extend_file): Removed redundant daft UNUSED setting
	code.

Michael Meeks's avatar
Michael Meeks committed
415 416 417 418 419 420 421
1999-05-08  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_directory_create): Added 'w' mode check.
	Added check for name overruns.
	(ms_ole_write_bb, ms_ole_write_bb): Major work, now OK for
	some small files again.

422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
1999-05-08  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c (ms_ole_stream_open): Checks mode before
	returning handle;
	(ms_ole_new): Added mode flag setting.
	(ms_ole_read_ptr_bb, ms_ole_read_ptr_sb): A howler fixed.
	(ms_ole_stream_open): More accuracy, in building block list.

	* ms-ole.h (_MS_OLE): Added 'mode' flag.

	* ms-ole.c (ms_ole_stream_close): Set size on exit
	to save constantly updating it, if writing.
	Re-sculpted many PPS_GET/SET_SIZE macros.
	(ms_ole_stream_open): Removed redundant END_OF_CHAIN
	block on the end of the blocks array.
	(ms_ole_read_copy_bb): Remove check for END_OF_CHAIN,
	and re-arrange.

440 441 442 443 444 445
1999-05-08  Michael Meeks  <michael@imaginator.com>

	* ms-ole.c: Moved all biff code into ../ms-biff.c
	Removed odd includes.
	(pps_get_text): Changed types to guint8 from BYTE.
	(ms_ole_stream_copy): Created, and made global.