Add routines for integer byte order conversions, floating point format
[pspp-builds.git] / src / language / ChangeLog
1 Thu Oct 26 20:19:00 2006  Ben Pfaff  <blp@gnu.org>
2
3         * command.def: Add DEBUG FLOAT FORMAT.
4
5 Fri Oct 20 10:59:06 WST 2006 John Darrington <john@darrington.wattle.id.au>
6
7         * command.def: Added additional unimpl commands.
8
9 Sun Oct 15 19:38:55 2006  Ben Pfaff  <blp@gnu.org>
10
11         * command.c: (do_parse_command) Issue an error for unimplemented
12         commands, instead of silently ignoring them.  Reported by John
13         Darrington.
14
15 Wed Jun 28 11:38:23 2006  Ben Pfaff  <blp@gnu.org>
16
17         Don't offer both the full and abbreviated names for a single
18         command in command name completion.
19         
20         * command.c: (enum flags) Add F_ABBREV flag.
21         (cmd_complete) Ignore command with F_ABBREV flag set.
22
23         * command.def: Add F_ABBREV to N, Q, SORT commands.
24
25 Tue Jun 27 22:36:38 2006  Ben Pfaff  <blp@gnu.org>
26
27         Fix regression in command name completion reported by John
28         Darrington.  Now completion is again state-dependent and occurs
29         only on the first line of a command.
30         
31         * command.c (do_parse_command): Move reading the first token of
32         the command here, from execute_command and cmd_input_program.
33         Call set_completion_state and getl_set_prompt_style here.
34         (do_parse_command) Use in_correct_state instead of
35         verify_valid_command.
36         (verify_valid_command) Break into two new functions,
37         in_correct_state and report_state_mismatch.
38         (set_completion_state) New function.
39         (cmd_complete) New function.
40         [HAVE_READLINE] (pspp_attempted_completion_function) Removed.
41         [HAVE_READLINE] (command_generator) Removed.
42
43         * line-buffer.c: (struct getl_source) Change `interactive' member
44         signature to take enum getl_prompt_style instead of const char *.
45         (create_interactive_source) Ditto, for parameter type.
46         (getl_append_interactive) Ditto.
47         (read_line_from_source) Pass get_prompt_style() to interactive
48         function instead of get_prompt().
49         (get_prompt) Removed.
50         (get_prompt_style) New function.
51         
52 Sat May  6 13:25:25 2006  Ben Pfaff  <blp@gnu.org>
53
54         Continue reforming procedure execution.  In this phase, remove
55         PROCESS IF, which was deprecated anyway and can be easily
56         simulated with TEMPORARY followed by SELECT IF.
57
58         * command.def: Removed PROCESS IF.
59
60 Mon May  1 18:17:52 2006  Ben Pfaff  <blp@gnu.org>
61
62         Further clean up the CMD_* command result codes.
63         
64         * command.c (cmd_result_is_valid): New function.
65         (cmd_result_is_success) Assert that argument is valid.  Simplified
66         check to one for a positive result.
67         (cmd_result_is_failure) Assert that argument is valid.  Simplified
68         check to one for a negative result.
69         (do_parse_command) Check that command's returned result is valid.
70
71         * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
72         updated all users.  Removed CMD_END_SUBLOOP in favor of new
73         CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range.  Changed failure codes
74         to have negative values.
75
76 Mon May  1 15:56:56 2006  Ben Pfaff  <blp@gnu.org>
77
78         Remove vestiges of FILE TYPE support. 
79         
80         * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
81
82 Wed Apr 26 21:13:46 2006  Ben Pfaff  <blp@gnu.org>
83
84         CLEAR TRANSFORMATIONS is unsafe as implemented.  It's a fair
85         amount of work to implement it correctly, so make it
86         unimplemented.
87                 
88         * command.c: (cmd_clear_transformations) Removed.
89
90         * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
91
92 Wed Apr 26 13:06:42 2006  Ben Pfaff  <blp@gnu.org>
93
94         Work on readline completion.
95
96         * command.c: (pspp_completion_function) Removed.
97         (pspp_attempted_completion_function) New function.
98         (command_generator) New function.
99
100 Wed Apr 26 13:04:48 2006  Ben Pfaff  <blp@gnu.org>
101
102         Improve the way we handle the various parsing "states".  Until now
103         we've hard-coded the state transitions in the command definition
104         file, but that's error-prone and, worse, it's redundant--we can
105         figure out what state we're in anyhow.  We can cleanly handle
106         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
107         
108         * command.c: (cmd_result_is_success) New function.
109         (cmd_result_is_failure) New function.
110         (enum states) New enum.
111         (enum flags) New enum.
112         (struct command) Add states, flags members.  Remove transition,
113         skip_entire_name, debug members.  Renamed func member as function.
114         (macro DEFCMD) Removed.
115         (macro DBGCMD) Removed.
116         (macro SPCCMD) Removed.
117         (macro UNIMPL) Removed.
118         (macro DEF_CMD) New.
119         (macro UNIMPL_CMD) New.
120         (macro COMMAND_CNT) Changed to static const var, renamed
121         command_cnt.  Updated all references.
122         (FILE_TYPE_okay) Removed.
123         (cmd_parse) Rewrote in terms of do_parse_command().
124         (do_parse_command) New function.
125         (find_command) New function.
126         (unknown_command_error) Use struct string to simplify code.
127         (parse_command_name) Recognize comment command names.  Handle
128         flags.  Don't reject testing-mode-only commands here--let higher
129         level do it.
130         (verify_valid_command) New function.
131         (cmd_comment) New function.
132
133         * command.def: Completely rewritten and now sensibly organized.
134
135         * command.h: (enum STATE_*) Renamed CMD_STATE_*.
136         (CMD_*) Now "enum cmd_result".  Added CMD_QUIT.  New
137         CMD_END_SUBLOOP.  Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
138         CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
139         Added CMD_NOT_IMPLEMENTED.
140         (macro DEFCMD) Removed.
141         (macro DBGCMD) Removed.
142         (macro SPCCMD) Removed.
143         (macro UNIMPL) Removed.
144         (macro DEF_CMD) New.
145         (macro UNIMPL_CMD) New.
146
147 Mon Apr  3 11:03:36 2006  Ben Pfaff  <blp@gnu.org>
148
149         * list.q: (write_all_headers) Adapt to new html and output
150         internals.
151         (clean_up) Ditto.
152         (write_varname) Ditto.
153         (write_fallback_headers) Ditto.
154         (determine_layout) Ditto.
155         (list_cases) Ditto.
156         
157
158 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
159         
160         * Moved files from src directory