1 |
|
Sun Mar 6 19:52:22 2005 Ben Pfaff <blp@gnu.org> |
2 |
|
|
3 |
|
DATA LIST with free-field formats should not have implied decimal |
4 |
|
places (bug #12035). Also clean up data-in.c a bit. |
5 |
|
|
6 |
|
* data-in.h: (enum) Add DI_IMPLIED_DECIMALS. |
7 |
|
|
8 |
|
* data-in.c: (apply_implied_decimals) New function. |
9 |
|
(parse_numeric) Don't adjust exponent if DI_IMPLIED_DECIMALS not |
10 |
|
set. Also, get rid of gotos. |
11 |
|
(parse_Z) Use apply_implied_decimals() if the field doesn't |
12 |
|
contain a decimal point. |
13 |
|
(parse_N) Use apply_implied_decimals(). |
14 |
|
(parse_IB) Ditto. |
15 |
|
(parse_PIB) Ditto. |
16 |
|
(parse_P) Ditto. |
17 |
|
(parse_PK) Ditto. |
18 |
|
(to_roman) Removed. |
19 |
|
(parse_enum) New function. |
20 |
|
(macro CHAR_IS_ROMAN) Removed. |
21 |
|
(macro ROMAN_VALUE) Removed. |
22 |
|
(parse_month) Use parse_enum(). |
23 |
|
(parse_weekday) Use parse_enum(). |
24 |
|
(parse_DATETIME) Use long for weekday. |
25 |
|
|
26 |
|
* data-list.c: (read_from_data_list_fixed) Use |
27 |
|
DI_IMPLIED_DECIMALS. |
28 |
|
|
29 |
Sun Mar 6 17:07:20 2005 Ben Pfaff <blp@gnu.org> |
Sun Mar 6 17:07:20 2005 Ben Pfaff <blp@gnu.org> |
30 |
|
|
31 |
When the lexer sees something like `-5' in the input, it has to |
When the lexer sees something like `-5' in the input, it has to |
53 |
|
|
54 |
* lexer.h: (enum) Add T_POS_NUM, T_NEG_NUM. Remove T_NUM. |
* lexer.h: (enum) Add T_POS_NUM, T_NEG_NUM. Remove T_NUM. |
55 |
|
|
56 |
|
Sun Mar 6 22:09:20 2005 Ben Pfaff <blp@gnu.org> |
57 |
|
|
58 |
|
* operations.def: (NUMBER) Use DI_IMPLIED_DECIMALS. |
59 |
|
|
60 |
|
Sun Mar 6 19:33:24 2005 Ben Pfaff <blp@gnu.org> |
61 |
|
|
62 |
|
* operations.def: (VEC_ELEM_NUM) Treat user-missing values as |
63 |
|
system-missing. |
64 |
|
|
65 |
|
* parse.c: (parse_vector_element) Fix order of arguments in call |
66 |
|
to expr_allocate_binary(). |
67 |
|
|
68 |
|
Sun Mar 6 17:51:05 2005 Ben Pfaff <blp@gnu.org> |
69 |
|
|
70 |
|
* optimize.c: (optimize_tree) Fix optimization bug for x**2. |
71 |
|
|
72 |
|
* parse.c: (type_coercion_core) Set *node to NULL on failure, as |
73 |
|
indicated by function comment. |
74 |
|
(parse_binary_operators) Always return NULL on type_coercion() |
75 |
|
failure. Should have been doing this anyway, but bug in |
76 |
|
type_coercion_core() filtered through. |
77 |
|
(parse_add) Fix typo in user message. |
78 |
|
(parse_primary) Understand T_NEG_NUM and T_POS_NUM. |
79 |
|
|
80 |
|
Sun Mar 6 10:47:13 2005 Ben Pfaff <blp@gnu.org> |
81 |
|
|
82 |
|
* operations.def: Add VALUE function. |
83 |
|
|
84 |
|
* parse.c: (parse_function) Need an unary composite node for |
85 |
|
variables in A TO B, not a variable node. Use |
86 |
|
allocate_unary_variable(). |
87 |
|
(parse_primary) Use allocate_unary_variable(). |
88 |
|
(allocate_unary_variable) New function. |
89 |
|
|
90 |
|
Thu Mar 3 23:53:32 2005 Ben Pfaff <blp@gnu.org> |
91 |
|
|
92 |
|
* PSPP_expressions.pm: Renamed it back to generate.pl but fixed |
93 |
|
the real problem that was preventing the build from a separate |
94 |
|
directory. I liked it my way better ;-) |
95 |
|
|
96 |
|
Thu Mar 3 23:17:51 2005 Ben Pfaff <blp@gnu.org> |
97 |
|
|
98 |
|
* parse.c: (expr_parse) Fix parameter type. Thanks to John |
99 |
|
Darrington <john@darrington.wattle.id.au> for reporting this bug. |
100 |
|
|
101 |
|
Thu Mar 3 22:10:25 WST 2005 John Darrington <john@darrington.wattle.id.au> |
102 |
|
|
103 |
|
* Makefile.am evaluate.h.pl evaluate.inc.pl operations.h.pl |
104 |
|
optimize.inc.pl parse.inc.p: |
105 |
|
|
106 |
|
Renamed generate.pl to PSPP_expressions.pm and adjusted *.pl |
107 |
|
to suit. |
108 |
|
|
109 |
|
Fixed everything so that it can be built from an arbitrary |
110 |
|
directory. |
111 |
|
|
112 |
Thu Mar 3 22:08:35 WST 2005 John Darrington <john@darrington.wattle.id.au> |
Thu Mar 3 22:08:35 WST 2005 John Darrington <john@darrington.wattle.id.au> |
113 |
|
|
114 |
* Makefile.am : Fixed up CLEANFILES target. |
* Makefile.am : Fixed up CLEANFILES target. |