X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2FChangeLog;h=90df01c4715d6cacb282c4cc0f47e1ef90847c74;hb=b996647adb40b2b51f888c8e755d5f5f2c15cb37;hp=82f9fca442594cdf65ec5851abebb635ceed4db3;hpb=ca1feaeed4961242699d0b7ba61def0c58515ddd;p=pspp diff --git a/src/ChangeLog b/src/ChangeLog index 82f9fca442..90df01c471 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,609 @@ +Sat Mar 20 17:57:23 2004 Ben Pfaff + + * levene.c: Add #include. + + * set.q: (set_viewport) Add `int' argument to make its prototype + correct for signal(). + +Sat Mar 20 15:35:17 2004 Ben Pfaff + + * expr-evl.c: (expr_evaluate) Assert that `c' is nonzero before + using it. + +Sat Mar 20 15:18:16 2004 Ben Pfaff + + Changed DFM from open-at-first-access to explicit-open. Before, + calling dfm_get_record() or dfm_put_record() would automatically + open the file. Now, you have to call dfm_open_for_reading() or + dfm_open_for_writing() explicitly. This makes it possible to + check permissions, file existence, etc. earlier. + + Also made struct file_handle more opaque, and clean up in general. + + * data-list.c: (cmd_data_list) Open handle for reading. + + * dfm.c: (struct dfm_fhuser_ext) Add `where', `saw_begin_data' + members. + (open_file_r) Renamed dfm_open_for_reading(), rewrote. + (open_file_w) Renamed dfm_open_for_writing(), rewrote. + (open_inline_file) Removed. + (read_record) For inline_file, if we haven't seen BEGIN DATA, read + it. Deal with line_number in extension record instead of file + handle. + (dfm_get_record) Rewrote. + (dfm_put_record) Rewrote. + (dfm_push) Assert file is open and one of ours. Deal with + line_number in extension record instead of file handle. + (dfm_pop) Assert file is open and one of ours. Deal with + line_number in extension record instead of file handle. + (cmd_begin_data) Use dfm_open_for_reading(). Mark that we saw + BEGIN DATA. + + * file-handle.h: (enum constants RH_RF_*) Removed. + (enum constants FH_MD_*) Removed. + (struct file_handle) Removed `name', `norm_fn', `fn', `where', + `recform', `lrecl', `mode' members. Public references to + `recform' changed to use handle_get_mode(), references to `lrecl' + changed to use handle_get_record_width(). Added `private' member. + (enum file_handle_mode) New. + + * file-handle.q: (struct private_file_handle) New structure. + (struct file_handle_list) New structure. + (static var files) New. + (static var file_handles) Removed. + (init_file_handle) Removed. + (create_file_handle) Removed. + (get_handle_with_name) New function. + (get_handle_for_filename) New function. + (cmd_file_handle) Rewritten. + (hash_file_handle) Removed. + (cmp_file_handle) Removed. + (fh_init_files) Rewritten. + (fh_parse_file_handle) Rewritten. Allows identifiers as + filenames. + (fh_get_handle_by_name) Renamed handle_get_name(), all references + updated. Rewritten. + (fh_get_handle_by_filename) Renamed handle_get_filename(), all + references updated. Rewritten. + (fh_record_width) Renamed handle_get_record_width(), all + references updated. Rewritten. + (handle_get_mode) New function. + + * file-type.c: (cmd_file_type) Open handle for reading. + + * filename.c: [unix] (struct file_identity) New structure. + [unix] (fn_get_identity) New function. + [unix] (fn_free_identity) New function. + [unix] (fn_compare_file_identities) New function. + [!unix] (struct file_identity) New structure. + [!unix] (fn_get_identity) New function. + [!unix] (fn_free_identity) New function. + [!unix] (fn_compare_file_identities) New function. + + * lexer.c: (static var put) Renamed put_token, all references + updated. + (static var put_tokstr) New. + (static var put_tokval) New. + (lex_init) Initialize put_tokstr(). + (restore_token) New function. + (save_token) New function. + (lex_get) Use restore_token(). + (lex_put_back) Use save_token(). + (lex_put_back_id) New function. + (lex_put_forward) Removed. + (lex_preprocess_line) Set put_token instead of using + lex_put_forward(). + (lex_negative_to_dash) Use save_token(), set put_token directly. + (dump_token) Use stderr instead of stdout. + + * main.c: (main) Remove call to cmd_init(). + + * matrix-data.c: (cmd_matrix_data) Open file for reading. + + * pfm-read.c: Use handle_get_filename() instead of trying to use + h->fn directly, all over. + + * pfm-write.c: Ditto. + + * print.c: (internal_cmd_print) Open handle for writing. + (dump_table) Use handle_get_filename(). + (print_trns_proc) Use handle_get_mode(). + (cmd_print_space) Use fh_parse_file_handle(). + Open handle for writing. + [0] (debug_print) Removed. + + * sfm-read.c: Use handle_get_filename() instead of trying to use + h->fn directly, all over. + + * sfm-write.c: Ditto. + +Sat Mar 20 14:35:48 2004 Ben Pfaff + + Fix memory leaks. + + * autorecode.c: (arc_free) Free arc->src_values. + + * error.c: (msg) Free buf. + + * val-labs.c: (do_value_labels) Always free vars. + + * vfm.c: (close_active_file) If sink has no make_source then call + its destroy function. + +Sat Mar 20 14:00:24 2004 Ben Pfaff + + Fixed cmd_parse() so that it always skips past a full command + name. A few special commands for which this would be bad get + special treatment. This lets us drop code for skipping past the + end of a command name in most cmd_*() functions. It's not worth + listing all the commands affected. + + * command.c: (struct command) Remove `cmd' member, replace by + `name' member, all references updated. Remove `word', `next', + `skip_entire_name' members. + (macro DEFCMD) Deal with revised `struct command'. + (macro UNIMPL) Ditto. + (macro SPCCMD) New macro for commands whose last word shouldn't be + skipped. + (static array cmd_table[]) Make const, rename `commands', remove + sentinel element. + (macro COMMAND_CNT) New macro. + (split_words) Removed. + (cmd_init) Removed. + (FILE_TYPE_okay) Make parameter const. + (cmd_parse) Improve error messages. + (match_strings) New function. + (next_word) New function. + (enum command_match) New enum. + (conflicting_3char_prefixes) New function. + (conflicting_3char_prefix_command) New function. + (cmd_match_words) New function. + (count_matching_commands) New function. + (get_command_name) New function. + (free_words) New function. + (unknown_command_error) New function. + (figure_out_command) Renamed parse_command_name(), rewritten. + + * command.def: Removed @ command. Marked BEGIN DATA, DOCUMENT, + FILE LABEL, REMARK, SUBTITLE, TITLE as special. Renamed EVALUATE + to DEBUG EVALUATE. Added N alias for N OF CASES, SORT alias for + SORT CASES. + + * command.h: (macro SPCCMD) New. + + * include.c: (cmd_include_at) Removed. + (cmd_include) Allow identifier to be used as filename. + + * inpt-pgm.c: (cmd_reread) Use fh_parse_file_handle(). + + * t-test.q: (cmd_t_test) Command name is now parsed for us. + + +Sat Mar 20 13:56:00 2004 Ben Pfaff + + Start work on better test framework. + + * Makefile.am: (pspp_sources) Add debug.c. + + * debug.c: New file. + + * compute.c: (cmd_evaluate) Moved to debug.c, renamed + cmd_debug_evaluate(). + + * expr-prs.c: (expr_parse) Remove PXP_DUMP support. + + * expr.h: (enum constant PXP_DUMP) Removed. + +Sat Mar 20 00:05:42 WST 2004 John Darrington + + * set.q: Implemented the SHOW command, and synced it to the existing + SET cmd. + + Added a handler for SIGWINCH so that viewlength and viewwidth follow + changes as the window size is changed. + + Added fallback to set viewlength and viewwidth from LINES and COLUMS + environment variables if other methods are not available. + + glob.c: Removed a lot of global variables from glob.c and encapsulated + them in set.q + + random.c: Tidied up the way the random seed is set. + + str.c: Added a ds_vprintf function. + + error.c: Extended dump_message so that messages are always broken at + '\n' characters. + +Thu Mar 18 11:07:14 2004 Ben Pfaff + + * pfm-write.c: (bufwrite) Write out the correct element for string + variables. From Andreas Streichardt . + +Mon Mar 15 20:48:03 2004 Ben Pfaff + + Get rid of static and global (!) vars in matrix-data.c. + + * matrix-data.c: (static var nr_data) Removed. + (static var nr_factor_values) Removed. + (static var max_cell_index) Removed. + (static var split_values) Removed. + (struct nr_aux_data) New structure. + (read_matrices_without_rowtype) Use a local struct nr_aux_data in + place of static vars, pass to create_case_source() and procedure() + as aux data. + (nr_read_data_lines) Use struct nr_aux_data * parameter instead of + struct matrix_data_pgm *. + (nr_read_splits) Ditto. + (nr_read_factors) Ditto. + (nr_output_data) Ditto. + (static var wr_content) Removed. + (global var wr_data) Removed. + (global var wr_current) Removed. + (struct wr_aux_data) New structure. + (read_matrices_with_rowtype) Use a local struct wr_aux_data in + place of static vars, pass to create_case_source() and procedure() + as aux data. + (matrix_data_read_with_rowtype) Use struct wr_aux_data * parameter + instead of matrix_data_pgm *. + (wr_read_splits) Ditto. + (wr_output_data) Ditto. + (wr_read_rowtype) Ditto. + (wr_read_factors) Ditto. + (wr_read_indeps) Ditto. + +Mon Mar 15 20:07:29 2004 Ben Pfaff + + Get rid of static vars in autorecode.c. + + * autorecode.c: (struct autorecode_trns) Rename `arc' to `specs', + `n_arc' to `spec_cnt'. All references updated. + (static var v_src) Removed. + (static var v_dest) Removed. + (static var h_trns) Removed. + (static var nv_src) Removed. + (static var descend) Removed. + (static var print) Removed. + (enum direction) New enum. + (struct autorecode_pgm) New structure. + (cmd_autorecode) Use struct autorecode_pgm instead of static vars. + Move n_dest local var into struct autorecode_pgm for ease of + clean-up. Use arc_free(). + (arc_free) New function. + (recode) Modify to take struct autorecode_pgm * parameter instead + of using statics. Let the caller clean up. + (autorecode_proc_func) Use struct autorecode_pgm * auxiliary data + instead of statics. Rearrange code a little. + +Mon Mar 15 00:25:02 2004 Ben Pfaff + + Get rid of static, global vars in recode.c. Remove debug code. + + * recode.c: (static var head) Removed. + (global var v) Removed. + (global var nv) Removed. + (cmd_recode) New local variables head, v, nv. Initialize and free + v. Don't call debug_print(). + [DEBUGGING] (dump_dest) Removed. + [DEBUGGING] (debug_print) Removed. + +Mon Mar 15 00:14:49 2004 Ben Pfaff + + Get rid of static vars in expr-opt.c. + + * expr-opt.c: (static var e) Removed. + (static var nop) Removed. + (static var mop) Removed. + (static var ndbl) Removed. + (static var mdbl) Removed. + (static var nstr) Removed. + (static var mstr) Removed. + (static var nvars) Removed. + (static var mvars) Removed. + (struct expr_dump_state) New structure. + (dump_expression) Use new struct expr_dump_state instead of static + vars and pass to functions we call. + (dump_node) Use struct expr_dump_state * parameter. + (emit) Ditto. + (emit_num_con) Ditto. + (emit_str_con) Ditto. + (emit_var) Ditto. + +Mon Mar 15 00:03:51 2004 Ben Pfaff + + Get rid of static var in COUNT. + + * count.c: (static var head) Move into cmd_count(). + (cmd_count) [DEBUGGING] Don't call debug_print. + [DEBUGGING] (debug_print) Removed. + +Sun Mar 14 23:56:09 2004 Ben Pfaff + + Get rid of static vars in VALUE LABELS, ADD VALUE LABELS. + + * val-labs.c: (static var v) Removed. + (static var nv) Removed. + [DEBUGGING] (debug_print) Removed. + (verify_val_labs) Add struct variable **, int parameters. + (get_label) Ditto. Improve error messages, streamline. + (erase_labels) New function for erasing value labels, taking over + part of verify_val_labs()'s function. + (init) Removed. + (done) Removed. + (cmd_value_labels) No need to call init() or done() anymore. + (cmd_add_value_labels) Ditto. + (do_value_labels) Add vars, var_cnt local variables. Clean up + after them internally. Call erase_labels() if we should. Don't + call debug_print(). + +Sun Mar 14 23:33:53 2004 Ben Pfaff + + Get rid of static vars in MATCH FILES. + + * get.c: (static var mtf_head) Removed. + (static var mtf_tail) Removed. + (static var mtf_by) Removed. + (static var mtf_n_by) Removed. + (static var mtf_master) Removed. + (static var mtf_seq_num) Removed. + (static var mtf_seq_nums) Removed. + (static var mtf_sink) Removed. + (static var mtf_case) Removed. + (struct mtf_proc) New structure. + (cmd_match_files) Use struct mtf_proc instead of static vars. + (mtf_processing_finish) Ditto. + (mtf_free) Ditto. + (mtf_delete_file_in_place) Ditto. + (mtf_read_nonactive_records) Ditto. + (mtf_compare_BY_values) Ditto. + (mtf_processing) Ditto. + (mtf_merge_dictionary) Ditto. + +Sun Mar 14 22:48:12 2004 Ben Pfaff + + * command.def: Add CASESTOVARS, VARSTOCASES unimplemented commands. + + * dictionary.c: (dict_rename_var) Add assertion. + (dict_contains_var) Check by index instead of name. + +Sun Mar 14 22:01:02 2004 Ben Pfaff + + Get rid of compaction_necessary, compaction_nval, compaction_case. + Redo VFM interface. Replace disk_sink and memory_sink by + storage_sink, disk_source and memory_source by storage_source. + + * vfm.h: (struct case_sink) Add `dict', `idx_to_fv', `value_cnt' + members. + + * vfm.c: + (struct write_case_data) Remove `begin_func', `end_func', + `func_aux' members. Add `aux', `trns_case', `sink_case', + `cases_written', `cases_analyzed' members. + (global var compaction_necessary) Make static. + (global var compaction_nval) Removed. + (global var compaction_case) Removed. + (static var case_count) Removed. + (struct procedure_aux_data) Removed. + (struct split_aux_data) Removed. + (procedure) Remove begin_func, end_func parameters. Rewrite. + (static var not_canceled) Removed. + (process_active_file) Removed. + (process_active_file_write_case) Removed. + (process_active_file_output_case) Removed. + (prepare_for_writing) Moved into open_active_file(). + (arrange_compaction) Ditto. + (setup_lag) Ditto. + (open_active_file) Rewrote. + (write_case) New function. + [DEBUGGING] (index_to_varname) Removed. + (execute_transformations) New function. + (exclude_this_case) Renamed filter_case(), changed interface. + (clear_case) Added struct ccase * parameter to interface. + (close_active_file) Added struct write_case_data * parameter, + rewrote. + (disk_sink_create) Removed. + (disk_sink_destroy) Removed. + (disk_sink_make_source) Removed. + (disk_sink_write) Removed. + (disk_source_count) Removed. + (disk_source_destroy) Removed. + (disk_source_read) Removed. + (global var disk_sink_class) Removed. + (global var disk_source_class) Removed. + (global var memory_sink_class) Removed. + (global var memory_source_class) Removed. + (memory_sink_create) Removed. + (memory_sink_destroy) Removed. + (memory_sink_make_source) Removed. + (memory_sink_write) Removed. + (memory_source_count) Removed. + (memory_source_destroy) Removed. + (memory_source_get_cases) Removed. + (memory_source_read) Removed. + (memory_source_set_cases) Removed. + (struct disk_stream_info) Removed. + (struct memory_sink_info) Removed. + (struct memory_source_info) Removed. + (write_active_file_to_disk) Removed. + (destroy_storage_stream_info) New function. + (global var null_sink_class) New var. + (global var storage_sink_class) New var. + (global var storage_source_class) New var. + (open_storage_file) New function. + (storage_sink_destroy) New function. + (storage_sink_make_source) New function. + (storage_sink_open) New function. + (storage_sink_write) New function. + (storage_source_count) New function. + (storage_source_destroy) New function. + (storage_source_get_cases) New function. + (storage_source_on_disk) New function. + (storage_source_read) New function. + (storage_source_set_cases) New function. + (storage_source_to_disk) New function. + (storage_to_disk) New function. + (struct storage_stream_info) New structure. + (write_storage_file) New function. + (procedure_write_case) Removed. + (create_case_source) Add `struct dictionary *' parameter, all + references updated. + (create_case_sink) Ditto. + (free_case_sink) New function. + (struct split_aux_data) New structure. + (procedure_with_splits) New function implementing what procedure() + used to. + (SPLIT_FILE_proc_func) Removed. + (procedure_with_splits_callback) New function. + (equal_splits) New function. + + * aggregate.c: Pass around a struct instead of using statics. + (static var outfile) Remove. + (enum type) Give it tag `missing_treatment'. + (static var missing) Remove. + (static var sort) Remove. + (static var agr_first) Remove. + (static var agr_next) Remove. + (static var case_count) Remove. + (static var prev_case) Remove. + (static var buf64_1xx) Remove. + (static var buf_1xx) Remove. + (struct agr_proc) New structure incorporating the above. + (cmd_aggregate) Use new struct. Clean up error handling using + agr_destroy(). Completely rewrite actual implementation of + aggregation. + (create_sysfile) Add struct agr_proc * parameter, modify + accordingly. + (parse_aggregate_functions) Ditto. + (free_aggregate_functions) Ditto. Rename agr_destroy(). + (aggregate_single_case) Add struct agr_proc * parameter, modify + accordingly. + (accumulate_aggregate_info) Ditto. + (dump_aggregate_info) Ditto. + (initialize_aggregate_info) Ditto. + (agr_00x_trns_proc) Removed. + (agr_00x_end_func) Removed. + (agr_10x_trns_proc) Removed. + (agr_10x_trns_free) Removed. + (agr_10x_end_func) Removed. + (agr_11x_read) Removed. + (agr_11x_finish) Removed. + [DEBUGGING] (debug_print) Removed. + (write_case_to_sfm) Add struct agr_proc * parameter, modify + accordingly. + (agr_to_active_file) New function. + (presorted_agr_to_sysfile) New function. + (sort_agr_to_sysfile) New function. + + * autorecode.c: (cmd_autorecode) Use procedure_with_splits(). + + * crosstabs.q: (internal_cmd_crosstabs) Ditto. + + * descript.q: (cmd_descriptives) Ditto. + + * dfm.c: (cmd_begin_data) Check for storage_source_class. Adapt + to new procedure() interface. + + * command.c: (cmd_execute) Adapt to new procedure() interface. + + * dictionary.c: (dict_compact_values) Also delete scratch + variables. + (dict_get_compacted_value_cnt) New function. + (dict_get_compacted_idx_to_fv) New function. + + * flip.c: (cmd_flip) Warn about and cancel TEMPORARY. + (cmd_flip) Adapt to new procedure() interface. + (flip_sink_write) Use sink->idx_to_fv. + + * frequencies.q: (internal_cmd_frequencies) Use + procedure_with_splits(). + + * get.c: (cmd_save_internal) Adapt to new procedure() interface. + (static var mtf_sink) New static var. + (static var mtf_case) New static var. + (cmd_match_files) Warn about and cancel TEMPORARY. Redo the way + we actually implement the matching. + (mtf_delete_file_in_place) Use mtf_case. + (mtf_processing) Use mtf_case and mtf_sink. + (cmd_export) Adapt to new procedure() interface. + + * levene.c: (levene) Use procedure_with_splits(). + + * list.q: (cmd_list) Use procedure_with_splits(). + + * matrix-data.c: (read_matrices_without_rowtype) Adapt to new + procedure() interface. + (read_matrices_with_rowtype) Ditto. + + * modify-vars.c; (cmd_modify_vars) Warn about and cancel + TEMPORARY. Adapt to new procedure() interface. + + * rename-vars.c: Warn about and cancel TEMPORARY. + + * sort.c: (cmd_sort_cases) Warn about TEMPORARY. + (sort_cases) Use dict_get_compacted_value_cnt() instead of + compaction_nval. Adapt to new procedure() interface. Use + storage_source_to_disk(). + (do_internal_sort) Don't try to dump the cases to memory. + (compare_case_lists) Pass null idx_to_fv. + (struct initial_run_state) Add `idx_to_fv' member. Remove + `case_size' member. + (write_initial_runs) Don't initialize irs->case_size. Adapt to + new procedure() interface. Reset irs->idx_to_fv after calling + procedure(). + (sort_sink_write) Set irs->idx_to_fv. Use case_size from struct + sort_cases_pgm. Pass irs, not struct sort_cases_pgm to + push_heap(). + (destroy_initial_run_state) Don't dereference irs after freeing + it. + (allocate_cases) Don't calculate case_size locally. + (compare_record) Add idx_to_fv parameter. + (compare_record_run) Change parameter from struct sort_cases_pgm * + to struct initial_run_state *. Pass irs->idx_to_fv to + compare_record(). + (compare_record_run) Third parameter now a struct + initial_run_state *. + (output_record) No need for out_case anymore. Pass irs, not + struct sort_cases_pgm to pop_heap(). Use case_size from struct + sort_cases_pgm. + (merge) Use case_size from struct sort_cases_pgm. + (merge_once) Use case_size from struct sort_cases_pgm. + Pass null pointer to compare_record() as idx_to_fv. + (global var sort_sink_class) Make static. + + * t-test.q: (cmd_t_test) Use procedure_with_splits(). + + * temporary.c: Remove debugging crap. + +Sat Mar 13 14:19:52 WST 2004 John Darrington + + * t-test.q, levene.c: Fixed up the handling of MISSING values + int the T-TEST + +Fri Mar 12 16:23:35 WST 2004 John Darrington + + * t-test.q, levene.c: Added support for T-TEST /GROUP where only + one value is given. + +Wed Mar 10 23:25:13 2004 Ben Pfaff + + Change explicit variable name checks into use of + dict_class_from_id(). + + * dictionary.c: (dict_create_var) Change explicit variable name + check into use of dict_class_from_id(). + + * get.c: (trim_dictionary) Ditto. + + * sel-if.c: (cmd_filter) Ditto. + + * sysfile-info.c: (cmd_display) Ditto. + + * vars-prs.c: (parse_DATA_LIST_vars) Ditto. + + * vfm.c: (arrange_compaction) Ditto. + + * weight.c: (cmd_weight) Ditto. + Wed Mar 10 21:16:34 2004 Ben Pfaff * temporary.c: (cmd_temporary) When TEMPORARY was the first