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