X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fcontrol%2FChangeLog;h=3421bdf4282a9c218d098deb9f1ed282af17b858;hb=a9afcdd22;hp=50707bd4f244b089565f727bdc1045836e3e9faf;hpb=c1629e9b28338e59f9e4c027f3792a9419840a2c;p=pspp-builds.git diff --git a/src/language/control/ChangeLog b/src/language/control/ChangeLog index 50707bd4..3421bdf4 100644 --- a/src/language/control/ChangeLog +++ b/src/language/control/ChangeLog @@ -1,3 +1,104 @@ +2008-05-15 Ben Pfaff + + Patch #6512. + + * loop.c (loop_trns_proc): Use gsl_finite instead of finite, , as + a stopgap measure for portability until appropriate gnulib modules + are available. + +2007-09-23 Ben Pfaff + + Bug #21111. Reviewed by John Darrington. + + * do-if.c: Fix ELSE and ELSE IF clauses. + (add_clause): Drop TARGET_INDEX argument and figure out the target + of the jump on our own. The caller couldn't compensate for the + inserted BREAK transformation. Updated all callers. + +Fri Feb 2 22:41:43 WST 2007 John Darrington + + * repeat.c (parse_numbers): Fixed bug parseing ranges vs. lists. + Ensured that floats are accepted in lists, but not in ranges. + +Tue Dec 19 08:12:46 2006 Ben Pfaff + + Fix LOOP. Thanks to Daniel Williams + for reporting one of the bugs + fixed here. + + * loop.c (cmd_loop): Keep track of whether we created the index + variable and delete it if parsing fails, instead of creating it + after parsing the IF clause. This allows the index variable to be + used in the IF clause. This incidentally fixes a segfault when no + index variable was used. Also, return CMD_CASCADING_FAILURE if we + fail. + (parse_if_clause): Don't allow more than one IF clause. + (parse_index_clause): Don't allow more than one index clause. + Create the index variable if it doesn't exist. + (end_loop_trns_proc): Invert the sense of END LOOP's IF clause. + +Sat Dec 9 20:12:34 2006 Ben Pfaff + + * repeat.c (parse_lines): Issue an error when attempting to nest + DO REPEAT in compatibility mode. + +Sat Dec 2 17:01:59 2006 Ben Pfaff + + Significant cleanup to DO REPEAT. + + * repeat.c: (struct line_list) Rename struct repeat_line. Use + struct ll instead of explicit "next" pointer. Make "file_name" + const. Change "const char *line" to "struct substring text". Add + `syntax' member. Update all references. + (enum repeat_entry_type) Rename repeat_macro_type, update all + references. + (struct repeat_entry) Rename struct repeat_macro. Use struct ll + instead of explicit "next" pointer. Change "char[] id" to "struct + substring name". Change "char **replacement" to "struct substring + *replacements". Update all references. + (struct repeat_block) Use struct ll_list for lists of lines, + macros. Change "cur_line" to struct ll *. + (cmd_do_repeat) Don't bother adding an empty getl source at all. + This saves special-casing an empty source in repeat_read. + (parse_specification) Use new find_macro function. + (find_macro) New function. + (skip_indentor) Removed. + (recognize_keyword) Change interface, update callers. + (recognize_do_repeat) Ditto. + (recognize_end_repeat) Ditto. + (parse_lines) Use lex_preprocess_line to preprocess the input line + to check for DO REPEAT and END REPEAT, instead of coding it + inline. + (parse_ids) Need to make a copy of the array parsed by + parse_mixed_vars_pool, instead of using it verbatim, because we're + using struct substring now. + (add_replacement) Use struct substring in interface, instead of + const char *, and update all callers. + (find_substitution) Rewrite using substring, in terms of + find_macro. + (do_repeat_filter) Use struct substring to simplify code. + (current_line) New function. + +Sat Dec 2 16:40:12 2006 Ben Pfaff + + Fix lack of ->name and ->location in DO REPEAT's getl_interface. + See bug #15702. + + * repeat.c: (cmd_do_repeat) Initialize name, location in + getl_interface. + (do_repeat_read) Adjust semantics of cur_line so that, after the + call, it points to the line just returned, instead of to the next + line to be returned. Thus, do_repeat_name and do_repeat_location + can use cur_line to obtain the info they need. + (do_repeat_name) New function. + (do_repeat_location) New function. + +Thu Nov 30 22:01:27 2006 Ben Pfaff + + * repeat.c (do_repeat_read): Properly handle empty DO REPEAT...END + REPEAT block. Fixes bug #18407. Thanks to John Darrington for + reporting this bug. + Sat Oct 28 16:18:48 WST 2006 John Darrington * repeat.c: Eliminated references to extern variable getl_buf.