87d6803f8a26e67462e139bb0b3dfebbfdd1268e
[pspp-builds.git] / src / data / ChangeLog
1 Mon Dec  4 21:38:40 2006  Ben Pfaff  <blp@gnu.org>
2
3         * missing-values.c (mv_resize): Don't write beyond end of the
4         allocated buffer when resizing a long string.
5
6 Sat Dec  2 16:28:32 2006  Ben Pfaff  <blp@gnu.org>
7
8         Clean up identifier code: don't require identifier enumerations to
9         be in a particular order; make better use of string library;
10         expose less of the internals.
11                 
12         * identifier.c: (lex_skip_identifier) Rename lex_id_get_length,
13         change interface.  Updated all callers.
14         (lex_id_match) Change interface to use struct substring, update
15         all callers.
16         (lex_id_match_len) Removed.  Update callers to use lex_id_match.
17         (global array keywords[]) Make static, change form.  Update all
18         users to use lex_id_name instead.
19         (lex_is_keyword) New function.
20         (lex_id_to_token) Change interface to use struct substring, update
21         all callers.
22         (lex_id_name) New function.
23
24         * identifier.h: (T_FIRST_KEYWORD) Removed.  Changed users to call
25         lex_is_keyword instead.
26         (T_LAST_KEYWORD) Removed.
27         (T_N_KEYWORDS) Removed.
28         
29 Sat Nov 18 20:46:35 2006  Ben Pfaff  <blp@gnu.org>
30
31         * format.c: (fmt_date_template) Distinguish characters for which a
32         space is output and any date delimiter is allowed on input, from
33         those for which a space is output and only a space is allowed on
34         input.  The former is represented by X, the latter by a space.
35         Also, drop distinction between h and H, changing the former to the
36         latter.
37
38         * data-in.c: Completely rewrite internals to conform to SPSS input
39         formats as closely as possible.
40         (data_in) Changed external interface by replacing the structure
41         that was used as a single argument by a set of arguments.  Updated
42         all callers.
43         (data_in_finite_line) Removed.  Converted all callers to use plain
44         data_in.
45         (data_in_get_integer_format) New function.
46         (data_in_set_integer_format) New function.
47         (data_in_get_float_format) New function.
48         (data_in_set_float_format) New function.
49
50         * data-in.h: (enums DI_IGNORE_ERROR, DI_IMPLIED_DECIMALS) Removed.
51         (struct data_in) Removed.
52
53         * data-out.c: (output_date) Drop each component from the input as
54         it is output, to allow us to drop the distinction between h (a
55         count of hours) and H (the hour of day) template characters.
56         Also, handle new X template character.
57         (output_scientific) Follow more rational rule on when to drop
58         fraction introduced between SPSS 13 and 15.  Updated test case to
59         match new behavior.
60
61 Sat Nov 11 11:41:26 2006  Ben Pfaff  <blp@gnu.org>
62
63         Fix buffer overflow reported by John Darrington.
64
65         * data-out.c (output_bcd_integer): In case of SYSMIS, etc.,
66         realize that DIGITS is a count of nibbles, not of bytes.
67
68 Sat Nov  4 15:59:56 2006  Ben Pfaff  <blp@gnu.org>
69
70         * calendar.c (calendar_offset_to_gregorian) Also return the
71         year-of-day.  Change callers to new interface.
72
73         * data-out.c: Completely rewrite internals to conform to SPSS
74         output formats as completely as possible.
75         (data_out) Change interface to put input parameters before output
76         parameters, for consistency with the style I now prefer.  Update
77         all callers.
78         (data_out_get_integer_format) New public function.
79         (data_out_set_integer_format) New public function.
80         (data_out_get_float_format) New public function.
81         (data_out_set_float_format) New public function.
82
83         * data-out.h: New file.  Move prototype for data_out here, from
84         format.h.
85
86         * format.c: (fmt_step_width) Use equality comparison instead of
87         bitwise and, for clarity.
88         (fmt_is_string) Ditto.
89         (fmt_input_to_output) Fix categories that are translated to F
90         format.
91
92 Sun Nov  5 08:29:34 WST 2006 John Darrington <john@darrington.wattle.id.au>
93
94         * casefilter.c casefilter.h (new files), casefile.c casefile.h 
95         casefile-private.h: Added casefilter to assist commands with missing 
96         values.
97
98 Sat Nov  4 11:47:09 2006  Ben Pfaff  <blp@gnu.org>
99
100         Implement SET ERRORS, SHOW ERRORS.  Fixes bug #17609.
101         
102         * settings.c: (route_errors_to_terminal) New variable.
103         (route_errors_to_listing) New variable. 
104         (get_error_routing_to_terminal) New function.
105         (set_error_routing_to_terminal) New function.
106         (get_error_routing_to_listing) New function.
107         (set_error_routing_to_listing) New function.
108
109         * settings.h: (SET_ROUTE_* enums) Removed, because unused.
110
111 Tue Oct 31 19:58:27 2006  Ben Pfaff  <blp@gnu.org>
112
113         * format.c: Completely rewrite, to achieve better abstraction.
114         Rewrite all references to formats in other files.
115         
116         * format.def: Rewrite and reorganize.
117
118         * settings.c: Move everything related to custom currency formats
119         into format.[ch], changing them in form, so as to group related
120         code and definitions better.  Changed all references to use the
121         new functions.
122         (static var decimal) Removed.
123         (static var grouping) Removed.
124         (static var cc) Removed.
125         (get_decimal) Removed.
126         (set_decimal) Removed.
127         (get_grouping) Removed.
128         (set_grouping) Removed.
129         (get_cc) Removed.
130         (set_cc) Removed.
131
132         * settings.h: (macro CC_CNT) Removed.
133         (macro CC_WIDTH) Removed.
134         (struct custom_currency) Removed.
135
136 Tue Oct 31 19:56:19 2006  Ben Pfaff  <blp@gnu.org>
137
138         * data-in.c (data_in): Use switch statement instead of table, to
139         avoid dependence on the order of the FMT_* enums.
140
141 Tue Oct 31 19:35:36 2006  Ben Pfaff  <blp@gnu.org>
142
143         * data-out.c: (num_to_string) Removed, because it was dead code.
144
145 Tue Oct 31 18:09:24 2006  Ben Pfaff  <blp@gnu.org>
146
147         * data-in.c (parse_trailer): Fix error message.
148
149 Sat Oct 28 11:56:50 2006  Ben Pfaff  <blp@gnu.org>
150
151         * format.c (fmt_is_binary): New function.
152
153 Thu Oct 19 22:59:56 WST 2006 John Darrington <john@darrington.wattle.id.au>
154
155         * procedure.c procedure.h: Encapsulated the static data into a single
156         struct.  
157
158 Sat Oct 14 16:56:44 2006  Ben Pfaff  <blp@gnu.org>
159
160         * casefile.c (casereader_read_xfer): Always initialize the case,
161         even on an error condition.
162
163 Wed Sep 27 09:37:49 WST 2006 John Darrington <john@darrington.wattle.id.au>
164
165         * procedure.c (case_limit_trns_proc): Fixed buglet which rendered the 
166         entire function useless.
167
168 Mon Sep 25 17:11:46 WST 2006 John Darrington <john@darrington.wattle.id.au>
169
170         * casefile-private.h casefile.c casefile.h fastfile.c: Created new
171         casereader method casereader_clone.   
172         
173         * procedure.c pransformations.h: Introduced new type casenum_t
174
175 Thu Sep 21 07:00:30 2006  Ben Pfaff  <blp@gnu.org>
176
177         * variable.c: (width_to_bytes) Rephrase code for clarify.
178
179 Sun Jul 16 19:52:03 2006  Ben Pfaff  <blp@gnu.org>
180
181         * format.c: (fmt_type_from_string) New function.
182         (fmt_to_string) Include decimals in output if the format has
183         decimals, even if the format type does not.  This way, we can
184         accurately reproduce incorrect formats in user output.
185         (check_common_specifier) Make the check for a bad format type an
186         assertion, so we get bug reports if they show up.  Fix message.
187         Check for decimal places with a format type that doesn't allow
188         them.
189         (check_input_specifier) Remove check for FMT_X, which has been
190         deleted.
191         (check_output_specifier) Ditto. 
192
193         * format.def: Remove FMT_T, FMT_X, FMT_DESCEND, FMT_NEWREC.
194
195         * format.h: (macro FMT_TYPE_LEN_MAX) New macro.
196         (struct fmt_desc) Use FMT_TYPE_LEN_MAX in definition.
197         (enum fmt_parse_flags) Removed.
198
199 Mon Jul 17 18:26:21 WST 2006 John Darrington <john@darrington.wattle.id.au>
200
201         * casefile.c casefile.h: Converted to  an abstract base class.
202         * casefile-private.h fastfile.c fastfile.h: New files.
203         * automake.mk procedure.c scratch-writer.c storage-stream.c
204
205 Wed Jul 12 21:02:26 2006  Ben Pfaff  <blp@gnu.org>
206
207         * procedure.c (internal_procedure): Create sink_case with only as
208         many values as the compacted dictionary.
209
210 Wed Jul 12 21:01:00 2006  Ben Pfaff  <blp@gnu.org>
211
212         Remove "debugging" code that caused plenty of false positives and
213         no true positives.
214         
215         * case.h (struct ccase): [DEBUGGING] Remove `this' member.
216
217         * case.c: Remove all references to `this' member.
218
219 Thu Jul  6 19:09:53 2006  Ben Pfaff  <blp@gnu.org>
220
221         Fix link error noted by Jason Stover.
222         
223         * storage-stream.c: Include <assert.h>.
224
225 Tue Jul  4 08:47:35 2006  Ben Pfaff  <blp@gnu.org>
226
227         Fix bug #15766 (/KEEP subcommand on SAVE doesn't fully support
228         ALL) and additional underlying system file issues.
229
230         Thanks to John Darrington for review.
231
232         First problem: var_hash points to variables not owned by the
233         sys-file-reader, which the caller may free or modify.  Use an
234         array of sfm_vars instead, as done earlier (e.g. CVS version
235         1.12).
236         
237         * sys-file-reader.c (struct sfm_reader): Remove var_hash, svars
238         members and remove all code that references it.  Add vars, var_cnt
239         members.  Remove fix_specials member, which was unused.
240         (struct sfm_var) Remove name member, which was unused.
241         (sfm_close_reader) Free vars member instead of var_hash.
242         (compare_var_shortnames) Removed.
243         (hash_var_shortname) Removed.
244         (sfm_open_reader) Fill out vars array.
245         (compare_var_index) Removed.
246         (sfm_read_case) Use vars instead of var_hash.
247         
248         Second problem: we're confused about when we actually have very
249         long strings, causing us to choose incorrectly between slow path
250         and fast path in sfm_read_case.
251
252         * sys-file-reader.c: (sfm_open_reader) Only mark has_vls if we
253         have very long strings, not when we have long variable names,
254         which is an unrelated feature.
255
256 Tue Jun 27 12:06:49 2006  Ben Pfaff  <blp@gnu.org>
257
258         * variable.h: Move var_set and variable parsing declarations to
259         new header, src/language/lexer/variable-parser.h.  Modified lots
260         of files to include the new header.
261
262 Sun Jun 25 22:39:32 2006  Ben Pfaff  <blp@gnu.org>
263
264         * value-labels.c (value_to_string): When there's no value label,
265         format the variable according to its print format, instead of
266         always effectively using A or F format.
267
268 Mon Jun 19 18:05:42 WST 2006 John Darrington <john@darrington.wattle.id.au>
269
270         * casefile.c (casefile_get_random_reader): Nasty hack to get around 
271         the mode assertion.
272
273         * format.c: Removed tortological assertion.
274
275 Fri Jun  9 12:20:09 2006  Ben Pfaff  <blp@gnu.org>
276
277         Reform string library.
278         
279         * file-name.c (fn_interp_vars): Change interface to take a
280         substring as input.  Updated all users.
281         
282 Fri Jun  9 12:11:24 2006  Ben Pfaff  <blp@gnu.org>
283
284         * format.c (measure_is_valid): Really return false when m >=
285         n_MEASURES.
286
287 Tue Jun  6 18:46:26 2006  Ben Pfaff  <blp@gnu.org>
288
289         Implement random access to casefiles, for use in GUI.
290         
291         * casefile.c: (struct casereader) Add `random', `file_ofs',
292         `buffer_ofs' members.
293         (casefile_get_random_reader) New function.
294         (read_open_file) Break part into new function
295         seek_and_fill_buffer().
296         (fill_buffer) Update buffer_ofs, file_ofs.
297         (casereader_seek) New function.
298
299 Tue May 30 19:52:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
300
301         * settings.c: Added call to i18n{done, init}.
302
303 Tue May  9 21:09:17 2006  Ben Pfaff  <blp@gnu.org>
304
305         * procedure.h: Add WARN_UNUSED_RESULT to procedure function
306         prototypes.
307
308 Tue May  9 21:08:05 2006  Ben Pfaff  <blp@gnu.org>
309
310         * casefile.c: Convert many uses of `int' to `bool'.
311
312 Sat May  6 22:49:43 2006  Ben Pfaff  <blp@gnu.org>
313
314         * transformations.c (trns_chain_destroy): Destroy chain's trns
315         member, to fix memory leak.
316
317 Sat May  6 22:48:30 2006  Ben Pfaff  <blp@gnu.org>
318
319         * storage-stream.c (storage_source_decapsulate): Destroy case
320         source to fix memory leak.
321
322 Sat May  6 22:46:47 2006  Ben Pfaff  <blp@gnu.org>
323
324         * scratch-reader.c (scratch_reader_read_case): Copy into existing
325         case passed as argument instead of initializing the argument as a
326         case.  Fixes memory leak that showed up in
327         tests/command/aggregate.sh with scratch files.
328
329 Sat May  6 22:45:55 2006  Ben Pfaff  <blp@gnu.org>
330
331         * procedure.c (proc_done): Destroy default_dict, to fix memory
332         leak.
333
334 Sat May  6 22:44:44 2006  Ben Pfaff  <blp@gnu.org>
335
336         Simplify procedure_with_splits().
337         
338         * procedure.c (struct split_aux_data): Removed case_count member.
339         (procedure_with_splits) Don't initialize case_count.
340         (split_procedure_case_func) Check whether prev_case is null
341         instead of case_count.
342         (split_procedure_end_func) Ditto.
343
344 Sat May  6 22:42:23 2006  Ben Pfaff  <blp@gnu.org>
345
346         * case.c (case_move): Do nothing if dst and src are the same
347         object.
348         (case_try_create) Merge two similar cases.
349         (case_copy) Unshare only if data must be actually copied.
350
351 Sun May  7 10:04:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
352
353         * data-in.c data-out.c dictionary.c sys-file-reader.c
354         sys-file-writer.c variable.c variable.h:  Reworked very long string
355         support for better encapsulation.
356
357 Sat May  6 19:02:00 2006  Ben Pfaff  <blp@gnu.org>
358
359         * value-labels.c (val_labs_can_set_width): New function.
360         (val_labs_set_width) Clear labels if increasing width to long
361         string.
362         (val_labs_destroy) Remove unneeded test for null.
363         
364 Sat May  6 16:14:08 2006  Ben Pfaff  <blp@gnu.org>
365
366         * value-labels.h: Remove unneeded dependency on variable.h.
367
368 Sat May  6 15:58:36 2006  Ben Pfaff  <blp@gnu.org>
369
370         Get rid of `char *c' member in union value, for cleanliness.
371         
372         * value.h: (union value) Remove `c' member.
373
374 Sat May  6 15:36:59 2006  Ben Pfaff  <blp@gnu.org>
375
376         Make dictionary compacting functions a little more general.
377         
378         * sys-file-writer.c (sfm_open_writer): Use
379         dict_compacting_would_change().
380         (does_dict_need_translation) Removed.
381
382 Sat May  6 15:35:42 2006  Ben Pfaff  <blp@gnu.org>
383
384         Make dictionary compacting functions a little more general.
385         
386         * dictionary.c (dict_needs_compaction): Rename
387         dict_compacting_would_shrink().  Update all callers.
388         (dict_compacting_would_change) New function.
389         
390 Sat May  6 14:25:49 2006  Ben Pfaff  <blp@gnu.org>
391
392         * sys-file-writer.c: (does_dict_need_translation) Fix bug:
393         inverted return value (!).
394
395 Sat May  6 13:37:52 2006  Ben Pfaff  <blp@gnu.org>
396
397         Continue reforming procedure execution.  
398
399         * procedure.c: Search and replace "vfm" by "proc".  Notably:
400         (static var vfm_source) Rename proc_source.  Update all
401         references.
402         (static var vfm_sink) Rename proc_sink.  Update all references.
403         
404 Sat May  6 12:38:55 2006  Ben Pfaff  <blp@gnu.org>
405
406         Continue reforming procedure execution.  In this phase, remove
407         PROCESS IF, which was deprecated anyway and can be easily
408         simulated with TEMPORARY followed by SELECT IF.
409
410         * procedure.c: (open_active_file) Don't call
411         add_process_if_trns().
412         (discard_variables) Get rid of redundant call to
413         proc_cancel_all_transformations().
414         (add_process_if_trns) Removed.
415         (process_if_trns_proc) Removed.
416         (process_if_trns_free) Removed.
417
418 Sat May  6 10:58:05 2006  Ben Pfaff  <blp@gnu.org>
419
420         Continue reforming procedure execution.  In this phase, add
421         `const' to the case passed to procedure()'s callback.
422
423         Updated all users of procedure() as well.
424         
425         * procedure.c: (struct write_case_data) Add "const" to ccase
426         parameter for case_func member.
427         (procedure) Add "const" to ccase parameter for proc_func
428         parameter.
429         (multipass_case_func) Make ccase parameter const.
430         (internal_procedure) Add "const" to ccase parameter for case_func
431         parameter.
432         (split_procedure_case_func) Make ccase parameter const.
433         (multipass_split_case_func) Make ccase parameter const.
434         
435 Sat May  6 10:30:33 2006  Ben Pfaff  <blp@gnu.org>
436
437         Continue reforming procedure execution.  In this phase, get rid of
438         the output code for SPLIT FILE groups in procedure.c, which really
439         shouldn't be doing any output.  Move it into the individual
440         procedures instead.  This also adds some flexibility.
441
442         Updated many users of procedure_with_splits() and
443         multipass_procedure_with_splits() to call
444         output_split_file_values() and to deal with increased use of
445         const.
446
447         * procedure.c: (struct split_aux_data) Add "const struct ccase *"
448         parameter to begin_func member.
449         (procedure_with_splits) Add "const struct ccase *" parameter to
450         begin_func parameter.  Make ccase parameter const in proc_func
451         parameter.
452         (split_procedure_case_func) Don't dump split file group.  Pass
453         case to begin_func.
454         (dump_splits) Moved to language/dictionary/split-file.c as
455         output_split_file_values().
456         (struct multipass_split_aux_data) Add "const struct ccase *"
457         parameter to split_func member.
458         (multipass_procedure_with_splits) Add "const struct ccase *"
459         parameter to split_func parameter.
460         (multipass_split_case_func) Save new SPLIT FILE case before
461         outputting case.
462         (multipass_split_output) Pass saved SPLIT FILE case to split_func.
463         
464 Fri May  5 22:48:50 2006  Ben Pfaff  <blp@gnu.org>
465
466         Continue reforming procedure execution.  Change
467         internal_procedure() so that it calls open_active_file() and
468         close_active_file(), which isolates most of the actual procedure
469         functionality.
470
471         * procedure.c: (struct write_case_data) Rename `proc_func' member
472         to `case_func' and update all references.
473         (procedure) Rewrite as one-line wrapper around
474         internal_procedure().
475         (struct multipass_aux_data) New.
476         (multipass_callback) Renamed multipass_case_func().  Use struct
477         multipass_aux_data as auxiliary data.
478         (multipass_end_func) New function.
479         (multipass_procedure) Rewrite as wrapper for internal_procedure()
480         that uses multipass_case_func, multipass_end_func.
481         (internal_procedure) Add `end_func' argument.  Move optimization
482         of trivial case in here.  Move call to open_active_file() and
483         close_active_file() in here.  Now assert that vfm_source is
484         non-null.
485         (procedure_with_splits_callback) Rename
486         split_procedure_case_func().
487         (split_procedure_end_func) New function.
488         (multipass_split_callback) Rename multipass_split_case_func.
489         (multipass_split_end_func) New function.
490         (discard_variables) No need to test for nonnull vfm_source.
491
492 Fri May  5 21:34:02 2006  Ben Pfaff  <blp@gnu.org>
493
494         Continue reforming procedure execution.  Get rid of unused member.
495
496         * procedure.c: (struct write_case_data) Remove `cases_analyzed'
497         member.
498         (write_case) Don't increment cases_analyzed.
499
500 Thu May  4 21:50:11 2006  Ben Pfaff  <blp@gnu.org>
501
502         Continue reforming procedure execution.  In this phase, move
503         procedure.c and procedure.h from src to src/data.  Update
504         makefiles and #includes accordingly.
505
506         * procedure.c: Moved here from src/.
507
508         * procedure.h: Moved here from src/.
509
510 Wed May  3 22:42:12 2006  Ben Pfaff  <blp@gnu.org>
511
512         Continue reforming procedure execution.  In this phase, get rid of
513         many global variables, consolidating procedure execution in
514         procedure.c.  Encapsulate transformations in new "struct
515         trns_chain".  Also, change implementation of N OF CASES, FILTER,
516         and PROCESS IF from special cases to transformations.
517          
518         * automake.mk: (src_data_libdata_a_SOURCES) Add transformations.c,
519         transformations.h.
520
521         * dictionary.c: (global variable default_dict) Move to
522         src/procedure.c.
523
524         * variable.h: (TRNS_*) Move to transformations.h.
525         (struct transformation) Move to transformations.c.
526
527 Thu May  4 13:47:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
528
529         * sys-file-reader.c: Fixed invalid read problems.
530
531 Tue May  2 15:57:10 2006  Ben Pfaff  <blp@gnu.org>
532
533         * storage-stream.c: Add missing function comments.
534
535 Tue May  2 15:50:21 2006  Ben Pfaff  <blp@gnu.org>
536
537         Continue reforming procedure execution.  In this phase, add some
538         new, needed functionality to storage-stream.
539
540         * storage-stream.c: (storage_source_decapsulate) New function.
541
542 Tue May  2 15:43:36 2006  Ben Pfaff  <blp@gnu.org>
543
544         * variable.c (width_to_bytes): Declarations must precede
545         statements for C90 compliance.
546
547 Tue May  2 10:42:05 WST 2006 John Darrington <john@darrington.wattle.id.au>
548
549         * data-out.c, data-in.c, variable.c, variable.h: New functions 
550         copy_mangle and copy_demangle for reading/writing cases; emulates the 
551         way SPSS deals with strings > 255 bytes.
552
553         * sys-file-reader.c sys-file-writer.c: Added support for Record 7, 
554         subtype 14 needed for strings longer than 255 bytes.
555
556         * dictionary.c, format.def, value.c : Updated to use MAX_STRING 
557         instead of literal values. Also fixed some constness issues.
558
559         * format.h: Constness
560
561         * sfm-private.h: Renamed the case_size identifier, since I discovered 
562         that SPSS's respect for this variable is very nominal.
563
564 Mon May  1 15:45:42 2006  Ben Pfaff  <blp@gnu.org>
565
566         Change case limit type from int to size_t.
567
568         * dictionary.c: (struct dictionary) Change type of case_limit
569         member.
570         (dict_get_case_limit) Change return type.
571         (dict_set_case_limit) Change parameter type.
572
573 Wed Apr 26 20:01:19 2006  Ben Pfaff  <blp@gnu.org>
574
575         * variable.h: (struct variable) Rename `reinit' member as `leave'
576         and invert sense.  Fix up all references.
577
578 Wed Apr 26 19:39:28 2006  Ben Pfaff  <blp@gnu.org>
579
580         Continue reforming procedure execution.  In this phase, break
581         procedure.c into multiple files.
582         
583         * automake.mk: (src_data_libdata_a_SOURCES) Add all the new files.
584
585         * case-sink.c: New file.
586
587         * case-sink.h: New file.
588         
589         * case-source.c: New file.
590
591         * case-source.h: New file.
592         
593         * storage-stream.c: New file.
594
595         * storage-stream.h: New file.
596
597 Wed Apr 26 14:55:19 2006  Ben Pfaff  <blp@gnu.org>
598
599         * variable.h: (struct variable) Remove `init' member and all
600         references to it from other files.  It was initialized in several
601         places, but nothing really ever used it for anything worthwhile.
602         Thanks to Jason Stover for pointing out how confusing this
603         member is.
604
605 Sun Apr 23 22:04:45 2006  Ben Pfaff  <blp@gnu.org>
606
607         Continue reforming error message support.  In this phase, get rid
608         of message "titles" and put the message text in `struct error'.
609         Now `struct error' encapsulates a message more properly.
610         
611         * casefile.c: (io_error) Use err_msg() instead of err_vmsg().
612         Format message ourselves.
613
614         * data-in.c: (vdls_error) Ditto.
615
616         * por-file-reader.c: (error) Ditto.
617
618         * sys-file-reader.c: (corrupt_msg) Ditto.
619
620 Sun Apr 16 18:49:51 2006  Ben Pfaff  <blp@gnu.org>
621
622         GNU standards require "file name" instead of "filename" in
623         documentation.  It's nice for our code to follow the convention
624         too.
625         
626         * casefile.c: (struct casefile) Rename `filename' member to
627         `file_name'.  Updated all references.
628
629         * file-name.c: [!unix] (struct file_identity) Rename
630         normalized_filename member to normalized_file_name.  Updated all
631         references.
632
633 Sun Apr 16 18:35:33 2006  Ben Pfaff  <blp@gnu.org>
634
635         We don't really support anything but Unix-like environments well,
636         so we might as well de-obfuscate by writing directory and path
637         separators explicitly.
638
639         * file-name.h: (macro DIR_SEPARATOR) Removed.  Changed all usages
640         to just '/'.
641         (macro PATH_SEPARATOR) Removed.  Changed all usages to just ':'.
642         (macro DIR_SEPARATOR_STRING) Removed.  Changed all usages to just
643         "/".
644         (macro PATH_SEPARATOR_STRING) Removed.  Changed all usages to just
645         ":"
646
647 Sun Apr 16 18:28:35 2006  Ben Pfaff  <blp@gnu.org>
648
649         GNU standards require "file name" instead of "filename" in
650         documentation.  It's nice for our code to follow the convention
651         too.
652         
653         * filename.c: Rename to file-name.c.
654
655         * filename.h: Rename to file-name.h.  Update all inclusions.
656         Update header guards.
657
658         * automake.mk: Update file names.
659
660 Sun Apr 16 16:42:47 2006  Ben Pfaff  <blp@gnu.org>
661
662         * filename.c: (fn_dirname) Renamed fn_dir_name(), all references
663         updated.
664         (fn_basename) Removed (dead code).
665         (fn_absolute_p) Renamed fn_is_absolute(), all references updated.
666         (fn_special_p) Renamed fn_is_special(), all references updated.
667         (fn_exists_p) Renamed fn_exists(), all references updated.
668
669 Sun Apr 16 16:33:58 2006  Ben Pfaff  <blp@gnu.org>
670
671         * filename.c: (fn_tilde_expand) Rewrite for cleaner code.  
672         Also, now it only tilde-expands file names, not paths.
673         (fn_search_path) Tilde-expand one directory at a time.
674
675 Sun Apr 16 16:28:06 2006  Ben Pfaff  <blp@gnu.org>
676
677         * filename.c: (fn_search_path) rewrite for cleaner code.  Also,
678         get rid of non-Unixlike version of the code, which has probably
679         never been tested.
680         (fn_prepend_dir) Removed (dead code).
681
682         * filename.h: (macro DIR_SEPARATOR_STRING) New.
683         (macro PATH_SEPARATOR_STRING) New.
684 Sun Apr 16 16:05:28 2006  Ben Pfaff  <blp@gnu.org>
685
686         Continue reforming error message support.  In this phase, we get
687         rid of VM() and the other msg() support for "verbosity", replacing
688         it by a new function verbose_msg().
689
690         * filename.c: (fn_search_path) Use verbose_msg() instead of
691         msg(VM(), ...).  
692
693 Sat Apr 15 19:53:19 2006  Ben Pfaff  <blp@gnu.org>
694
695         * sfm-private.h: Get rid of #defines after #error, which makes no
696         sense.
697
698 Sat Apr 15 19:48:57 2006  Ben Pfaff  <blp@gnu.org>
699
700         Get rid of our own int32 type in favor of the standard int32_t
701         type.
702         
703         * sfm-private.h: (int32 macro) Don't define this anymore.  Do
704         include <stdint.h>.
705
706         * sys-file-reader.c: Use int32_t instead of int32 throughout.
707         
708         * sys-file-writer.c: Use int32_t instead of int32 throughout.
709
710 Sat Apr 15 19:36:47 2006  Ben Pfaff  <blp@gnu.org>
711
712         Remove ill-considered file routines that are no longer used.
713         
714         * filename.c: (fn_open_ext) Removed.
715         (fn_close_ext) Removed.
716
717         * filename.h: (struct file_ext) Removed.
718
719 Mon Apr  3 13:22:39 2006  Ben Pfaff  <blp@gnu.org>
720
721         * variable.c (var_is_valid_name): Move declarations before code
722         for C90 compliance.
723
724 Tue Apr  4 15:28:40 WST 2006 John Darrington <john@darrington.wattle.id.au>
725
726         * filename.ch (fn_interp_vars): Fixed small buglet.
727
728 Tue Mar 28 13:47:16 WST 2006 John Darrington <john@darrington.wattle.id.au>
729         
730         * filename.[ch] (fn_interp_vars): Changed the signature and semantics
731         so as to modify the string inline.   Thus makeing it easier to
732         destroy the results when no longer needed.
733         
734 2006-03-25  Jason Stover  <jhs@math.gcsu.edu>
735
736         * category.c (cat_stored_values_destroy): Fixed memory leak.
737
738 Fri Mar 24 18:15:41 2006  Ben Pfaff  <blp@gnu.org>
739
740         Add some missing frees.  Thanks to John Darrington for reporting
741         these.
742
743         * any-writer.c (any_writer_close): Free writer.
744
745         * any-reader.c (any_reader_close): Free reader.
746
747 Mon Mar 20 16:33:53 2006  Ben Pfaff  <blp@gnu.org>
748
749         * por-file-reader.c: (error) Mark as NO_RETURN.
750
751 Sat Mar 11 15:06:07 WST 2006 John Darrington <john@darrington.wattle.id.au>
752
753         * settings.c: Changed default value of scompress to true.
754
755 Sat Mar  4 13:22:51 2006  Ben Pfaff  <blp@gnu.org>
756
757         * sfm-private.h: Include variable.h, to get SHORT_NAME_LEN.
758
759         * value.h: Remove check on MAX_SHORT_STRING, which I don't think
760         really applies.
761
762         * variable.h: Move definition of SHORT_NAME_LEN, LONG_NAME_LEN
763         here from pref.h.orig.
764
765 Sat Mar  4 12:50:48 WST 2006 John Darrington <john@darrington.wattle.id.au>
766
767         * sys-file-reader.c: Fixed bug reading compressed files.
768
769 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
770
771         * Numerous renames.  See src/ChangeLog for details.
772         
773         * Moved files from src directory