ab9932513792fc0c5b7b2e03e5eda3f201da6cda
[pspp-builds.git] / src / language / expressions / ChangeLog
1 Thu Feb  1 06:59:27 2007  Ben Pfaff  <blp@gnu.org>
2
3         * parse.c (parse_function): Accept TO in any case for use with
4         n-ary functions.  Fixes bug #18923.  Thanks to John Darrington for
5         reporting this bug.
6
7 Sat Dec 16 12:20:14 2006  Ben Pfaff  <blp@gnu.org>
8
9         * operations.def: Reverse order of arguments to DATEDIFF, for
10         compatibility.  Thanks to Daniel Williams
11         <Daniel.E.Williams@state.or.us> for reporting this bug.
12
13 Wed Dec 13 19:30:26 2006  Ben Pfaff  <blp@gnu.org>
14
15         Implement support for DATESUM, DATEDIFF expression functions.  See
16         patch #5637.
17         
18         * helpers.c (enum date_unit): New enum.
19         [!HAVE_TRUNC] (trunc): New function.
20         (recognize_unit): New function.
21         (year_diff): New function.
22         (month_diff): New function.
23         (quarter_diff): New function.
24         (date_unit_duration): New function.
25         (expr_date_difference): New function.
26         (enum date_sum_method): New function.
27         (recognize_method): New function.
28         (add_months): New function.
29         (expr_date_sum): New function.
30         
31         * operations.def: Implement DATESUM, DATEDIFF functions.  Mark
32         VALUELABEL no_abbrev.
33
34 Sun Dec 10 16:49:33 2006  Ben Pfaff  <blp@gnu.org>
35
36         * operations.def: Implement VALUELABEL function.  Add DATEDIFF,
37         DATESUM unimplemented stubs.
38
39         * parse.c (type_coercion_core): Add support for OP_var type, which
40         is a name for a numeric or string variable.
41         (is_compatible) New function.
42         (check_operator) Only require values to be compatible with their
43         expected types, not identical.
44         (is_valid_node) Ditto.
45         (compare_names) Always return mismatch if the command name can't
46         be abbreviated.
47         (lookup_function_helper) Pass the new OPF_NO_ABBREV flag to the
48         comparison function.
49
50         * generate.pl (init_all_types): Add support for a type just called
51         "var" that may be a numeric or string variable name.  Also, add a
52         no_abbrev option that prevents a function name from being
53         abbreviated (in case of naming conflict otherwise).
54         
55         * parse.inc.pl: Output OPF_NO_ABBREV flag.
56
57         * private.h: Add OPF_NO_ABBREV flag.
58
59 Wed Jul 12 21:03:17 2006  Ben Pfaff  <blp@gnu.org>
60
61         * evaluate.c (cmd_debug_evaluate): Don't try to resize a null
62         case.
63
64 Fri Jun  9 13:59:15 2006  Ben Pfaff  <blp@gnu.org>
65
66         Reform string library.
67         
68         * generate.pl (init_all_types): `struct fixed_string' is now
69         `struct substring'.
70
71 Sun May  7 10:05:42 WST 2006 John Darrington <john@darrington.wattle.id.au>
72
73         * evaluate.c: Removed call to copy_mangle, and replaced with the
74         original buf_copy_rpad.
75
76 Mon May  1 15:11:48 2006  Ben Pfaff  <blp@gnu.org>
77
78         Prohibit LAG following TEMPORARY.  This both matches SPSS behavior
79         and fixes a bug: we saved the cases for LAG before TEMPORARY but
80         allowed access to variables created afterward anyhow (which could
81         cause a segfault).
82
83         * generate.pl: Parse "perm_only" flag on operations.
84
85         * operations.def: Add "perm_only" flag to LAG operations.
86
87         * parse.c: Disallow OPF_PERM_ONLY operations after TEMPORARY.
88
89         * parse.inc.pl: Output OPF_PERM_ONLY flag for "perm_only"
90         operations.
91
92         * private.h: Add OPF_PERM_ONLY flag.
93
94 Sun Apr 23 22:06:45 2006  Ben Pfaff  <blp@gnu.org>
95
96         Continue reforming error message support.  In this phase, get rid
97         of message "titles" and put the message text in `struct error'.
98         Now `struct error' encapsulates a message more properly.
99         
100         * helpers.c: (expr_error) Use err_msg() instead of err_vmsg().
101         Format message ourselves.
102
103 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
104         
105         * Moved files from src directory