# mkloc --- output names suitable for the source locations file
declare _search_rule = "^int,=bin=/&"
case [arg 2]
when -f # mkloc (s|c) -f [
/] {}
args 4 99 0 | change "{?*}.[~.]*$" [arg 1]"|@1|"[cd -p]/[arg 3]&
when -fi # mkloc (s|c) -fi [/]
change "{?*}.[~.]*$" [arg 1]"|@1|"[cd -p]/[arg 3]&
when -p # mkloc (s|c) -p {}
args 4 99 0 | change ?* [arg 1]"|"[arg 3]"|"[cd -p]/&
when -pi # mkloc (s|c) -pi
change ?* [arg 1]"|"[arg 3]"|"[cd -p]/&
when -t # mkloc (s|c) -t {}
args 4 99 0 | change ?* [arg 1]"|&|"[cd -p]/[arg 3]
when -ti # mkloc (s|c) -ti
change ?* [arg 1]"|&|"[cd -p]/[arg 3]
esac