changeset: 20:5237a43d2ba7
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Wed Jul 16 19:58:30 2008 +0100
files: wmi/index.md wmi/wmi-10_compile_fixes.diff
description:
added wmi-10 related pages
diff -r 95a42287be7a -r 5237a43d2ba7 wmi/index.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wmi/index.md Wed Jul 16 19:58:30 2008 +0100
_AT_@ -0,0 +1,21 @@
+WMI
+===
+wmi was the initial project which became popular, though [wmii](/wmii/) is the
+successor of wmi. The last release of wmi happned back in 2004. There are still
+some occasional users of wmi. If you like to check how the good old days felt,
+check it out, though its code sucks more unfortunately than our more
+recent projects.
+
+Download
+--------
+You can download the historic copy of
+[wmi-10](
http://code.suckless.org/dl/misc/wmi-10.tar.gz). Unfortunately there
+is no associated repository anymore. There used to be a subversion repository
+in the older days.
+
+Build
+-----
+In order to build wmi-10 on more recent systems than they were back 4
+years ago, you will need to apply [this
+patch](/wmi/wmi-10_compile_fixes.diff) by Sergey Dolgov.
+
diff -r 95a42287be7a -r 5237a43d2ba7 wmi/wmi-10_compile_fixes.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wmi/wmi-10_compile_fixes.diff Wed Jul 16 19:58:30 2008 +0100
_AT_@ -0,0 +1,107 @@
+diff -r 6b4e7138042b src/action.cpp
+--- a/src/action.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/action.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -2,6 +2,11 @@
+ // See ../LICENSE.txt for license details.
+ //
+ // $Id: action.cpp 734 2004-09-27 18:15:45Z garbeam $
++
++extern "C" {
++#include <stdlib.h> // free
++#include <string.h> // strdup
++}
+
+ #include <string>
+ #include "wmi.h"
+diff -r 6b4e7138042b src/frame.h
+--- a/src/frame.h Sat Jan 27 17:29:39 2007 +0300
++++ b/src/frame.h Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -35,7 +35,7 @@
+ void focus(Client *client);
+
+ void attach(Client *client);
+- Client *Frame::detach(Client *client);
++ Client *detach(Client *client);
+
+ virtual Window window();
+
+diff -r 6b4e7138042b src/inputbar.cpp
+--- a/src/inputbar.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/inputbar.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -31,7 +31,7 @@
+ prompt_ = 0;
+ promptCounter_ = 0;
+ isArgument_ = false;
+- entryBegin_ = entryEnd_ = 0;
++ entryBegin_ = entryEnd_ = (Sstring::iterator)0;
+ partitionBegin_ = selected_ = entryBegin_;
+ args_ = "";
+ LOGDEBUG("creating input");
+_AT_@ -233,7 +233,7 @@
+ clearPrevPartitionsStack();
+ }
+ else {
+- entryBegin_ = entryEnd_ = 0;
++ entryBegin_ = entryEnd_ = (Sstring::iterator)0;
+ partitionBegin_ = selected_ = entryBegin_;
+ text_ = text;
+ }
+diff -r 6b4e7138042b src/kernel.h
+--- a/src/kernel.h Sat Jan 27 17:29:39 2007 +0300
++++ b/src/kernel.h Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -167,7 +167,7 @@
+
+ void cleanup();
+
+- Prompt *Kernel::defaultPrompt() const;
++ Prompt *defaultPrompt() const;
+
+ void setMenuMode(bool isMenuMode);
+
+diff -r 6b4e7138042b src/logger.cpp
+--- a/src/logger.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/logger.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -2,6 +2,10 @@
+ // See ../LICENSE.txt for license details.
+ //
+ // $Id: logger.cpp 734 2004-09-27 18:15:45Z garbeam $
++
++extern "C" {
++#include <stdlib.h> // exit
++}
+
+ #include <iostream>
+
+diff -r 6b4e7138042b src/main.cpp
+--- a/src/main.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/main.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -10,6 +10,7 @@
+ #include <assert.h>
+ #include <unistd.h> // getopt stuff
+ #include <stdlib.h> // getenv stuff
++#include <string.h> // strlen
+ #include <X11/Xlib.h>
+ }
+
+diff -r 6b4e7138042b src/util.cpp
+--- a/src/util.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/util.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -5,6 +5,7 @@
+
+ extern "C" {
+ #include <unistd.h>
++#include <stdlib.h> // atoi
+ #include <X11/Xlib.h>
+ }
+
+diff -r 6b4e7138042b src/wmiremote.cpp
+--- a/src/wmiremote.cpp Sat Jan 27 17:29:39 2007 +0300
++++ b/src/wmiremote.cpp Sun Jul 13 22:21:27 2008 +0400
+_AT_@ -7,6 +7,7 @@
+
+ extern "C" {
+ #include <unistd.h> // getopt stuff
++#include <stdlib.h> // exit
+ #include <X11/Xatom.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
Received on Wed Jul 16 2008 - 21:01:33 CEST