[wiki] [sites] wiki updated
changeset: 609:582d7ab05400
tag: tip
user: StephenB <mail4stb_AT_gmail.com>
date: Sat Aug 14 19:34:11 2010 +0100
files: tools.suckless.org/dmenu/patches/dmenu-tip-tok.diff tools.suckless.org/dmenu/patches/xmms-like_pattern_matching.md
description:
updated dmenu-tip-tok.diff for dmenu r359
diff -r 15884a3f3327 -r 582d7ab05400 tools.suckless.org/dmenu/patches/dmenu-tip-tok.diff
--- a/tools.suckless.org/dmenu/patches/dmenu-tip-tok.diff Sat Aug 14 04:44:32 2010 +0100
+++ b/tools.suckless.org/dmenu/patches/dmenu-tip-tok.diff Sat Aug 14 19:34:11 2010 +0100
_AT_@ -1,6 +1,6 @@
-diff -r 8e45498dc735 dmenu.1
---- a/dmenu.1 Wed Aug 11 15:02:03 2010 +0100
-+++ b/dmenu.1 Thu Aug 12 00:24:17 2010 +0100
+diff -r ccb2b92086bf dmenu.1
+--- a/dmenu.1 Thu Aug 12 15:35:51 2010 +0100
++++ b/dmenu.1 Sat Aug 14 19:28:49 2010 +0100
_AT_@ -5,6 +5,7 @@
.B dmenu
.RB [ \-b ]
_AT_@ -19,19 +19,19 @@
.BI \-l " lines"
dmenu lists items vertically, with the given number of lines.
.TP
-diff -r 8e45498dc735 dmenu.c
---- a/dmenu.c Wed Aug 11 15:02:03 2010 +0100
-+++ b/dmenu.c Thu Aug 12 00:24:17 2010 +0100
-_AT_@ -31,7 +31,8 @@
+diff -r ccb2b92086bf dmenu.c
+--- a/dmenu.c Thu Aug 12 15:35:51 2010 +0100
++++ b/dmenu.c Sat Aug 14 19:28:49 2010 +0100
+_AT_@ -30,7 +30,8 @@
static void grabkeyboard(void);
static void insert(const char *s, ssize_t n);
static void keypress(XKeyEvent *ev);
-static void match(void);
+static void matchstr(void);
+static void matchtok(void);
- static void paste(Atom atom);
+ static size_t nextrune(int incr);
+ static void paste(void);
static void readstdin(void);
- static void run(void);
_AT_@ -61,6 +62,7 @@
static Window root, win;
_AT_@ -40,7 +40,7 @@
void
appenditem(Item *item, Item **list, Item **last) {
-_AT_@ -331,7 +333,7 @@
+_AT_@ -321,7 +323,7 @@
}
void
_AT_@ -49,10 +49,11 @@
size_t len;
Item *item, *itemend, *lexact, *lprefix, *lsubstr, *exactend, *prefixend, *substrend;
-_AT_@ -371,6 +373,33 @@
+_AT_@ -360,6 +362,33 @@
+ calcoffsets();
}
- void
++void
+matchtok(void) {
+ char buf[sizeof text];
+ char **tokv, *s;
_AT_@ -79,11 +80,10 @@
+ calcoffsets();
+}
+
-+void
- paste(Atom atom) {
- char *p, *q;
- int di;
-_AT_@ -489,7 +518,7 @@
+ size_t
+ nextrune(int incr) {
+ size_t n, len;
+_AT_@ -487,7 +516,7 @@
void
usage(void) {
_AT_@ -92,7 +92,7 @@
" [-nf color] [-sb color] [-sf color] [-v]\n", stderr);
exit(EXIT_FAILURE);
}
-_AT_@ -509,6 +538,8 @@
+_AT_@ -507,6 +536,8 @@
topbar = False;
else if(!strcmp(argv[i], "-i"))
fstrncmp = strncasecmp;
diff -r 15884a3f3327 -r 582d7ab05400 tools.suckless.org/dmenu/patches/xmms-like_pattern_matching.md
--- a/tools.suckless.org/dmenu/patches/xmms-like_pattern_matching.md Sat Aug 14 04:44:32 2010 +0100
+++ b/tools.suckless.org/dmenu/patches/xmms-like_pattern_matching.md Sat Aug 14 19:34:11 2010 +0100
_AT_@ -21,7 +21,7 @@
Download tok
------------
-* [dmenu-tip-tok.diff](dmenu-tip-tok.diff) (for hg tip (checked against 358) - **use at your own risk**)
+* [dmenu-tip-tok.diff](dmenu-tip-tok.diff) (for hg tip (checked against 359) - **use at your own risk**)
Download xmms
-------------
Received on Sat Aug 14 2010 - 20:34:17 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:25 CEST