4.115
Last change
on this file since 62181b21 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2010 Gedare Bloom. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.com/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #if HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <rtems/system.h> |
---|
14 | #include <rtems/score/address.h> |
---|
15 | #include <rtems/score/rbtree.h> |
---|
16 | #include <rtems/score/isr.h> |
---|
17 | |
---|
18 | /* |
---|
19 | * _RBTree_Get |
---|
20 | * |
---|
21 | * This kernel routine returns a pointer to a node taken from the |
---|
22 | * given rbtree. |
---|
23 | * |
---|
24 | * Input parameters: |
---|
25 | * the_rbtree - pointer to rbtree header |
---|
26 | * dir - specifies min (0) or max (1) |
---|
27 | * |
---|
28 | * Output parameters: |
---|
29 | * return_node - pointer to node in rbtree allocated |
---|
30 | * NULL - if no nodes available |
---|
31 | * |
---|
32 | * INTERRUPT LATENCY: |
---|
33 | * only case |
---|
34 | */ |
---|
35 | |
---|
36 | RBTree_Node *_RBTree_Get( |
---|
37 | RBTree_Control *the_rbtree, |
---|
38 | RBTree_Direction dir |
---|
39 | ) |
---|
40 | { |
---|
41 | ISR_Level level; |
---|
42 | RBTree_Node *return_node; |
---|
43 | |
---|
44 | return_node = NULL; |
---|
45 | _ISR_Disable( level ); |
---|
46 | return_node = _RBTree_Get_unprotected( the_rbtree, dir ); |
---|
47 | _ISR_Enable( level ); |
---|
48 | return return_node; |
---|
49 | } |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.