diff options
author | sabetts <sabetts> | 2001-04-15 21:25:10 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-04-15 21:25:10 +0000 |
commit | b87be52b56c7f62294c49c40a49c766b958d0809 (patch) | |
tree | 34a8eb4bae8f1ad42990457715156fe1378264f7 /src/number.c | |
parent | 58b76fc72cd88e4a6a45b12f97810e63c75e97d6 (diff) | |
download | ratpoison-b87be52b56c7f62294c49c40a49c766b958d0809.zip |
* src/number.h (add_window_number): new prototype
* src/number.c (add_window_number): renamed from
add_to_list. Dependant code updated.
* src/messages.h (MESSAGE_WINDOW_INFORMATION): new define
* src/list.h (print_window_information): new prototype
* src/list.c (print_window_information): new function
* src/actions.h (cmd_number): new prototype
Diffstat (limited to 'src/number.c')
-rw-r--r-- | src/number.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/number.c b/src/number.c index 0e33e21..8676d9d 100644 --- a/src/number.c +++ b/src/number.c @@ -69,8 +69,8 @@ find_empty_cell () return num_taken-1; } -static int -add_to_list (int n) +int +add_window_number (int n) { if (number_is_taken (n)) return 0; /* failed. */ @@ -88,7 +88,7 @@ get_unique_window_number () /* look for a unique number, and add it to the list of taken numbers. */ i = 0; - while (!add_to_list (i)) i++; + while (!add_window_number (i)) i++; return i; } |