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