[hackers] [wmii] Replace Action- with Action_ in wmiirc

From: Kris Maglione <jg_AT_suckless.org>
Date: Sun Feb 25 20:26:24 2007

changeset: 1954:ed20ca19765e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 25 14:25:42 2007 -0500
summary: Replace Action- with Action_ in wmiirc

diff -r 212c7c5ae963 -r ed20ca19765e area.c
--- a/area.c Sun Feb 25 14:17:56 2007 -0500
+++ b/area.c Sun Feb 25 14:25:42 2007 -0500
@@ -417,7 +417,7 @@ select_area(Area *a, char *arg) {
         }else {
                 if(sscanf(arg, "%u", &i) != 1 || i == 0)
                         return Ebadvalue;
- for(new=view->area->next; new->next && i; new=new->next)
+ for(new=view->area->next; new->next; new=new->next)
                         if(!--i) break;
         }
         focus_area(new);
diff -r 212c7c5ae963 -r ed20ca19765e rc/wmiirc
--- a/rc/wmiirc Sun Feb 25 14:17:56 2007 -0500
+++ b/rc/wmiirc Sun Feb 25 14:25:42 2007 -0500
@@ -152,7 +152,7 @@ Action() {
 Action() {
         action=\$1; shift
         if [ -n "\$action" ]; then
- Action-\$action \$@ || \$(conf_which "\$action") \$@
+ Action_\$action \$@ || \$(conf_which "\$action") \$@
         fi
 }
 
diff -r 212c7c5ae963 -r ed20ca19765e wmiiloop
--- a/wmiiloop Sun Feb 25 14:17:56 2007 -0500
+++ b/wmiiloop Sun Feb 25 14:25:42 2007 -0500
@@ -41,7 +41,7 @@ END {
         for(action in actions) {
                 gsub("\"", "\\\"", action)
                 print "ACTIONS=\"$ACTIONS\n" action "\""
- print "Action-" action "() {" actions[action] "\n}"
+ print "Action_" action "() {" actions[action] "\n}"
         }
         while(readevent | getline) {
                 split($0, arg)
diff -r 212c7c5ae963 -r ed20ca19765e wmiiloop.1
--- a/wmiiloop.1 Sun Feb 25 14:17:56 2007 -0500
+++ b/wmiiloop.1 Sun Feb 25 14:25:42 2007 -0500
@@ -61,7 +61,7 @@ set to further arguments.
 .TP 2
 .BI "Action " name
 A function called
-.BI Action\- name
+.BI Action_ name
 is created with
 .I body
 as its body, and
Received on Sun Feb 25 2007 - 20:26:24 UTC

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