changeset: 2731:ccc24daf535e
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Thu Jun 17 18:23:25 2010 -0400
files: FAQ cmd/wmii/main.c cmd/wmiir.c cmd/x11/wikeyname.c lib/libstuff/clientutil.c
description:
Use IXP_ASSERT_VERSION macro.
diff -r 43d000b40964 -r ccc24daf535e FAQ
--- a/FAQ Wed Jun 16 18:35:32 2010 -0400
+++ b/FAQ Thu Jun 17 18:23:25 2010 -0400
@@ -69,7 +69,10 @@
and there's not enough space for another row. `wmii` is forced to
compromise and leave blank space around it. If you'd rather wmii to
ignore the terminal's request, write 'incmode ignore'[5] to the /ctl
-virtual file.
+virtual file. Note, though, that this will prevent `wmii`'s normal
+behavior of trying to keep these increment gaps as small as
+possible, and will therefore result in more wasted space than
+otherwise.
10. On FreeBSD, using p9p[6], I get an error about not being able to open /dev/fd/7.
------------------------------------------------------------------------------------
diff -r 43d000b40964 -r ccc24daf535e cmd/wmii/main.c
--- a/cmd/wmii/main.c Wed Jun 16 18:35:32 2010 -0400
+++ b/cmd/wmii/main.c Thu Jun 17 18:23:25 2010 -0400
@@ -334,6 +334,8 @@
char *wmiirc;
int i;
+ IXP_ASSERT_VERSION;
+
setlocale(LC_CTYPE, "");
fmtinstall('r', errfmt);
fmtinstall('a', afmt);
diff -r 43d000b40964 -r ccc24daf535e cmd/wmiir.c
--- a/cmd/wmiir.c Wed Jun 16 18:35:32 2010 -0400
+++ b/cmd/wmiir.c Thu Jun 17 18:23:25 2010 -0400
@@ -515,6 +515,8 @@
exectab *tab;
int ret;
+ IXP_ASSERT_VERSION;
+
setlocale(LC_ALL, "");
binary = utf8locale();
diff -r 43d000b40964 -r ccc24daf535e cmd/x11/wikeyname.c
--- a/cmd/x11/wikeyname.c Wed Jun 16 18:35:32 2010 -0400
+++ b/cmd/x11/wikeyname.c Thu Jun 17 18:23:25 2010 -0400
@@ -15,7 +15,7 @@
static void
usage(void) {
- fprint(2, "usage: wikeyname\n");
+ lprint(2, "usage: wikeyname\n");
exit(1);
}
@@ -25,6 +25,9 @@
setlocale(LC_CTYPE, "");
ARGBEGIN{
+ case 'v':
+ lprint(2, version);
+ return 0;
default: usage();
}ARGEND;
diff -r 43d000b40964 -r ccc24daf535e lib/libstuff/clientutil.c
--- a/lib/libstuff/clientutil.c Wed Jun 16 18:35:32 2010 -0400
+++ b/lib/libstuff/clientutil.c Thu Jun 17 18:23:25 2010 -0400
@@ -44,6 +44,8 @@
void
client_init(char* address) {
+ IXP_ASSERT_VERSION;
+
if(address == nil)
address = getenv("WMII_ADDRESS");
if(address && *address)
Received on Thu Jun 17 2010 - 22:23:40 UTC
This archive was generated by hypermail 2.2.0 : Thu Jun 17 2010 - 22:24:04 UTC