forked from Imagelibrary/rtems
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.
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* COPYRIGHT (c) 1989-2011.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#define CONFIGURE_INIT
|
|
#include "system.h"
|
|
|
|
rtems_task Init(
|
|
rtems_task_argument argument
|
|
)
|
|
{
|
|
rtems_status_code status;
|
|
rtems_id id;
|
|
|
|
puts( "\n\n*** TEST 3 ***" );
|
|
|
|
status = rtems_task_create(
|
|
rtems_build_name( 'T', 'A', '1', ' ' ),
|
|
1,
|
|
RTEMS_MINIMUM_STACK_SIZE * 2,
|
|
RTEMS_DEFAULT_MODES,
|
|
RTEMS_DEFAULT_ATTRIBUTES,
|
|
&id
|
|
);
|
|
directive_failed( status, "rtems_task_create of TA1" );
|
|
|
|
status = rtems_task_start( id, Task_1, 0 );
|
|
directive_failed( status, "rtems_task_start of TA1" );
|
|
|
|
status = rtems_task_create(
|
|
rtems_build_name( 'T', 'A', '2', ' ' ),
|
|
1,
|
|
RTEMS_MINIMUM_STACK_SIZE,
|
|
RTEMS_DEFAULT_MODES,
|
|
RTEMS_DEFAULT_ATTRIBUTES,
|
|
&id
|
|
);
|
|
directive_failed( status, "rtems_task_create of TA2" );
|
|
|
|
status = rtems_task_start( id, Task_2, 0 );
|
|
directive_failed( status, "rtems_task_start of TA2" );
|
|
|
|
status = rtems_task_delete( RTEMS_SELF );
|
|
directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
|
|
}
|