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 { }else {
if(sscanf(arg, "%u", &i) != 1 || i == 0) if(sscanf(arg, "%u", &i) != 1 || i == 0)
return Ebadvalue; 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; if(!--i) break;
} }
focus_area(new); focus_area(new);

View File

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

View File

@ -41,7 +41,7 @@ END {
for(action in actions) { for(action in actions) {
gsub("\"", "\\\"", action) gsub("\"", "\\\"", action)
print "ACTIONS=\"$ACTIONS\n" action "\"" print "ACTIONS=\"$ACTIONS\n" action "\""
print "Action-" action "() {" actions[action] "\n}" print "Action_" action "() {" actions[action] "\n}"
} }
while(readevent | getline) { while(readevent | getline) {
split($0, arg) split($0, arg)

View File

@ -61,7 +61,7 @@ set to further arguments.
.TP 2 .TP 2
.BI "Action " name .BI "Action " name
A function called A function called
.BI Action\- name .BI Action_ name
is created with is created with
.I body .I body
as its body, and as its body, and