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