summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-09-29 15:33:13 +0000
committersabetts <sabetts>2004-09-29 15:33:13 +0000
commit442b8d1ae2f4419ca2e2e4d76ad06ae38d18d1c7 (patch)
tree0f8560315ca338841e8d70fbcff55ad995dbbe61 /src/main.c
parent6206d6ac617f244700cebb319fd9e53636cfbd83 (diff)
downloadratpoison-442b8d1ae2f4419ca2e2e4d76ad06ae38d18d1c7.zip
* configure.in: Warn when the history header or library is not
found and compile without history support. * src/ratpoison.h: change ifdef to check for HAVE_HISTORY. * src/manage.c (get_state): change data to an unsigned char and cast data to a long* when it's used. * src/main.c (main): change ifdef to check for HAVE_HISTORY. (clean_up): likewise * src/history.c: change ifdef to check for HAVE_HISTORY. * src/events.c (receive_command): make prop_return an unsigned char. * src/editor.c (editor_history_previous): change ifdef to check for HAVE_HISTORY. (editor_history_next): likewise (editor_enter): likewise
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 1d58faf..5e87c55 100644
--- a/src/main.c
+++ b/src/main.c
@@ -623,9 +623,9 @@ main (int argc, char *argv[])
init_frame_lists ();
update_modifier_map ();
initialize_default_keybindings ();
-#ifdef HAVE_READLINE_HISTORY_H
+#ifdef HAVE_HISTORY
history_load ();
-#endif /* HAVE_READLINE_HISTORY_H */
+#endif /* HAVE_HISTORY */
/* Scan for windows */
if (screen_arg)
@@ -688,9 +688,9 @@ clean_up ()
{
int i;
-#ifdef HAVE_READLINE_HISTORY_H
+#ifdef HAVE_HISTORY
history_save ();
-#endif /* HAVE_READLINE_HISTORY_H */
+#endif /* HAVE_HISTORY */
free_keymaps ();
free_aliases ();