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