Replace Action- with Action_ in wmiirc

This commit is contained in:
Kris Maglione 2007-02-25 14:25:42 -05:00
parent f02ebd6d4f
commit 59fe492d74
4 changed files with 4 additions and 4 deletions

2
area.c
View File

@ -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);

View File

@ -152,7 +152,7 @@ tagsmenu() {
Action() {
action=\$1; shift
if [ -n "\$action" ]; then
Action-\$action \$@ || \$(conf_which "\$action") \$@
Action_\$action \$@ || \$(conf_which "\$action") \$@
fi
}

View File

@ -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)

View File

@ -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