forked from syntheticpp/dirfile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
5385 lines (4042 loc) · 227 KB
/
ChangeLog
File metadata and controls
5385 lines (4042 loc) · 227 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2012-07-04 D. V. Wiebe <getdata@ketiltrout.net> svn:737
GetData-0.8.0 released.
2012-07-04 D. V. Wiebe <getdata@ketiltrout.net> svn:736
* src/constant.c (gd_get_carray_slice gd_get_carray gd_carray_len
gd_put_carray_slice gd_put_carray): Handle both CONST and CARRAY.
* src/constant.c (gd_get_constant gd_put_constant): Just call the
corresponding carray_slice function.
2012-06-30 D. V. Wiebe <getdata@ketiltrout.net> svn:732
* src/getdata.h.in configure.ac cmake/CMakeLists.txt: Fix definition of
gd_off64_t.
* bindings/perl/Build.PL.in: make getdata.h a dependency of lib/GetData.xs.
2012-06-29 D. V. Wiebe <getdata@ketiltrout.net> svn:728
* src/getdata.h.in src/internal.h src/errors.c: Merge GD_E_BAD_VERSION into
GD_E_ARGUMENT.
2012-06-28 D. V. Wiebe <getdata@ketiltrout.net> svn:725,726
* util/checkdirfile.c: Find and report dangling aliases.
* bindings/python/pydirfile.c (gdpy_dirfile_nentries gdpy_dirfile_entrylist)
bindings/cxx/dirfile.cpp (Dirfile::NEntries Dirfile::EntryList)
bindings/perl/GetData.xs (entry_list) : Fix signedness of "type".
* bindings/idl/getdata.c (gdidl_get_field_list gdidl_get_nfields): Deal with
/ALIASES.
* bindings/make_parameters.c: Add GD_ALIAS_ENTRIES.
* test/nentries_noalias.c test/elist_noalias.c: Renamed from ..._alias.c.
* test/nentries_alias.c test/elist_alias.c: Added.
* src/internal.h getdata.h.in: Move GD_ALIAS_ENTRY to public header.
* src/getdata.h.in: Define GD_ALIAS_ENTRIES.
* src/field_list.c (_GD_EntryIndex _GD_ListEntry) src/nfields.c
(_GD_NEntries): Handle GD_ALIAS_ENTRIES.
* src/common.c (_GD_CanonicalPath): Sidestep GCC warning.
2012-06-27 D. V. Wiebe <getdata@ketiltrout.net> svn:724
* src/name.c (_GD_UpdateScalar _GD_InvalidateConst _GD_UpdateInField
_GD_InvalidateVect): Handle aliases.
* src/name.c (gd_rename): Don't dereference aliases.
* src/name.c (gd_rename_alias): Deleted.
* test/name.c test/name_updb_const.c test/name_updb.c: Updated.
* test/name_updb_const_alias.c test/name_move_alias.c test/name_alias.c
test/name_updb_alias.c: Added.
* test/name_after_const.c test/name_after.c: Deleted.
* src/parse.c (_GD_ResolveAlias): Reset aliases if requested.
* man/make_html.pl: Don't eat "**" in synopses.
2012-06-25 D. V. Wiebe <getdata@ketiltrout.net> svn:723
* src/flush.c (_GD_FindVersion): ALIAS means >= 9.
* util/checkdirfile.c: Grammar.
2012-06-13 D. V. Wiebe <getdata@ketiltrout.net> svn:721
GetData-0.8.0rc2.
2012-06-04 D. V. Wiebe <getdata@ketiltrout.net> svn:720
* bindings/cxx/dirfile.cpp bindings/cxx/fragment.cpp
bindings/cxx/getdata/dirfile.h bindings/cxx/getdata/fragment.h: off_t
-> gd_off64_t.
2012-06-02 D. V. Wiebe <getdata@ketiltrout.net> svn:717
* src/internal.h (_GD_AbsPath): Allow s == NULL.
2012-05-25 D. V. Wiebe <getdata@ketiltrout.net> svn:712
* bindings/cxx/fragment.cpp (Fragment::Fragment Fragment::SetEndianness)
bindings/cxx/dirfile.cpp (Dirfile::NFrames Dirfile::EoF Dirfile::BoF
Dirfile::GetData Dirfile::PutData Dirfile::FrameNum Dirfile::Seek
Dirfile::Tell): Call the 64-bit API.
* src/getdata.h.in: Support GD_64BIT_API and use configure to define
gd_off64_t.
* src/internal.h bindings/cxx/getdata/dirfile.h: Define GD_64BIT_API before
including getdata.h.
* test/Makefile.am man/Makefile.am: Remove LFS_TRANSITIONAL_API (always
enabled).
* confihure.ac: Figure out a suitable type for gd_off64_t. Remove
LFS_TRANSITIONAL_API conditional.
2012-05-23 D. V. Wiebe <getdata@ketiltrout.net> svn:710
* test/test.h: Don't redefine isnan if it's okay as-is.
* src/open.c (_GD_CreateDirfile): Don't unnecessarily disable mtime
acquisition.
* cmake/test/CMakeLists.txt: enable desync checks.
* src/compat.c (gd_strtod): Fix sign check.
2012-05-22 D. V. Wiebe <getdata@ketiltrout.net> svn:709
* cmake/CMakeLists.txt: Update definitons. Support GD_UTIL.
* cmake/test/CMakeLists.txt: Update the list of excluded tests.
* cmake/src/CMakeLists.txt: Support GD_DEBUG and conditionally build debug.c.
* cmake/bindings/cxx/CMakeLists.txt: Support GD_TEST.
* cmake/util/CMakeLists.txt cmake/bindings/cxx/test/CMakeLists.txt: Added.
* src/internal.h: Define PRNsize_t and PRNssize_t to get around printf()s
which don't recognise the "z" length modifier. Changed everywhere. Handle
basename, offsetof, strtod.
* src/compat.c (basename gd_strtod): Added.
* src/parse.c (_GD_SetScalar) src/nan.h: Call gd_strtod.
* README.win: Update.
* bindings/cxx/test/big_test.cpp: Tweak includes to allow compilation with
MSVC.
* bindings/cxx/getdata/entry.h bindings/cxx/getdata/fragment.h: Include
dirfile.h.
* test/include_cb.c test/madd_window.c test/open_cb_cont.c
test/open_cb_invalid.c test/include_pc.c test/test.h test/open_cb_rescan.c
test/open_cb_abort.c test/open_cb_ignore.c: Tweak for compilation with MSVC.
* test/add_meta_alias.c test/madd_affix.c test/parse_mplex_nomax.c
test/add_meta.c: Fix gd_entry_t access.
* util/checkdirfile.c: Preprocessor fixes for compilation with MSVC.
2012-04-21 D. V. Wiebe <getdata@ketiltrout.net> svn:706
GetData-0.8.0rc1:
* bindings/cxx/test/big_test.cpp bindings/perl/test/big_test.t: Fix
mplex_lookback checks.
2012-04-21 D. V. Wiebe <getdata@ketiltrout.net> svn:705
* man/make_html.pl: Improvements.
* src/globals.c (gd_mplex_lookback): Always succeed; return void.
* bindings/perl/simple_funcs.pl: Handle returning void.
2012-04-19 D. V. Wiebe <getdata@ketiltrout.net> svn:701
* src/add.c (_GD_Add): Don't check protection level before figuring out the
fragment index.
* bindings/perl/GetData.xs bindings/perl/typemap
bindings/perl/simple_funcs.pl: gdpu_spf_t -> gdpu_uint_t.
* bindings/perl/GetData.xs (gdp_to_entry entry): Use "in_fields" everywhere
to be consistent with the C API.
* bindings/perl/GetData.xs (mcarrays): Remove unpacked. Use GIMME_V
instead.
* bindings/perl/simple_funcs.xsin (reference alter_phase add_window
alter_window alter_affixes add_mplex alter_mplex desync flags
verbose_prefix): Fix parameter defaults and types.
* bindings/perl/Build.PL.in: Install GetData.pm
* bindings/perl/simple_funcs.xsin (include include_affex): Deleted.
* bindings/perl/GetData.xs (include): Added.
* doc/README.perl: Added.
* bindings/perl/GetData.pm.in: POD.
* bindings/cxx/test/Makefile.am bindings/f77/Makefile.am test/Makefile.am
test/error_verbose.c test/error_verbose_prefix.c: Remove GNUisms.
2012-04-13 D. V. Wiebe <getdata@ketiltrout.net> svn:699
* src/common.c (_GD_CanonicalPath): Terminate and don't clobber string
from realpath().
* bindings/make_parameters.c: Add GD_SIE_ENCODED.
* bindings/cxx/getdata/fragment.h: Update encodings.
* bindings/f77/fgetdata.c (GDTOKE) bindings/f77/getdata.f90.in (fgd_strtok):
Drop the 'n' parameter: just do what the C API does.
* bindings/idl/getdata.c (gdidl_getdata gdidl_putdata): Drop /HERE: just use
the absense of FIRST_FRAME and FIRST_SAMPLE.
* bindings/idl/getdata.c (gdidl_add_mplex): Make the MAX parameter optional.
2012-04-01 D. V. Wiebe <getdata@ketiltrout.net> svn:696
* src/compat.c (_GD_ReadDir): Renamed from gd_readdir().
2012-04-01 D. V. Wiebe <getdata@ketiltrout.net> svn:694
* src/getdata.h.in: Deprecate gd_bit_t and gd_spf_t. Remove gd_count_t.
* src/getdata.h.in bindings/make_parameters.c: Remove GD_COUNT_MAX.
* cmake/CMakeLists.txt: Remove DEFINE_gd_int16_t and DEFINE_gd_uint16_t.
* src/internal.h: Calculate GD_INT_TYPE and GD_UINT_TYPE.
* src/entry.c (_GD_CalculateEntry) src/flush.c (_GD_FieldSpec) src/getdata.c
(_GD_DoMplex) src/putdata.c (_GD_DoMplexOut gd_putdata64) src/del.c
(_GD_DeReference) src/parse.c (_GD_ParseMplex _GD_ParseBit) src/mod.c
(_GD_Change): Use GD_INT_TYPE when dealing with bitnum, numbits, count_max,
and count_val.
* src/add.c (gd_add_bit gd_add_sbit gd_add_mplex gd_madd_bit gd_madd_sbit
gd_madd_mplex) src/mod.c (gd_alter_bit gd_alter_sbit gd_alter_mplex)
bindings/python/pyentry.c (gdpy_entry_setnumbits gdpy_entry_setbitnum
gdpy_entry_setcountval gdpy_entry_setcountmax) bindings/cxx/mplexentry.cpp
(MplexEntry::MplexEntry MplexEntry::SetCountVal MplexEntry::SetCountMax)
bindings/cxx/sbitentry.cpp (SBitEntry::SBitEntry SBitEntry::SetFirstBit
SBitEntry::SetNumBits) bindings/cxx/test/big_test.cpp
bindings/cxx/bitentry.cpp (BitEntry::BitEntry BitEntry::SetFirstBit
BitEntry::SetNumBits) bindings/cxx/getdata/bitentry.h (FirstBit NumBits)
bindings/cxx/getdata/entry.h (FirstBit NumBits CountVal CountMax)
bindings/cxx/getdata/mplexentry.h (CountVal CountMax)
bindings/cxx/getdata/sbitentry.h (FirstBit NumBits) bindings/perl/GetData.xs
bindings/perl/typemap bindings/perl/simple_funcs.pl bindings/f77/fgetdata.c
(GDADBT GDADSB GDMDBT GDMDSB GDALBT GDALSB) bindings/idl/getdata.c
(gdidl_make_idl_entry gdidl_read_idl_entry gdidl_add_mplex gdidl_alter_mplex):
gd_bit_t, gd_count_t -> int.
* src/fpos.c (_GD_Seek) src/getdata.c (_GD_MultiplyData _GD_CMultiplyData
_GD_DivideData _GD_CDivideData _GD_WindowData _GD_CDivideData _GD_MplexData
_GD_DoLincom _GD_DoMultiply _GD_DoDivide _GD_DoWindow _GD_DoMplex
gd_getdata64) src/putdata.c (_GD_MplexOutData gd_putdata64) src/flimits.c
(_GD_GetEOF _GD_GetBOF gd_bof64) src/common.c (_GD_LinterpData
_GD_LincomData) src/add.c (gd_add_raw) src/spf.c (_GD_GetSPF gd_spf)
src/mod.c (_GD_SPFConvert) src/mod.c (gd_alter_entry) src/index.c
(gd_framenum_subset64) bindings/python/pyentry.c (gdpy_entry_setspf)
bindings/python/pydirfile.c (gdpy_dirfile_getdata) bindings/cxx/rawentry.cpp
(RawEntry::RawEntry RawEntry::SetSamplesPerFrame)
bindings/cxx/getdata/rawentry.h (SamplesPerFrame) bindings/perl/GetData.xs
bindings/perl/typemap bindings/perl/simple_funcs.pl bindings/f77/fgetdata.c
(GDADRW GDALRW) util/dirfile2ascii.c: gd_spf_t -> unsigned int.
* src/flush.c (_GD_WriteConst) src/mod.c (_GD_AlterScalar): Add missing
integer types.
* src/parse.c (_GD_ParseMplex): Make count_max optional.
* src/getdata.c (_GD_DoMplex) src/add.c (_GD_Add): Handle count_max == 0.
* src/getdata.h.in: Mark GD_FLOAT and GD_DOUBLE as deprecated.
* src/encoding.c (_GD_FiniRawIO): Handle short writes and IO errors.
* src/getdata.c (_GD_DoMplex): use D->lookback to determine how far to
search backwards. Also, read data in chunks of size GD_BUFFER_SIZE.
* src/open.c (_GD_Open): Initialise D->lookback.
* src/globals.c (gd_mplex_lookback): Added.
* bindings/cxx/dirfile.cpp (Dirfile::MplexLookback)
bindings/perl/simple_funcs.xsin (mplex_lookback) bindings/f77/getdata.f90.in
(fgd_mplex_lookback) bindings/f77/fgetdata.c (GDMXLB) bindings/idl/getdata.c
(gdidl_mplex_lookback): Added.
* src/parse.c (gd_strtok): Renamed from gd_tokenise to avoid regional
spelling variations. Bindings renamed accordingly (except for the F77
bindings).
* bindings/python/pygetdata.c: Add GD_E_EXISTS exception.
* bindings/python/pydirfile.h: Add mplex_lookback and verbose_prefix to
gdpy_constant_t.
* bindings/python/pydirfile.c (gdpy_dirfile_delete): Delete verbose_prefix.
* bindings/python/pydirfile.c (gdpy_dirfile_create): Initialise
mplex_lookback and verbose_prefix.
* bindings/python/pydirfile.c (gdpy_dirfile_verbose_prefix): Deleted.
* bindings/python/pydirfile.c (gdpy_dirfile_getverboseprefix
gdpy_dirfile_setverboseprefix gdpy_dirfile_getmplexlookback
gdpy_dirfile_setmplexlookback): Added.
* bindings/Makefile.am: add src/gd_config.h to the prerequisites of
make_parameters.
* src/flush.c (_GD_FlushFragment): Write /ENCODING for zzip and zzslim.
* src/meta_list.c: Merged into src/field_list.c
* src/nmeta.c: Merged into src/nfields.c
* src/add.c (_GD_InvalidEntype): Added.
* src/internal.h: Add entry_list and entry_list_flags to DIRFILE and
private_entry.
* src/internal.h (_GD_EntryIndex): Deleted.
* src/field_list.c (_GD_EntryIndex _GD_EntryList gd_entry_list): Added.
* src/field_list.c (_GD_ListEntry): Handle GD_ENTRIES_... flags.
* src/field_list.c (gd_field_list_by_type gd_vector_list gd_field_list
gd_mfield_list_by_type gd_mfield_list): Reimplement via gd_entry_list().
* src/nfields.c (_GD_NEntries gd_nentries): Added.
* src/nfields.c (gd_nfields gd_nvectors gd_nfields_by_type gd_nmfields
gd_nmvectors gd_nmfields_by_type): Reimplement via gd_nentries().
* src/field_list.c (gd_constants gd_carrays gd_strings gd_mconstants
gd_mcarrays gd_mstrings): Call _GD_NEntries for counts.
* src/entry.c (gd_hide gd_unhide) src/del.c (_GD_Delete) src/include.c
(gd_uninclude) src/add.c (_GD_Add): Delete count updates.
* src/name.c (_GD_Rename) src/del.c (_GD_Delete) src/include.c
(gd_uninclude) src/add.c (_GD_Add _GD_AddAlias): Invalidate metafield lists
too.
* src/entry.c (_GD_FreeE) src/close.c (_GD_FreeD): Delete entry_lists.
* src/globals.c (gd_flags): Don't check GD_INVALID.
* bindings/python/pydirfile.c (gdpy_dirfile_nentries
gdpy_dirfile_entrylist) bindings/perl/GetData.xs (entry_list)
bindings/cxx/dirfile.cpp (Dirfile::NEntries Dirfile::EntryList)
bindings/f77/getdata.f90.in (fgd_nentries fgd_entry_name_max fgd_entry_list)
bindings/f77/fgetdata.c (GDNENT GDENTX GDENTN): Added.
* bindings/idl/getdata.c (gdidl_get_field_list gdidl_get_nfields)): Convert to
bindings for gd_entry_list and gd_nentries.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/test/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests
237 through 240.
* test/elist_alias.c test/elist_hidden.c test/elist_scalar.c
test/get_lincom_null.c test/get_mplex_lball.c test/get_mplex_nolb.c
test/nentries_alias.c test/nentries_hidden.c test/nentries_scalar.c
test/parse_malias_meta.c test/parse_mplex_nomax.c: Added.
* man/: Updated.
2012-03-28 D. V. Wiebe <getdata@ketiltrout.net> svn:691
* src/flush.c (_GD_FieldSpec) src/parse.c (_GD_ParseMplex): Swap order of
fields in MPLEX specification.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/test/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro
test/entry_mplex_scalar.c test/get_mplex.c test/alter_mplex.c
test/put_mplex.c test/get_mplex_lb.ctest/entry_mplex.c: Update for
Standards change.
2012-03-28 D. V. Wiebe <getdata@ketiltrout.net> svn:690
* m4/compiler.m4 (GD_C_RESTRICT_ARRAY): Fix test program.
* bindings/idl/getdata.c (gdidl_alter_mplex): Fix uninitialised variable.
2012-03-28 D. V. Wiebe <getdata@ketiltrout.net> svn:689
* m4/compiler.m4 (GD_C_RESTRICT_ARRAY): Added.
* src/parse.c src/internal.h: Work around deficiencies in the GCC-3.4 C99
compliance.
2012-03-22 D. V. Wiebe <getdata@ketiltrout.net> svn:683
* src/sie.c (_GD_SampIndWrite): Fix file size calculation during truncation.
* bindings/python/pydirfile.c (gdpy_dirfile_getdata): Make return_type and
num_<foo> optional.
2012-03-16 D. V. Wiebe <getdata@ketiltrout.net> svn:680
* src/globals.c (gd_flags gd_verbose_prefix): Added.
* src/errors.c (_GD_SetError): Print verbose prefix, if present.
* make_parameters.c: Promote GD_VERBOSE and GD_PRETTY_PRINT.
* bindings/cxx/dirfile.cpp (Dirfile::Flags Dirfile::VerbosePrefix)
bindings/python/pydirfile.c (gdpy_dirfile_getflags gdpy_dirfile_setflags
gdpy_dirfile_verbose_prefix) bindings/perl/simple_funcs.xsin (flags
verbose_prefix) bindings/f77/fgetdata.c (GDFLAG GDVBPX)
bindings/f77/getdata.f90.in (fgd_flags fgd_verbose_prefix)
bindings/idl/getdata.c (gdidl_flags gdidl_verbose_prefix): Added.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/test/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests
235, 236.
* src/open.c (_GD_Open): Reset errno to prevent spurious error messages.
* src/flush.c (_GD_FlushFragment): Avoid FPE.
* test/global_flags.c test/error_verbose.c test/error_verbose_prefix.c:
Added.
* bindings/idl/getdata.c (gdidl_open): Add missing IGNORE_REFS,
PRETTY_PRINT, TRUNCSUB.
* bindings/f77/fgetdata.c (_GDF_CString): Take care of the malloc'ing rather
than forcing the caller to do it.
2012-03-16 D. V. Wiebe <getdata@ketiltrout.net> svn:678
* src/errors.c src/getdata.h.in: Add GD_E_EXISTS
* src/open.c (_GD_CreateDirfile): Replace GD_E_CREAT:GD_E_CREAT_EXCL with
GD_E_EXISTS.
2012-03-16 D. V. Wiebe <getdata@ketiltrout.net> svn:676
* configure.ac bindings/idl/package/configure.ac src/include.h
bindings/make_parameters.c bindings/cxx/internal.h bindings/idl/getdata.c
test/test.h util/dirfile2ascii.c util/checkdirfile.c: Renamed config.h to
gd_config.h to get around lossage in the Perl CORE public headers.
* bindings/perl/test: Renamed from t.
* bindings/perl/MANIFEST.in: Renamed from MANIFEST.
* bindings/perl Makefile.am bindings/f77/test/Makefile.am: VPATH fixes.
* src/fragment.c (gd_desync): dup the dirfile fd before closing.
* test/desync_reopen.c test/desync_reopen_inv.c: Added.
* bindings/idl/package/configure.ac bindings/idl/package/README: Bump
GetData min version.
2012-03-15 D. V. Wiebe <getdata@ketiltrout.net> svn:675
* src/internal.h: Add fragment->mtime, dirfile->open_flags. Deconst
fragment->sname.
* src/close.c (_GD_FreeD _GD_ShutdownDirfile): Add new parameter
(keep_dirfile) to prohibit deallocating the dirfile struct itself.
De-staticked _GD_ShutdownDirfile.
* src/include.c (_GD_Include): Compute the path relative to the parent of
fragment and store it in fragment->sname. Store mtime.
* src/close.c (_GD_FreeD): Free fragment->sname.
* src/flush.c (_GD_FlushFragment): Remove unnecessary strdup: we already
cache the basename. Update mtime.
* src/open.c (_GD_CreateDirfile): Return mtime.
* src/open.c (_GD_Open): Renamed from gd_cbopen; optionally take an existing
dirfd and DIRFILE pointer. Fix the dirfd/dirfile race condition by
canonicalising dirfile first.
* src/fragment.c (gd_desync) src/open.c (gd_cbopen): Added.
* src/getdata.h.in: Added GD_DESYNC_PATHCHECK GD_DESYNC_REOPEN.
* test/desync.c test/desync_flush.c: Added.
* src/internal.h (offsetof): Added.
* src/compat.c (gd_readdir): Added.
* src/open.c (_GD_TruncDir): Use a thread-safe readdir where possible.
* src/include.c (gd_include_affix): Don't call do stuff before validating
the dirfile.
* bindings/make_parameters.c: Add desync flags.
* bindings/python/pydirfile.c (gdpy_dirfile_desync) bindings/cxx/dirfile.cpp
(Dirfile::DeSync) bindings/perl/simple_funcs.xsin (desync)
bindings/f77/getdata.f90.in (fgd_desync) bindings/f77/fgetdata.c (GDDSYN)
bindings/idl/getdata.c (gdidl_desync): Added.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/t/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Added test
234.
* bindings/cxx/test/big_test.cpp: Functionise to reduce compilation work.
* bindings/perl/Makefile.am: Tweak yet some more.
2012-03-14 D. V. Wiebe <getdata@ketiltrout.net> svn:674
* src/open.c (gd_cbopen): Handle failure of _GD_CanonicalPath better.
2012-03-14 D. V. Wiebe <getdata@ketiltrout.net> svn:671
* src/flush.c (_GD_FlushFragment): Write SIE encoding directives.
* src/sie.c (_GD_SampIndOpen): Initialise file->pos to 0 to avoid issues
with _GD_GetFilePos.
* src/sie.c (_GD_SampIndSeek): Don't short circuit if no record is loaded.
* src/flush.c (_GD_Flush _GD_SyncOrClose): Make syncing optional with a new
parameter (syn).
* src/flush.c (gd_raw_close): Added.
* src/clsoe.c (_GD_ShutdownDirfile) src/include.c (gd_uninclude): Don't
sync, just close raw files.
* bindings/python/pydirfile.c (gdpy_dirfile_raw_close)
bindings/cxx/dirfile.cpp (Dirfile::RawClose) bindings/perl/simple_funcs.xsin
(raw_close) bindings/f77/fgetdata.c (GDRCLO) bindings/f77/getdata.f90.in
(fgd_raw_close): Added.
* bindings/idl/getdata.c (gdidl_flush): Add /NOSYNC.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/t/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90: Added test 233.
* bindings/perl/Build.PL.in: subclass Module::Build to properly handle
simple_funcs.xs dependency tracking.
2012-03-06 D. V. Wiebe <getdata@ketiltrout.net> svn:667
* src/errors.c: Change prefix on verbose output to "libgetdata".
* src/add.c (_GD_FixName): Added.
* src/add.c (_GD_Add _GD_AddAlias): Call _GD_FixName.
* test/add_alias_meta.c: Added.
* src/open.c (_GD_TruncDir): Fix subdirectory truncation.
* src/internal.h: Remove conditional defition of AT_SYMLINK_NOFOLLOW.
* src/compat.c (gd_StatAt): Check for definition of AT_SYMLINK_NOFOLLOW
before use.
2012-03-03 D. V. Wiebe <getdata@ketiltrout.net> svn:665
* src/getdata.h.in bindings/make_parameters.c: Added GD_TRUNCSUB open flag.
* src/open.c (_GD_TruncDir): Added.
* src/open.c (_GD_CreateDirfile): Call _GD_TruncDir.
* test/trunc_dir.c test/trunc_truncsub.c: Added.
* src/fragment.c (gd_alter_affixes): Handle GD_E_ACCMODE and GD_E_PROTECTED
errors.
* bindings/f77/fgetdata.c (GDDELA): Correct call to gd_delete_alias.
2012-03-02 D. V. Wiebe <getdata@ketiltrout.net> svn:664
* src/errors.c: Added GD_E_ARGUMENT:GD_E_ARG_NODATA.
* src/parse.c (_GD_Tokenise): Take number of columns to return.
* src/parse.c (gd_tokenise): Added.
* src/internal.h: Added _GD_DIRFILE->tok_pos.
* src/parse.c (_GD_CheckParent): Destatickify, and modify for use by
_GD_Add.
* src/add.c (_GD_Add): Call _GD_CheckParent to automatically allow
parent/meta style metafield addition via gd_add[_<whatever>]().
* bindings/python/pydirfile.c (gdpy_dirfile_tokenise)
bindings/cxx/dirfile.cpp (Dirfile::Tokenise) bindings/perl/GetData.xs
(tokenise) bindings/f77/getdata.f90.in (fgd_tokenise)
bindings/f77/fgetdata.c (GDTOKE) bindings/idl/getdata.c (gdidl_tokenise):
Added.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/t/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add test
#232.
* bindings/f77/getdata.f90.in (fgd_fragment_affixes): Fix GDFRAF call.
* bindings/f77/fgetdata.c (_GDF_SetDirfile _GDF_Callback GDCOPN GDCLBK):
Don't cast between data and code pointers. Encapsulate the F77 callback
function in a container.
* bindings/f77/fgetdata.c (GDNOCB): Added.
* bindings/f77/test/gdcopn.f: Add GDCLBK and GDNOCB tests.
* test/ascii_get.c test/ascii_put.c test/ascii_get_get.c
test/ascii_nframes.c: Delete FOPEN_TEXT.
* test/add_meta.c test/add_meta_alias.c: Added.
2012-02-16 D. V. Wiebe <getdata@ketiltrout.net> svn:658
* src/getdata.c (_GD_DoLincom): Get the correct SPFs.
* test/get_lincom_spf.c: Added.
* src/open.c (_GD_CreateDirfile): When truncating, don't delete and then
recreate the format file; just truncate it. (This helps kst not get
confused when monitoring a dirfile which gets truncated.)
2012-02-14 D. V. Wiebe <getdata@ketiltrout.net> svn:656 svn:657
* src/putdata.c (gd_putdata): Return early if num_samp == 0.
* test/put_zero.c: Added.
2012-02-01 D. V. Wiebe <getdata@ketiltrout.net> svn:652
* configure.ac: Figure out the directory separator (ie. '/' on POSIX).
* src/open.c (_GD_CreateDirfile): Handle DIRSEP.
* src/internal.h (_GD_Root): Added.
* src/common.c (_GD_CanonicalPath): Handle WIN32/DOS paths.
* src/open.c (gd_cbopen): Temporarily store the full path in D->name so that
_GD_CreateDirfile can use it when needed.
* src/spf.c (_GD_GetSPF): De const-ify E.
* src/common.c (_GD_FindField): Fix buffer length calculation.
* test/file.c test/fragment_name.c bindings/cxx/test/big_test.cpp
bindings/f77/test/big_test.f bindings/f77/test/big_test95.f90: Handle DIRSEP.
* bindings/f77/test/test_getdata.f.in: Added.
2012-01-18 D. V. Wiebe <getdata@ketiltrout.net> svn:650
* src/getdata.h.in src/internal.h: Define GD_ENC_ZZSLIM GD_ZZSLIM_ENCODED.
* src/zzslim.c: Added.
* src/encoding.c: In the initialisation of _gd_ef, differentiate things
that are willing to use the Generic functions from those that aren't. Added
zzslim.
* src/common.c (_GD_CanonicalPath): Don't truncate on ENOENT.
* src/slim.c (_GD_SlimOpen): The slimdopen in slimlib-2.6.5 doesn't interact
well with slim's own zzip support, so let's ignore it for now.
* bindings/make_parameters.c: Convert F77 encoding parameters to the form
GDE_xx.
* configure.ac: zzslim tests. Always look for a C++ compiler.
* m4/encoding.m4: Separate LIBS from LDFLAGS; fix some underquoting.
2012-01-11 D. V. Wiebe <getdata@ketiltrout.net> svn:644
* src/getdata.h.in: Added GD_MPLEX_ENTRY. Updated gd_entry_t. Defined
GD_COUNT_MAX.
* src/legacy.c (CopyMplexEntry) src/getdata.c (_GD_MplexData _GD_DoMplex)
src/putdata.c (_GD_MplexOutData _GD_DoMplexOut) src/parse.c (_GD_ParseMplex)
src/add.c (gd_add_mplex gd_madd_mplex) src/mod.c (gd_alter_mplex): Added.
* src/internal.h: Define GD_MPLEX_LOOKBACK
* src/entry.c (_GD_FreeE _GD_CalculateEntry gd_entry gd_validate)
src/flush.c (_GD_Flush _GD_FieldSpec _GD_FindVersion) src/fpos.c
(_GD_GetFilePos _GD_WriteSeek) src/legacy.c (GetFormat) src/getdata.c
(_GD_DoField) src/name.c (_GD_InvalidateConst _GD_InvalidateVect)
src/native.c (_GD_NativeType) src/putdata.c (_GD_DoFieldOut) src/del.c
(_GD_ClearDerived _GD_DeReference) src/flimits.c (_GD_GetEOF _GD_GetBOF)
src/parse.c (_GD_ParseFieldSpec) src/add.c (_GD_Add) src/spf.c (_GD_GetSPF)
src/mod.c (_GD_Change): Handle MPLEX.
* src/fpos.c (_GD_Seek): De-statickify.
* src/legacy.c (CopyWindowEntry): Report as MPLEX.
* src/getdata_legacy.h: Fix mplex list in FormatType.
* src/errors.c: Rename GD_E_BAD_ENTRY_* suberrors to GD_E_ENTRY_* for
brevity. Added GD_E_FORMAT_MPLEXVAL, GD_E_ENTRY_CNTVAL, GD_E_ENTRY_CNTMAX.
* src/field_list.c (_GD_ListEntry): Move the alias check down so that hidden
and meta alias are handled properly.
* internal.h src/common.c (_GD_Malloc _GD_Realloc _GD_Strdup): Moved from
internal.h.
* bindings/make_parameters.c: Define MPLEX_ENTRY, E_FORMAT_MPLEXVAL,
COUNT_MAX.
* bindings/cxx/mplexentry.cpp bindings/cxx/getdata/mplexentry.h: Added.
* bindings/python/pyentry.c (gdpy_entry_getcountval gdpy_entry_setcountval
gdpy_entry_getcountmax gdpy_entry_setcountmax) bindings/cxx/getdata/entry.h
(Entry::CountVal Entry::CountMax) bindings/f77/getdata.f90.in (fgd_add_mplex
fgd_madd_mplex fgd_alter_mplex) bindings/f77/fgetdata.c (GDGEMX GDADMX
GDMDMX GDALMX) bindings/idl/getdata.c (gdidl_add_mplex gdidl_alter_mplex):
Added.
* bindings/python/pyentry.c (gdpy_set_entry_from_tuple
gdpy_set_entry_from_dict gdpy_entry_getinfields gdpy_entry_setinfields
gdpy_entry_getparms) bindings/cxx/entry.cpp (CheckIndex scalar_ok)
bindings/cxx/dirfile.cpp (Dirfile::Entry) bindings/cxx/getdata/dirfile.h
bindings/perl/GetData.xs (gdp_to_entry entry) bindings/f77/getdata.f90.in
(fgd_entry fgd_add fgd_madd) bindings/f77/fgetdata.c (GDASCA GDMDWD)
bindings/idl/getdata.c (gdidl_make_idl_entry gdidl_read_idl_entry): MPLEX
bindings.
* bindings/perl/simple_funcs.xsin: Add add_mplex, alter_mplex, madd_mplex.
* bindings/perl/simple_funcs.pl: Handle gd_count_t.
* bindings/python/test/big_test.py bindings/cxx/test/big_test.cpp
bindings/perl/t/big_test.t bindings/f77/test/big_test.f
bindings/f77/test/big_test95.f90 bindings/idl/test/big_test.pro: Add tests
228-231.
* bindings/cxx/windowentry.cpp bindings/cxx/getdata/windowentry.h
bindings/idl/getdata.c (gdidl_alter_window): Get rid of
Check stuff: just use Input, for consistency.
* test/add_mplex.c test/add_mplex_val.c test/alter_mplex.c
test/entry_mplex.c test/entry_mplex_scalar.c test/get_mplex.c
test/get_mplex_lb.c test/madd_mplex.c test/parse_mplex.c
test/parse_mplex_ncols.c test/parse_mplex_scalar.c test/put_mplex.c: Added.
2011-12-31 D. V. Wiebe <getdata@ketiltrout.net> svn:643
* bindings/python/pyentry.c (gdpy_set_entry_from_dict): Add missing INCREF.
2011-12-29 D. V. Wiebe <getdata@ketiltrout.net> svn:641
* src/internal.h src/encoding.c (_GD_GenericName): Added fragment->enc_data.
Pass enc_data to gd_ef->name. Flag encodings that use enc_data with
GD_EF_EDAT.
* src/parse.c (_GD_ParseDirective): Allow an optional second parameter to
/ENCODING of encoding-specific data.
* src/entry.c (_GD_ResolveEncoding): Pass in enc_data.
* src/zzip.c (_GD_ZzipName): Use enc_data to specify archive name.
2011-12-29 D. V. Wiebe <getdata@ketiltrout.net> svn:640
* configure.ac: zzip encoding check.
* src/getdata.h.in src/internal.h: GD_ZZIP_ENCODED / GD_ENC_ZZIP; Added name
to encoding_t.
* src/zzip.c: Added.
* src/encoding.c: Add Zzip encoding; gd_ef_name_t.
* src/encoding.c (_GD_GenericName): Renamed from _GD_SetEncodedName and
pushed down into the encoding framework.
* src/encoding.c (_GD_MissingFramework): Handle GD_EF_NAME.
* src/encoding.c (_GD_ResolveEncoding): Handle external name functions.
* src/entry.c (gd_raw_filename) src/encoding.c (_GD_InitRawIO
_GD_RecodeFragment) src/move.c (_GD_MogrifyFile) src/name.c (_GD_Rename)
src/del.c (_GD_Delete) src/flimits.c (_GD_GetEOF): Call _gd_ef->name.
* test/zzip_get.c test/zzip_get_get.c test/zzip_nframes.c: Added.
2011-12-27 D. V. Wiebe <getdata@ketiltrout.net> svn:639
* src/add.c (gd_madd_lincom gd_madd_clincom gd_madd_linterp gd_madd_bit
gd_madd_sbit gd_madd_multiply gd_madd_phase gd_madd_polynom gd_madd_cpolynom
gd_madd_string gd_madd_const gd_madd_carray): Zero entry before
initialisation.
* src/fragment.c (gd_alter_affixes): Allow {pre,suf}fix == NULL to indicate
no change.
* src/entry.c (_GD_FreeE): Handle aliases.
* src/close.c (_GD_FreeD): Free fragment affixes.
* src/debug.c (gd_colnil gd_coladd gd_colsub): Export debugging symbols.
* src/field_list.c (_GD_ListEntry): Added.
* src/field_list.c (gd_constants gd_carrays gd_strings gd_field_list_by_type
gd_vector_list gd_field_list) src/meta_list.c (gd_mconstants gd_mcarrays
gd_mstrings gd_mfield_list_by_type gd_mvector_list gd_mfield_list): Call
_GD_ListEntry.
* bindings/python/pyentry.c bindings/python/pyfragment.c
bindings/python/pydirfile.c: Update for DSV9.
* bindings/cxx/fragment.cpp bindings/cxx/entry.cpp bindings/cxx/dirfile.cpp
bindings/cxx/getdata/entry.h bindings/cxx/getdata/dirfile.h: Update for
DSV9.
* bindings/cxx/windowentry.cpp bindings/cxx/getdata/windowentry.h: Added.
* bindings/perl/GetData.xs bindings/perl/simple_funcs.xsin: Update for DSV9.
* bindings/f77/fgetdata.c bindings/f77/getdata.f90.in: Update for DSV9.
* bindings/idl/getdata.c: Update for DSV9. Removed most of the function
aliases.
* bindings/make_parameters.c: Update for DSV9. Add missing
GD_E_UNKNWON_ENCODING.
* bindings/python/pygetdata.c (initpygetdata): Handle gaps in
gdpy_exception_list. Fix exception list.
* bindings/python/pyentry.c (gdpy_entry_settable): Set correct parameter.
* test/vlist_alias.c: Added.
2011-12-20 D. V. Wiebe <getdata@ketiltrout.net> svn:638
* src/entry.c (_GD_GetScalar _GD_CalculateEntry) src/common.c (_GD_GetRepr
_GD_BadInput _GD_FindFieldAndRepr: Optionally prohibit setting errors (for
use by the post-rename update stuff).
* src/errors.c: Added GD_E_FORMAT_ALIAS, GD_E_DEL_ALIAS.
* src/flush.c (_GD_FieldSpec): Write aliases. Also tweaked to allow slashed
metafield specification with DSV7.
* src/del.c (_GD_ClearDerived): Handle aliases.
* src/parse.c (_GD_CheckParent _GD_ParseAlias _GD_ResolveAlias
_GD_UpdateAliases) src/add.c (_GD_AddAlias gd_add_alias gd_madd_alias): Added.
* src/parse.c (_GD_ParseFieldSpec): Call _GD_CheckParent.
* src/parse.c (_GD_ParseDirective): Use a switch to reduce the number of
strcmps done. Handle /ALIAS.
* src/parse.c (_GD_ParseFragment): Optionally call _GD_UpdateAliases to
resolve aliases.
* src/add.c (_GD_Add gd_madd_spec gd_add_spec): Update aliases after addition.
* src/common.c (_GD_FindField): Optionally dealias names.
* src/del.c (_GD_Delete): Renamed from gd_delete().
* src/del.c (gd_delete gd_delete_alias): Added.
* src/name.c (_GD_UpdateScalar _GD_InvalidateConst _GD_UpdateInField
_GD_InvalidateVect): Added.
* src/name.c (_GD_Rename): Renamed from gd_rename(). Handle cleaning up
after the rename.
* src/move.c (_GD_Move): Renamed from gd_move().
* src/name.c (_GD_ValidateField): Permit is_dot = NULL.
* src/entry.c (gd_alias_target gd_aliases gd_naliases gd_hidden) src/move.c
(gd_move gd_move_alias) src/name.c (gd_rename gd_rename_alias): Added.
* src/alias.c (gd_fragment_index gd_hide gd_unhide): Call _GD_FindField
instead of _GD_FindFieldAndRepr to avoid resolving aliases. As a side effect,
these function will no long ignore representation suffices.
* src/flush.c (_GD_StringEscapeise): Handle writing slashed meta-fields.
* src/spf.c (_GD_GetSPF): Ensure return is zero on error.
* test/alias_num_missing.c alias_target_missing.c spf_alias_missing.c
alias_list.c del_derived_after.c madd_spec_resolv.c parse_alias_meta.c
entry_type_alias.c spf_alias.c name_after_const.c parse_malias_dup.c
add_alias.c alias_target.c alias_list_alias.c add_resolv.c spf_alias_meta.c
move_alias.c name_after.c parse_meta_jump.c parse_alias_missing.c
name_update_const.c madd_alias.c parse_alias_dup.c fragment_index_alias.c
add_spec_resolv.c alias_target_alias.c name_update.c hide_hidden.c
alias_num_alias.c parse_malias.c parse_alias_code.c parse_alias.c
alias_num.c parse_meta_malias.c parse_meta_alias.c alias_list_missing.c:
Added.
* test/fragment_parent.c: Renamed from test/parent.c.
* test/fragment_num.c: Renamed from test/nfragments.c.
* test/version_9_write.c: Update.
2011-12-13 D. V. Wiebe <getdata@ketiltrout.net> svn:637
* test/fragment_affix_alter2.c test/fragment_affix_alter.c
test/fragment_affix_dup.c test/fragment_affix.c test/include_affix.c: Added.
* src/move.c (_GD_StrCmpNull): Renamed from strcmpnull and de-statickified.
* src/name.c (_GD_MungeFromFrag): Added.
* src/name.c (_GD_MungeCode): Converted into a swiss army munger handling
both enmunging and demunging. Most old, simple, uses of this function now
call _GD_MungeFromFrag (which calls this) instead.
* src/flush.c (_GD_DeMungeCode): Deleted in favour of the new _GD_MungeCode.
* src/fragment.c (gd_fragment_affixes _GD_CheckAffixes _GD_ChangeAffixes
gd_alter_affixes): Added.
* src/include.c (gd_include_affix): Renamed from gd_include.
* src/include.c (gd_include): Added.
2011-12-11 D. V. Wiebe <getdata@ketiltrout.net> svn:635
* test/add_string_affix.c test/name_affix_bad.c test/move_affix.c
test/alter_entry_affix.c test/alter_entry_affix.c test/madd_affix.c
test/parse_meta_affix.c test/madd_index.c test/name_affix.c
test/alter_mspec_affix.c test/name_dup.c test/parse_meta_implicit_affix.c
test/add_affix.c test/alter_spec_affix.c: Added.
* test/version_9_strict.c test/version_9_write.c: Expanded.
* src/open.c (gd_cbopen): Set errors for _GD_CanonicalPath.
* src/errors.c: Distingish missing codes from invalid codes for
GD_E_BAD_CODE.
* src/name.c (gd_rename): Validate the new name first and then DeMunge it
if it's not a meta field.
* src/move.c (gd_move): Compose the new field name by remunging it for the
new fragment. Also compose the new names of all its metafield early, if
necessary.
* src/parse.c (_GD_ParseFieldSpec _GD_ParseDirective): Munge field codes
before lookup. Also munge the reference field.
* src/mod.c (gd_alter_spec gd_malter_spec): The parser will end up
reapplying affixes to the field name, so undo that.
* src/add.c (_GD_Add gd_add_string gd_add_const gd_add_const gd_madd_string
gd_madd_const gd_madd_carray): _GD_Add() returns the added entry on success.
This saves a field lookup in the others.
* src/add.c (_GD_Add): Munge field name earlier.
* src/name.c (gd_rename): Flag fragment as modified.
* src/flush.c (_GD_FieldSpec): Properly write /HIDDEN directives.
2011-12-09 D. V. Wiebe <getdata@ketiltrout.net> svn:634
* test/parse_include_preprefix.c test/version_9_strict.c test/version_9.c
test/parse_include_suffix.c test/parse_include_loop.c test/version_9_write.c
test/parse_include_sufsuffix.c test/parse_include_prefix.c
test/parse_include_prefix_dup.c test/get_phase_affix.c: Added.
* test/add_sort.c test/add_scalar_carray.c test/add_code.c test/add_type.c
test/add_invalid.c test/put_carray.c test/add_scalar.c test/madd.c
test/add_format.c: Remove dirfile before starting.
* test/version_8_strict.c: Fix initialisation.
* test/version_6_write.c: Test whitespace in field names.
* test/test.h: Armour plate macros.
* src/internal.h: Add prefix and suffix to gd_fragment_t.
* src/name.c (_GD_MungeCode) src/flush.c (_GD_DeMungeCode) src/include.c
(_GD_SetFieldAffixes): Added.
* src/flush.c (_GD_StringEscapeise): Handle null tokens. Escape spaces
rather than assuming the caller will quote the token (which it wasn't
doing).
* src/entry.c (_GD_GetScalar) src/name.c (gd_rename) src/add.c (_GD_Add)
src/commonc. (_GD_BadInput): Munge field code before use.
* src/flush.c (_GD_PadField): Demunge field code before writing.
* src/flush.c (_GD_WriteConst): Properly demunge and escapeise scalar names.
* src/name.c (_GD_ValidateField): This function no longer takes care of
malloc'ing. Modified to return integer true on error.
* src/name.c (_GD_FlushFragment): Add prefix and suffix to INCLUDE when
present.
* src/parse.c (_GD_ParseRaw _GD_ParseLincom _GD_ParseLinterp
_GD_ParseMultiply _GD_ParseRecip _GD_ParseLincom _GD_ParseWindow
_GD_ParseDivide _GD_ParseBit _GD_ParsePhase _GD_ParsePolynom _GD_ParseConst
_GD_ParseCarray _GD_ParseString): Munge field code on parsing.
* include.c (_GD_Include): Handle affixes.
* src/common.c (_GD_EntryCmp): Moved from src/internal.h and deinlined,
destatickified. Given that the only use of this function is to pass it to
qsort, making it static inline only ensured that it got replaced once per
translation unit that referred to it.
* include.c (_GD_Include): Replaced the old filename comparison stage with a
simple recursion counter.
* src/parse.c (_GD_Tokenise): Handle token-initial escaped character.
Handle "\[ux#]##\...".
* src/flush.c (_GD_FindVersion): Prefix or suffix implies DSV >= 9.
* src/parse.c (_GD_SetScalar): Handle bad malloc.
* src/name.c (_GD_FieldSpec): Properly escapeise input field codes.
* src/errors.c: Distinguish GD_E_RECURSE_CODE from GD_E_RECURSE_INCLUDE.
* src/internal.h (_GD_Malloc _GD_Realloc _GD_Strdup): Added.
* src/commonc. (_GD_MakeFullPath): Set error if requested.
* src/common.c (_GD_MakeFullPathOnly): Added. This is a wrapper around
_GD_MakeFullPath which ensures the DIRFILE is not modified. Used by the
compatibility functions and the slim encoding framework (ie. things that have
at best a tenuous connection to the DIRFILE object).
* src/internal.h: Define GD_MULTISTANDARD.
* src/include.c (_GD_Include): Set GD_MULTISTANDARD if moving into/out of
DSV >= 9.
* src/open.c (gd_cbopen): If the metadata contain multiple standards, figure
out a single one for the whole dirfile.
2011-12-08 D. V. Wiebe <getdata@ketiltrout.net> svn:633
* test/svlist_hidden.c test/svlist_meta_hidden.c test/hide.c
test/flist_hidden.c test/nfields_hidden.c test/parse_version_89.c
test/nmeta_type_hidden.c test/parse_version_98.c test/nmeta_vectors_hidden.c
test/nmeta_hidden.c test/alter_entry_hidden.c test/parse_version_p8.c
test/parse_version_p9.c test/hide_unhide.c test/cvlist_meta_hidden.c
test/nfields_type_hidden.c test/vlist_hidden.c test/flist_meta_hidden.c
test/vlist_meta_hidden.c test/flist_type_meta_hidden.c
test/parse_hidden_meta.c test/cvlist_array_hidden.c test/parse_meta_meta.c
test/nfields_vector_hidden.c test/parse_hidden.c test/parse_hidden_field.c
test/cvlist_hidden.c test/cvlist_array_meta_hidden.c
test/flist_type_hidden.c: Added.
* test/nfields_vector.c test/nfields_vector_invalid.c: Renamed from nvectors*
* src/parse.c (_GD_ParseDirective): Parse /HIDDEN directives.
* src/entry.c (gd_hide gd_unhide): Added.
* src/nmeta.c (gd_nmfields gd_nmvectors gd_nmfields_by_type) src/nfields.c
(gd_nfields gd_nvectors gd_nfields_by_type) src/field_list.c (gd_constants
gd_carrays gd_strings gd_field_list_by_type gd_vector_list gd_field_list)
src/meta_list (gd_mconstants gd_mcarrays gd_mstrings gd_mfield_list_by_type
gd_mvector_list gd_mfield_list): Compensate for hidden fields.
* src/flush.c (_GD_FieldSpec): Write /HIDDEN directives.
* src/flush.c (_GD_FindVersion): Consider hidden entries.
* src/mod.c (_GD_Change): Prohibit changing hiddenness via gd_alter_entry().
* src/parse.c (_GD_ParseDirective): Forbid a metafield code from appearing
as a parent in /META directives.
* src/internal.h: Record the number of each type of field, rather than just
for the scalar field types.
* src/internal.h (_GD_EntryIndex): Added.
* src/open.c (gd_cbopen): Initialise D->n[INDEX_ENTRY].
* src/nmeta.c (gd_nmvectors gd_nmfields_by_type) src/nfields.c (gd_nvectors
gd_nfields_by_type) src/field_list.c (gd_constants gd_carrays gd_strings
gd_field_list_by_type gd_vector_list) src/meta_list.c (gd_mconstants
gd_mcarrays gd_mstrings gd_mfield_list_by_type gd_mvector_list): Use type
counts.
* src/del.c (gd_delete) src/parse.c (_GD_ParseFieldSpec) src/include.c
(gd_uninclude) src/add.c (_GD_Add): Update type counts.
* src/field_list.c (_gd_entype_index): Deleted.
* src/include.c (_GD_Include): Remember incoming Standards Version and
parser mode, and restore them on exit if the new DSV >=9 or the old mode is
pedantic and the old DSV >= 9. This is an attempt to stave the "version
leak" problem experienced in earlier DSVs.
* src/internal.h: Renamed GD_E_FORMAT_NO_PARENT to GD_E_FORMAT_NO_FIELD.
2011-12-06 D. V. Wiebe <getdata@ketiltrout.net> svn:632
* test/get_window_ne.c test/get_window.c test/parse_window_scalar.c
test/alter_window.c test/parse_window.c test/madd_window.c
test/parse_window_ncols.c test/add_window.c test/put_window.c
test/get_window_set.c test/get_window_gt.c test/get_window_ge.c
test/parse_window_op.c test/entry_window.c test/entry_window_scalar.c
test/add_window_op.c test/get_window_lt.c test/get_window_clr.c
test/get_window_le.c: Added.
* test/madd_phase.c: Fix check.
* test/version_6.c test/version_7.c test/version_8.c: Update for Version 9.
* cmake/CMakeLists.txt configure.ac: Define gd_int64_t.
* src/getdata.h.in: Add GD_WINDOW_ENTRY, gd_windop_t, gd_triplet_t.
* src/entry.c (_GD_FreeE _GD_CalculateEntry gd_entry) legacy.c (GetFormat)
src/getdata.c (_GD_DoField) src/errors.c src/flush.c (_GD_Flush
_GD_FieldSpec) src/native.c (_GD_NativeType) src/spf.c (_GD_GetSPF)
src/putdata.c (_GD_DoFieldOut) src/del.c (_GD_ClearDerived _GD_DeReference)
src/flimits.c (_GD_GetEOF _GD_GetBOF) src/fpos.c (_GD_GetFilePos _GD_Seek)
src/parse.c (_GD_ParseFieldSpec) src/field_list.c src/mod.c (_GD_Change)
src/add.c (_GD_Add): Update for WINDOW.
* src/legacy.c (CopyWindowEntry) src/getdata.c (_GD_WindowData _GD_DoWindow)
src/flush.c (_GD_WindopName) src/parse.c (_GD_WindOp _GD_ParseWindow)
src/mod.c (gd_alter_window) src/internal.h (_GD_BadWindop) src/add.c
(gd_add_window gd_madd_window): Added.
* src/flush.c (_GD_WriteConst): Write GD_UINT64.
* src/flush.c (_GD_WriteConst): Fix writing of RECIP fields.
* src/parse.c (_GD_ParseRecip _GD_ParsePhase): Fail if SetScalar fails.
* src/parse.c (_GD_SetScalar): Don't bother trying to decode an imaginary
part before failing if we're not interested in complex numbers.
* src/parse.c (_GD_SetScalar): Call strto[u]ll with base=0 for Version >= 9 to
allow automatic parsing of 0x[hex] and 0[octal] numbers in format files.
* src/getdata.h.in: Increment GD_DIRFILE_STANDARDS_VERSION.
* src/flush.c (_GD_FindVersion): Update for Version 9.
2011-12-05 D. V. Wiebe <getdata@ketiltrout.net> svn:630
* python/test/callback.pl python/test/big_test.py cxx/test/big_test.cpp
f77/test/big_test.f f77/test/big_test95.f90: Fix path checks.
* f77/test/big_test.f f77/test/big_test95.f90: Use check functions.
* src/flush.c (_GD_Flush): Don't call sync on a file opened read-only.
* configure.ac: Look for Availability.h
* src/internal.h: Fix lstat64 on OS X 10.6+
* src/common.c (_GD_CanonicalPath): Don't run past the end of the work
buffer.
2011-12-03 D. V. Wiebe <getdata@ketiltrout.net> svn:629
* test/test.h (CHECKEOS): Added.
* test/file.c test/fragment_name.c: Only check the end of the returned
string since we don't know what the full path is.
* src/internal.h: Define PATH_MAX, if necessary.
* src/common.c (_GD_CanonicalPath): Added.
* src/open.c (gd_cbopen): Canonicalise filedir.
* src/common.c (_GD_MakeFullPath): Canonicalise path. Handle dirfd < 0.
* src/common.c (_GD_GrabDir): Let _GD_MakeFullPath hande canonicalising
absolute paths.