81997af685611606680f74140c584b8de6b80021
[pspp-builds.git] / src / language / ChangeLog
1 Mon May  1 18:17:52 2006  Ben Pfaff  <blp@gnu.org>
2
3         Further clean up the CMD_* command result codes.
4         
5         * command.c (cmd_result_is_valid): New function.
6         (cmd_result_is_success) Assert that argument is valid.  Simplified
7         check to one for a positive result.
8         (cmd_result_is_failure) Assert that argument is valid.  Simplified
9         check to one for a negative result.
10         (do_parse_command) Check that command's returned result is valid.
11
12         * command.h: (enum cmd_result) Renamed CMD_QUIT to CMD_FINISH and
13         updated all users.  Removed CMD_END_SUBLOOP in favor of new
14         CMD_PRIVATE_FIRST...CMD_PRIVATE_LAST range.  Changed failure codes
15         to have negative values.
16
17 Mon May  1 15:56:56 2006  Ben Pfaff  <blp@gnu.org>
18
19         Remove vestiges of FILE TYPE support. 
20         
21         * command.def: Mark FILE TYPE, RECORD TYPE unimplemented.
22
23 Wed Apr 26 21:13:46 2006  Ben Pfaff  <blp@gnu.org>
24
25         CLEAR TRANSFORMATIONS is unsafe as implemented.  It's a fair
26         amount of work to implement it correctly, so make it
27         unimplemented.
28                 
29         * command.c: (cmd_clear_transformations) Removed.
30
31         * command.def: Mark CLEAR TRANSFORMATIONS as unimplemented.
32
33 Wed Apr 26 13:06:42 2006  Ben Pfaff  <blp@gnu.org>
34
35         Work on readline completion.
36
37         * command.c: (pspp_completion_function) Removed.
38         (pspp_attempted_completion_function) New function.
39         (command_generator) New function.
40
41 Wed Apr 26 13:04:48 2006  Ben Pfaff  <blp@gnu.org>
42
43         Improve the way we handle the various parsing "states".  Until now
44         we've hard-coded the state transitions in the command definition
45         file, but that's error-prone and, worse, it's redundant--we can
46         figure out what state we're in anyhow.  We can cleanly handle
47         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
48         
49         * command.c: (cmd_result_is_success) New function.
50         (cmd_result_is_failure) New function.
51         (enum states) New enum.
52         (enum flags) New enum.
53         (struct command) Add states, flags members.  Remove transition,
54         skip_entire_name, debug members.  Renamed func member as function.
55         (macro DEFCMD) Removed.
56         (macro DBGCMD) Removed.
57         (macro SPCCMD) Removed.
58         (macro UNIMPL) Removed.
59         (macro DEF_CMD) New.
60         (macro UNIMPL_CMD) New.
61         (macro COMMAND_CNT) Changed to static const var, renamed
62         command_cnt.  Updated all references.
63         (FILE_TYPE_okay) Removed.
64         (cmd_parse) Rewrote in terms of do_parse_command().
65         (do_parse_command) New function.
66         (find_command) New function.
67         (unknown_command_error) Use struct string to simplify code.
68         (parse_command_name) Recognize comment command names.  Handle
69         flags.  Don't reject testing-mode-only commands here--let higher
70         level do it.
71         (verify_valid_command) New function.
72         (cmd_comment) New function.
73
74         * command.def: Completely rewritten and now sensibly organized.
75
76         * command.h: (enum STATE_*) Renamed CMD_STATE_*.
77         (CMD_*) Now "enum cmd_result".  Added CMD_QUIT.  New
78         CMD_END_SUBLOOP.  Removed CMD_TRAILING_GARBAGE, CMD_PART_SUCCESS,
79         CMD_PART_SUCCESS_MAYBE and replaced all references by CMD_FAILURE.
80         Added CMD_NOT_IMPLEMENTED.
81         (macro DEFCMD) Removed.
82         (macro DBGCMD) Removed.
83         (macro SPCCMD) Removed.
84         (macro UNIMPL) Removed.
85         (macro DEF_CMD) New.
86         (macro UNIMPL_CMD) New.
87
88 Mon Apr  3 11:03:36 2006  Ben Pfaff  <blp@gnu.org>
89
90         * list.q: (write_all_headers) Adapt to new html and output
91         internals.
92         (clean_up) Ditto.
93         (write_varname) Ditto.
94         (write_fallback_headers) Ditto.
95         (determine_layout) Ditto.
96         (list_cases) Ditto.
97         
98
99 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
100         
101         * Moved files from src directory