summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-25 10:56:19 +0000
committersabetts <sabetts>2003-05-25 10:56:19 +0000
commite6f71abbce1ae8f8dc840b56aa4f3ccd36ebd735 (patch)
tree5270321337709993548139d4caee6be1353d94b1 /src/window.c
parentb6d1a9b5096e8e26acbe392ca44216d8573427e4 (diff)
downloadratpoison-e6f71abbce1ae8f8dc840b56aa4f3ccd36ebd735.zip
* src/window.c: do not include ctype.h
* src/ratpoison.h (str_comp): new prototype * src/messages.h (MESSAGE_PROMPT_SWITCH_TO_GROUP): new define * src/main.c: include ctype.h (str_comp): moved from window.c * src/group.h (groups_find_group_by_name): new prototype. (groups_find_group_by_number): likewise. (groups_merge): likewise (group_move_window): likewise * src/group.c: include string.h (group_new): new argument, name. All callers updated. prototype updated. (init_groups): create the first group with DEFAULT_GROUP_NAME as its name. (group_new): new argument, name. All callers updated. Prototype updated. (group_free): free the group's name. (group_add_new_group): new argument, name. All callers updated. Prototype updated. (groups_find_group_by_name): new function (groups_find_group_by_number): likewise (group_move_window): likewise (groups_merge): likewise * src/conf.h (DEFAULT_GROUP_NAME): new define * src/actions.h (cmd_gselect): new prototype (cmd_groups): likewise (cmd_gmove): likewise (cmd_gmerge): likewise (cmd_gnewbg): likewise * src/actions.c (user_commands): new commands gselect, groups, gmove, gmerge, gnewbg. (cmd_gnewbg): new function (find_group): likewise (cmd_gselect): likewise (cmd_groups): likewise (cmd_gmove): likewise (cmd_gmerge): likewise
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/window.c b/src/window.c
index 9b75dab..eff38ea 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1,5 +1,5 @@
/* functions for handling the window list
- * Copyright (C) 2000, 2001 Shawn Betts
+ * Copyright (C) 2000, 2001, 2002, 2003 Shawn Betts
*
* This file is part of ratpoison.
*
@@ -22,7 +22,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include "ratpoison.h"
@@ -207,18 +206,6 @@ find_window_number (int n)
return NULL;
}
-/* A case insensitive strncmp. */
-static int
-str_comp (char *s1, char *s2, int len)
-{
- int i;
-
- for (i=0; i<len; i++)
- if (toupper (s1[i]) != toupper (s2[i])) return 0;
-
- return 1;
-}
-
rp_window *
find_window_name (char *name)
{