From 109a63c4d0375f12456d32e5bd58bc92748adad0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Oct 2008 14:36:29 +0200 Subject: wreadln: convert public globals to local constants Convert wrln_max_line_size and wrln_max_history_length to local constants. They have no real use outside of wreadln.c. --- src/wreadln.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/wreadln.c') diff --git a/src/wreadln.c b/src/wreadln.c index edf4f702f..f6773a7f9 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -40,11 +40,12 @@ #define KEY_BCKSPC 8 #define TAB 9 -#define WRLN_MAX_LINE_SIZE 1024 -#define WRLN_MAX_HISTORY_LENGTH 32 - -guint wrln_max_line_size = WRLN_MAX_LINE_SIZE; -guint wrln_max_history_length = WRLN_MAX_HISTORY_LENGTH; +/** max size allocated for a line */ +static const size_t wrln_max_line_size = 1024; + +/** max items stored in the history list */ +static const guint wrln_max_history_length = 32; + void *wrln_completion_callback_data = NULL; wrln_gcmp_pre_cb_t wrln_pre_completion_callback = NULL; wrln_gcmp_post_cb_t wrln_post_completion_callback = NULL; -- cgit v1.2.3