X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fexpressions%2FChangeLog;h=98df4a36e43af697f9ac6ac697ab1f7e09eebf5e;hb=ecd26ec19e9f8a58079a1c5fa06b39484787ab7e;hp=ab68d8ca94128844bdaea66a9435bd4a826c14e7;hpb=6492b3b49661963dc6d78201a1eb3927fdf54b68;p=pspp-builds.git diff --git a/src/language/expressions/ChangeLog b/src/language/expressions/ChangeLog index ab68d8ca..98df4a36 100644 --- a/src/language/expressions/ChangeLog +++ b/src/language/expressions/ChangeLog @@ -1,3 +1,55 @@ +Sat Dec 16 12:20:14 2006 Ben Pfaff + + * operations.def: Reverse order of arguments to DATEDIFF, for + compatibility. Thanks to Daniel Williams + for reporting this bug. + +Wed Dec 13 19:30:26 2006 Ben Pfaff + + Implement support for DATESUM, DATEDIFF expression functions. See + patch #5637. + + * helpers.c (enum date_unit): New enum. + [!HAVE_TRUNC] (trunc): New function. + (recognize_unit): New function. + (year_diff): New function. + (month_diff): New function. + (quarter_diff): New function. + (date_unit_duration): New function. + (expr_date_difference): New function. + (enum date_sum_method): New function. + (recognize_method): New function. + (add_months): New function. + (expr_date_sum): New function. + + * operations.def: Implement DATESUM, DATEDIFF functions. Mark + VALUELABEL no_abbrev. + +Sun Dec 10 16:49:33 2006 Ben Pfaff + + * operations.def: Implement VALUELABEL function. Add DATEDIFF, + DATESUM unimplemented stubs. + + * parse.c (type_coercion_core): Add support for OP_var type, which + is a name for a numeric or string variable. + (is_compatible) New function. + (check_operator) Only require values to be compatible with their + expected types, not identical. + (is_valid_node) Ditto. + (compare_names) Always return mismatch if the command name can't + be abbreviated. + (lookup_function_helper) Pass the new OPF_NO_ABBREV flag to the + comparison function. + + * generate.pl (init_all_types): Add support for a type just called + "var" that may be a numeric or string variable name. Also, add a + no_abbrev option that prevents a function name from being + abbreviated (in case of naming conflict otherwise). + + * parse.inc.pl: Output OPF_NO_ABBREV flag. + + * private.h: Add OPF_NO_ABBREV flag. + Wed Jul 12 21:03:17 2006 Ben Pfaff * evaluate.c (cmd_debug_evaluate): Don't try to resize a null