Bfn improvements
This commit is contained in:
parent
1ddf581f8c
commit
2b5dfee06c
1 changed files with 3 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
||||||
#!/bin/rc
|
#!/bin/rc
|
||||||
|
rfork e
|
||||||
if(! ~ $#* 1){
|
if(! ~ $#* 1){
|
||||||
echo usage: $0 fn >[2=1]
|
echo usage: $0 fn >[2=1]
|
||||||
exit usage
|
exit usage
|
||||||
}
|
}
|
||||||
res=`{grep -n '^'$1'\(' *.c | sed -n 's/^([^:]*:[^:]*).*$/\1/gp' }
|
if(~ $#srcpath 0) srcpath=.
|
||||||
|
res=`{grep -n '^'$1'\(' $srcpath/*.c /dev/null | sed -n 's/^([^:]*:[^:]*).*$/\1/gp' }
|
||||||
ifs='
|
ifs='
|
||||||
'
|
'
|
||||||
for(i in $res)
|
for(i in $res)
|
||||||
|
|
Loading…
Reference in a new issue