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