repo.or.cz
/
contiki-2.x.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reduced code size by removing one PT_WAIT_THREAD call site.
[contiki-2.x.git]
/
cpu
/
cc2430
/
segment.rules.pl
blob
213dd8fa29eb40e574dc47d986961f717d22d9f5
1
$match_me
=
pop
@ARGV
;
2
#print "searching for $match_me\n";
3
while
(<>) {
4
s/#.*$//
;
# filter out comments
5
s/^\s*//
;
# filter out leading white space
6
@F
=
split
/\s+/
;
# split on white space
7
if
((
$_
=~
m/\S\s+\S/
) && (
$match_me
=~
m/$F[1]/
)) {
8
print
$F
[
0
].
"
\n
"
;
9
exit
;
#return only first match
10
}
11
}