diff options
author | Max Kellermann <max@duempel.org> | 2008-10-06 14:36:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-06 14:36:29 +0200 |
commit | 109a63c4d0375f12456d32e5bd58bc92748adad0 (patch) | |
tree | 5bd23f794b33aa475ca60b6b0426facafd550300 /src/wreadln.c | |
parent | 4966421e402395e12bf22f75d438504937432e3e (diff) | |
download | mpd-109a63c4d0375f12456d32e5bd58bc92748adad0.tar.gz mpd-109a63c4d0375f12456d32e5bd58bc92748adad0.tar.xz mpd-109a63c4d0375f12456d32e5bd58bc92748adad0.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | src/wreadln.c | 11 |
1 files changed, 6 insertions, 5 deletions
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; |