[hackers] [wmii] Fixed typo in welcome message, thanks to turjo. Made util/compile tack the path onto files in error messages. Minor changes.

From: Kris Maglione <jg_AT_suckless.org>
Date: Fri Jun 08 18:37:27 2007

changeset: 2155:494157cc1655
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Jun 08 12:35:19 2007 -0400
summary: Fixed typo in welcome message, thanks to turjo. Made util/compile tack the path onto files in error messages. Minor changes.

diff -r 28aa1ecf36f7 -r 494157cc1655 cmd/wmii/message.c
--- a/cmd/wmii/message.c Fri Jun 01 03:42:59 2007 -0400
+++ b/cmd/wmii/message.c Fri Jun 08 12:35:19 2007 -0400
@@ -130,9 +130,8 @@ getword(Message *m) {
 #define strbcmp(str, const) (strncmp((str), (const), sizeof(const)-1))
 static int
 getbase(char **s) {
- char base[3];
         char *p;
-
+
         p = *s;
         if(!strbcmp(p, "0x")) {
                 *s += 2;
@@ -144,8 +143,7 @@ getbase(char **s) {
         }
         if(isdigit(p[0]) && isdigit(p[1]) && p[2] == 'r') {
                 *s += 3;
- strncpy(base, p, sizeof base);
- return atoi(base);
+ return 10*(p[0]-'0') + (p[1]-'0');
         }
         if(!strbcmp(p, "0")) {
                 *s += 1;
diff -r 28aa1ecf36f7 -r 494157cc1655 rc/rc.wmii.rc
--- a/rc/rc.wmii.rc Fri Jun 01 03:42:59 2007 -0400
+++ b/rc/rc.wmii.rc Fri Jun 08 12:35:19 2007 -0400
@@ -165,7 +165,7 @@ fn Key-$MODKEY-Shift-c { wmiir xwrite /c
 fn Key-$MODKEY-Shift-c { wmiir xwrite /client/sel/ctl kill }
 
 fn Key-$MODKEY-a { Action `{actionlist | wmiimenu} & }
-fn Key-$MODKEY-p { run_command `{wmiimenu <$progs_file} & }
+fn Key-$MODKEY-p { ifs=() { run_command `{wmiimenu <$progs_file} & } }
 fn Key-$MODKEY-Return { run_command $WMII_TERM & }
 fn Key-$MODKEY-t { wmiir xwrite /ctl view `{read_tags | wmiimenu} & }
 fn Key-$MODKEY-Shift-t {
diff -r 28aa1ecf36f7 -r 494157cc1655 rc/welcome.sh
--- a/rc/welcome.sh Fri Jun 01 03:42:59 2007 -0400
+++ b/rc/welcome.sh Fri Jun 08 12:35:19 2007 -0400
@@ -9,7 +9,7 @@ little bit familiar with wmii.
 
 From here on, keypresses will be described such that M-a refers to
 pressing $MODKEY and a at the same time. $MODKEY refers to a
-configuratin variable which contains the Alt key by default.
+configuration variable which contains the Alt key by default.
 
 Let's go!
 
diff -r 28aa1ecf36f7 -r 494157cc1655 util/compile
--- a/util/compile Fri Jun 01 03:42:59 2007 -0400
+++ b/util/compile Fri Jun 08 12:35:19 2007 -0400
@@ -10,7 +10,9 @@ echo CC ${BASE}$outfile
 $CC -o $outfile $CFLAGS $@ 2>$xtmp
 status=$?
 
-cat $xtmp |
+base=$(echo $BASE | sed 's/,/\\,/g')
+
+cat $xtmp | sed "s,^[^/][^:]*\.c:,$base&,g" |
         egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|is dangerous, better use|is almost always misused|: In function |: At top level:|support .long long.|use of C99 long long|ISO C forbids conversion' |
         sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
         uniq 1>&2
Received on Fri Jun 08 2007 - 18:37:27 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:17 UTC