1 2007-08-26 Ben Pfaff <blp@gnu.org>
3 * msg-ui.c (handle_msg): Send error message to non-screen output
4 devices also, if routing to listing files is enabled. Bug
5 #17238. Thanks to John Darrington for review.
7 2007-08-23 Ben Pfaff <blp@gnu.org>
9 Implement journaling. Bug #17240.
11 * msg-ui.c (handle_msg): Send message to write_journal function
13 (dump_message): Change interface so that it takes a function
14 pointer instead of a FILE.
15 (write_stream): New function.
16 (write_journal): New function.
18 * read-line.c (welcome): Call journal_enable, so that the journal
19 is enabled by default.
21 2007-07-25 Ben Pfaff <blp@gnu.org>
23 Make interactive output go to the terminal (bug #17213), by
24 causing the UI to flush output to the user when it prompts for a
27 * command-line.c (parse_command_line): Configure interactive
28 output devices if appropriate.
30 * read-line.c (readln_read): Flush output if this is a prompt for
31 the first line of a command.
33 2007-06-06 Ben Pfaff <blp@gnu.org>
35 Adapt case sources, sinks, and clients of procedure code to the
38 * main.c: No need for fastfile_factory any more.
40 2007-02-25 Ben Pfaff <blp@gnu.org>
42 Thanks to Jason Stover for verifying that this patch helps under
45 * main.c [HAVE_IEEE_FP]: Include <ieeefp.h>.
46 (fpu_init) [HAVE_IEEE_FP]: Use setfpmask to mask floating-point
49 Sun Feb 18 13:28:26 2007 Ben Pfaff <blp@gnu.org>
51 * msg-ui.c: Don't include exit.h, because gnulib fixes up stdlib.h
52 as necessary. Do include stdlib.h, because exit.h did so for us
55 Thu Feb 8 15:07:04 2007 Ben Pfaff <blp@gnu.org>
57 * read-line.c (readln_initialize): Instead of only supporting
58 history in unix, always support history, and only support a
59 history file when $HOME is defined.
60 (readln_uninitialize): Ditto.
61 (welcome) Call readln_initialize instead of duplicating code.
63 Sun Dec 10 11:13:53 2006 Ben Pfaff <blp@gnu.org>
65 * command-line.c (pre_syntax_message): Use term "syntax" instead
68 Sat Dec 9 07:21:02 WST 2006 John Darrington <john@darrington.wattle.id.au>
70 * msg-ui.c (msg_ui_done): call msg_locator_done.
72 Sun Dec 3 11:57:00 2006 Ben Pfaff <blp@gnu.org>
74 * read-line.c (read_interactive): Always read GETL_INTERACTIVE
77 Thu Nov 16 20:46:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
79 * main.c: Connect debugger on errors.
81 Tue Nov 7 20:54:32 WST 2006 John Darrington <john@darrington.wattle.id.au>
83 * command-line.c msg-ui.c msg-ui.h main.c: Added an -e
84 option to set the file for error messages.
86 Sat Nov 4 15:48:04 2006 Ben Pfaff <blp@gnu.org>
88 * msg-ui.c (handle_msg): Only write message to terminal if
89 get_error_routing_to_terminal() returns true.
91 Fri Jul 7 20:03:42 2006 Ben Pfaff <blp@gnu.org>
93 * main.c: (main) Register SIGABRT with bug_handler also.
94 (bug_handler) Handle SIGABRT also.
96 Tue Jun 27 22:44:56 2006 Ben Pfaff <blp@gnu.org>
98 Fix regression in command name completion reported by John
99 Darrington. Now completion is again state-dependent and occurs
100 only on the first line of a command.
102 * main.c (main): Reading of first token in command moved into
104 (execute_command) Removed.
106 * read-line.c: [HAVE_READLINE] (readln_initialize) Postpone
107 setting rl_attempted_completion_function until readln_read.
108 [HAVE_READLINE] (readln_read) Change param from const char * to
109 enum getl_prompt_style. Set rl_attempted_completion_function
111 [HAVE_READLINE] (complete_command_name) New function.
112 [HAVE_READLINE] (dont_complete) New function.
113 [HAVE_READLINE] (command_generator) New function.
115 Tue Jun 27 08:23:07 2006 Ben Pfaff <blp@gnu.org>
117 * automake.mk (src_ui_terminal_pspp_LDADD): Add $(LIBICONV).
118 Thanks to Jason Stover for reporting the omission.
120 Thu May 4 21:50:59 2006 Ben Pfaff <blp@gnu.org>
122 Continue reforming procedure execution. In this phase, move
123 procedure.c and procedure.h from src to src/data. Update
124 makefiles and #includes accordingly.
126 * automake.mk: (src_ui_terminal_pspp_SOURCES) Remove
127 src/procedure.c and src/procedure.h.
128 (src_ui_terminal_pspp_LDADD) Move libexpressions.a later in list
129 to make the link work.
131 Wed May 3 23:09:37 2006 Ben Pfaff <blp@gnu.org>
133 Continue reforming procedure execution. In this phase, get rid of
134 many global variables, consolidating procedure execution in
135 procedure.c. Encapsulate transformations in new "struct
136 trns_chain". Also, change implementation of N OF CASES, FILTER,
137 and PROCESS IF from special cases to transformations.
139 * main.c: (main) Use proc_init().
140 (terminate) Use proc_done().
142 Wed Apr 26 13:34:54 2006 Ben Pfaff <blp@gnu.org>
144 Improve command name completion in readline.
146 * read-line.c (readln_initialize): Set up readline to only break
147 words for completion at new-line. That way we can complete a
148 whole command name. Also, set rl_attempted_completion_function
149 instead of rl_completion_entry_function so we can disable
150 completing on file names, which is usually not what we want in
153 Wed Apr 26 13:31:00 2006 Ben Pfaff <blp@gnu.org>
155 Improve the way we handle the various parsing "states". Until now
156 we've hard-coded the state transitions in the command definition
157 file, but that's error-prone and, worse, it's redundant--we can
158 figure out what state we're in anyhow. We can cleanly handle
159 INPUT PROGRAM and FILE TYPE with a nested command-processing loop.
161 * automake.mk (src_ui_terminal_pspp_LDADD): Move libui earlier to
164 * main.c (main): Handle new CMD_* results.
165 (execute_command) Move most per-command actions into cmd_parse().
166 (handle_error) Removed. cmd_parse() handles command failure.
168 Tue Apr 25 11:08:17 2006 Ben Pfaff <blp@gnu.org>
170 Finish reforming error message support. In this phase, move
171 message.c into libpspp.
173 * automake.mk: Remove message.c from sources.
175 Tue Apr 25 10:58:19 2006 Ben Pfaff <blp@gnu.org>
177 Continue reforming error message support. In this phase, drop
178 actual message printing from core code, substituting a callback,
179 and add the callback to each UI. Also, move verbose_msg() into
182 * automake.mk (src_ui_terminal_libui_a_SOURCES): Add msg-ui.c,
185 * command-line.c: (parse_command_line) Call
186 verbose_increment_level() instead of increment err_verbosity
187 directly, now that we have a little abstraction.
189 * msg-ui.c: New file.
191 * msg-ui.h: New file.
193 * main.c: (main) Call msg_ui_init(). Use any_errors().
194 (terminate) Call msg_ui_done(). Make termination order more
197 * read-line.c: (readln_read) Use reset_msg_count() now we have a
200 Tue Apr 25 09:39:46 2006 Ben Pfaff <blp@gnu.org>
202 * main.c: (terminate) Mark static and NO_RETURN. If called
203 recursively, which can only happen via signal, just exit instead
204 of trying to gracefully shut down.
206 Fri Mar 31 10:33:37 2006 Ben Pfaff <blp@gnu.org>
208 * command-line.c: (var pre_syntax_message) -d and -u are no longer
211 Sat Mar 11 14:18:39 WST 2006 John Darrington <john@darrington.wattle.id.au>
213 * automake.mk: Moved the pspp binary here.
215 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
217 * Moved files from src directory