4.115
Last change
on this file since 9b4422a2 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.1 KB
|
Line | |
---|
1 | /* Application_task |
---|
2 | * |
---|
3 | * This routine is as an example of an application task which |
---|
4 | * prints a message including its RTEMS task id. This task |
---|
5 | * then invokes exit to return to the monitor. |
---|
6 | * |
---|
7 | * Input parameters: NONE |
---|
8 | * |
---|
9 | * Output parameters: NONE |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989-2011. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.com/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifdef HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include "system.h" |
---|
24 | #include "tmacros.h" |
---|
25 | |
---|
26 | #include <stdio.h> |
---|
27 | #include <stdlib.h> |
---|
28 | |
---|
29 | rtems_task Application_task( |
---|
30 | rtems_task_argument argument |
---|
31 | ) |
---|
32 | { |
---|
33 | rtems_id tid; |
---|
34 | rtems_status_code status; |
---|
35 | |
---|
36 | status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); |
---|
37 | directive_failed( status, "ident" ); |
---|
38 | |
---|
39 | printf( |
---|
40 | "Application task was invoked with argument (%" PRIdrtems_task_argument ") " |
---|
41 | "and has id of 0x%" PRIxrtems_id "\n", argument, tid |
---|
42 | ); |
---|
43 | |
---|
44 | printf( "*** END OF SAMPLE SINGLE PROCESSOR APPLICATION ***\n" ); |
---|
45 | exit( 0 ); |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.