Actually implement the new procedure code and adapt all of its clients
[pspp-builds.git] / src / ui / terminal / ChangeLog
1 2007-06-06  Ben Pfaff  <blp@gnu.org>
2
3         Adapt case sources, sinks, and clients of procedure code to the
4         new infrastructure.
5         
6         * main.c: No need for fastfile_factory any more.
7
8 2007-02-25  Ben Pfaff  <blp@gnu.org>
9
10         Thanks to Jason Stover for verifying that this patch helps under
11         NetBSD.
12
13         * main.c [HAVE_IEEE_FP]: Include <ieeefp.h>.
14         (fpu_init) [HAVE_IEEE_FP]: Use setfpmask to mask floating-point
15         exceptions.
16
17 Sun Feb 18 13:28:26 2007  Ben Pfaff  <blp@gnu.org>
18
19         * msg-ui.c: Don't include exit.h, because gnulib fixes up stdlib.h
20         as necessary.  Do include stdlib.h, because exit.h did so for us
21         and we need it.
22
23 Thu Feb  8 15:07:04 2007  Ben Pfaff  <blp@gnu.org>
24
25         * read-line.c (readln_initialize): Instead of only supporting
26         history in unix, always support history, and only support a
27         history file when $HOME is defined.
28         (readln_uninitialize): Ditto.
29         (welcome) Call readln_initialize instead of duplicating code.
30
31 Sun Dec 10 11:13:53 2006  Ben Pfaff  <blp@gnu.org>
32
33         * command-line.c (pre_syntax_message): Use term "syntax" instead
34         of "script".
35
36 Sat Dec  9 07:21:02 WST 2006 John Darrington <john@darrington.wattle.id.au>
37
38         * msg-ui.c (msg_ui_done): call msg_locator_done.
39
40 Sun Dec  3 11:57:00 2006  Ben Pfaff  <blp@gnu.org>
41
42         * read-line.c (read_interactive): Always read GETL_INTERACTIVE
43         lines.
44         
45 Thu Nov 16 20:46:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
46
47         * main.c: Connect debugger on errors.
48
49 Tue Nov  7 20:54:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
50
51         * command-line.c msg-ui.c msg-ui.h main.c: Added an -e
52         option to set the file for error messages.
53
54 Sat Nov  4 15:48:04 2006  Ben Pfaff  <blp@gnu.org>
55
56         * msg-ui.c (handle_msg): Only write message to terminal if
57         get_error_routing_to_terminal() returns true.
58
59 Fri Jul  7 20:03:42 2006  Ben Pfaff  <blp@gnu.org>
60
61         * main.c: (main) Register SIGABRT with bug_handler also.
62         (bug_handler) Handle SIGABRT also.
63
64 Tue Jun 27 22:44:56 2006  Ben Pfaff  <blp@gnu.org>
65
66         Fix regression in command name completion reported by John
67         Darrington.  Now completion is again state-dependent and occurs
68         only on the first line of a command.
69         
70         * main.c (main): Reading of first token in command moved into
71         cmd_parse.
72         (execute_command) Removed.
73
74         * read-line.c: [HAVE_READLINE] (readln_initialize) Postpone
75         setting rl_attempted_completion_function until readln_read.
76         [HAVE_READLINE] (readln_read) Change param from const char * to
77         enum getl_prompt_style.  Set rl_attempted_completion_function
78         based on style.
79         [HAVE_READLINE] (complete_command_name) New function.
80         [HAVE_READLINE] (dont_complete) New function.
81         [HAVE_READLINE] (command_generator) New function.
82
83 Tue Jun 27 08:23:07 2006  Ben Pfaff  <blp@gnu.org>
84
85         * automake.mk (src_ui_terminal_pspp_LDADD): Add $(LIBICONV).
86         Thanks to Jason Stover for reporting the omission.
87
88 Thu May  4 21:50:59 2006  Ben Pfaff  <blp@gnu.org>
89
90         Continue reforming procedure execution.  In this phase, move
91         procedure.c and procedure.h from src to src/data.  Update
92         makefiles and #includes accordingly.
93
94         * automake.mk: (src_ui_terminal_pspp_SOURCES) Remove
95         src/procedure.c and src/procedure.h.
96         (src_ui_terminal_pspp_LDADD) Move libexpressions.a later in list
97         to make the link work.
98
99 Wed May  3 23:09:37 2006  Ben Pfaff  <blp@gnu.org>
100
101         Continue reforming procedure execution.  In this phase, get rid of
102         many global variables, consolidating procedure execution in
103         procedure.c.  Encapsulate transformations in new "struct
104         trns_chain".  Also, change implementation of N OF CASES, FILTER,
105         and PROCESS IF from special cases to transformations.
106          
107         * main.c: (main) Use proc_init().
108         (terminate) Use proc_done().
109
110 Wed Apr 26 13:34:54 2006  Ben Pfaff  <blp@gnu.org>
111
112         Improve command name completion in readline.
113         
114         * read-line.c (readln_initialize): Set up readline to only break
115         words for completion at new-line.  That way we can complete a
116         whole command name.  Also, set rl_attempted_completion_function
117         instead of rl_completion_entry_function so we can disable
118         completing on file names, which is usually not what we want in
119         PSPP.
120
121 Wed Apr 26 13:31:00 2006  Ben Pfaff  <blp@gnu.org>
122
123         Improve the way we handle the various parsing "states".  Until now
124         we've hard-coded the state transitions in the command definition
125         file, but that's error-prone and, worse, it's redundant--we can
126         figure out what state we're in anyhow.  We can cleanly handle
127         INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
128         
129         * automake.mk (src_ui_terminal_pspp_LDADD): Move libui earlier to
130         avoid link errors.
131
132         * main.c (main): Handle new CMD_* results.
133         (execute_command) Move most per-command actions into cmd_parse().
134         (handle_error) Removed.  cmd_parse() handles command failure.
135
136 Tue Apr 25 11:08:17 2006  Ben Pfaff  <blp@gnu.org>
137
138         Finish reforming error message support.  In this phase, move
139         message.c into libpspp.
140         
141         * automake.mk: Remove message.c from sources.
142
143 Tue Apr 25 10:58:19 2006  Ben Pfaff  <blp@gnu.org>
144
145         Continue reforming error message support.  In this phase, drop
146         actual message printing from core code, substituting a callback,
147         and add the callback to each UI.  Also, move verbose_msg() into
148         its own module.
149
150         * automake.mk (src_ui_terminal_libui_a_SOURCES): Add msg-ui.c,
151         msg-ui.h.
152
153         * command-line.c: (parse_command_line) Call
154         verbose_increment_level() instead of increment err_verbosity
155         directly, now that we have a little abstraction.
156
157         * msg-ui.c: New file.
158
159         * msg-ui.h: New file.
160
161         * main.c: (main) Call msg_ui_init().  Use any_errors().
162         (terminate) Call msg_ui_done().  Make termination order more
163         rational.
164
165         * read-line.c: (readln_read) Use reset_msg_count() now we have a
166         little abstraction.
167
168 Tue Apr 25 09:39:46 2006  Ben Pfaff  <blp@gnu.org>
169
170         * main.c: (terminate) Mark static and NO_RETURN.  If called
171         recursively, which can only happen via signal, just exit instead
172         of trying to gracefully shut down.      
173
174 Fri Mar 31 10:33:37 2006  Ben Pfaff  <blp@gnu.org>
175
176         * command-line.c: (var pre_syntax_message) -d and -u are no longer
177         supported.
178
179 Sat Mar 11 14:18:39 WST 2006 John Darrington <john@darrington.wattle.id.au>
180
181         * automake.mk: Moved the pspp binary here.
182
183 Thu Mar  2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
184         
185         * Moved files from src directory