source: rtems/testsuites/samples/iostream/init.cc @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

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/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is called from init_exec and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:  NONE
10 *
11 *  Output parameters:  NONE
12 *
13 *  COPYRIGHT (c) 1989-2008.
14 *  On-Line Applications Research Corporation (OAR).
15 *
16 *  The license and distribution terms for this file may be
17 *  found in the file LICENSE in this distribution or at
18 *  http://www.rtems.com/license/LICENSE.
19 */
20
21#define CONFIGURE_INIT
22#include "system.h"
23
24#if BSP_SMALL_MEMORY
25#include <stdio.h>
26#else
27#include <iostream>
28#endif
29
30#include <stdlib.h>
31
32rtems_task Init(
33  rtems_task_argument ignored
34)
35{
36#if BSP_SMALL_MEMORY
37  printf ("NO STDC++. MEMORY TOO SMALL");
38#else
39  std::cout << "\n\n*** HELLO WORLD TEST ***" << std::endl;
40  std::cout << "Hello World" << std::endl;
41  std::cout << "*** END OF HELLO WORLD TEST ***" << std::endl;
42#endif
43  exit( 0 );
44}
45
Note: See TracBrowser for help on using the repository browser.