Changeset f0157b8 in rtems


Ignore:
Timestamp:
Sep 6, 2008, 3:39:58 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
0422fde5
Parents:
b9073c37
Message:

Convert to "bool".

Location:
testsuites
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/malloctest/init.c

    rb9073c37 rf0157b8  
    156156  void     *p1, *p2, *p3, *p4;
    157157  uint32_t  u1, u2;
    158   boolean   ret;
     158  bool      ret;
    159159
    160160  /*
     
    166166  puts( "heap extend - bad address" );
    167167  ret = _Protected_heap_Extend( &TestHeap, TestHeapMemory - 512, 512 );
    168   rtems_test_assert( ret == FALSE );
     168  rtems_test_assert( ret == false );
    169169
    170170  puts( "heap extend - OK" );
    171171  ret = _Protected_heap_Extend( &TestHeap, &TestHeapMemory[ 512 ], 512 );
    172   rtems_test_assert( ret == TRUE );
     172  rtems_test_assert( ret == true );
    173173}
    174174
  • testsuites/psxtests/psxcleanup/psxcleanup.c

    rb9073c37 rf0157b8  
    3535} lock_t;
    3636
    37 volatile boolean reader_cleanup_ran;
    38 volatile boolean release_read_lock_ran;
    39 volatile boolean writer_cleanup_ran;
     37volatile bool reader_cleanup_ran;
     38volatile bool release_read_lock_ran;
     39volatile bool writer_cleanup_ran;
    4040
    4141void waiting_reader_cleanup(void *arg)
  • testsuites/psxtests/psxfatal_support/init.c

    rb9073c37 rf0157b8  
    122122rtems_extension Fatal_extension(
    123123  uint32_t   source,
    124   boolean    is_internal,
     124  bool       is_internal,
    125125  uint32_t   error
    126126)
  • testsuites/psxtests/psxfatal_support/system.h

    rb9073c37 rf0157b8  
    2929rtems_extension Fatal_extension(
    3030  uint32_t   source,
    31   boolean    is_internal,
     31  bool    is_internal,
    3232  uint32_t   error
    3333);
  • testsuites/samples/capture/system.h

    rb9073c37 rf0157b8  
    3131);
    3232
    33 boolean status_code_bad(
     33bool status_code_bad(
    3434  rtems_status_code status_code
    3535);
  • testsuites/samples/capture/test1.c

    rb9073c37 rf0157b8  
    112112                char**                       argv,
    113113                rtems_monitor_command_arg_t* command_arg,
    114                 boolean                      verbose)
     114                bool                         verbose)
    115115{
    116116  rtems_status_code sc;
  • testsuites/samples/fileio/init.c

    rb9073c37 rf0157b8  
    279279 * convert a size string (like 34K or 12M) to actual byte count
    280280 */
    281 boolean fileio_str2size(const char *str,uint32_t   *res_ptr)
    282 {
    283   boolean failed = FALSE;
     281bool fileio_str2size(const char *str,uint32_t   *res_ptr)
     282{
     283  bool failed = false;
    284284  unsigned long size;
    285285  char suffix = ' ';
    286286
    287287  if (1 > sscanf(str,"%lu%c",&size,&suffix)) {
    288     failed = TRUE;
     288    failed = true;
    289289  }
    290290  else if (toupper(suffix) == 'K') {
     
    295295  }
    296296  else if (isalpha(suffix)) {
    297     failed = TRUE;
     297    failed = true;
    298298  }
    299299
     
    315315  rtems_interval start_tick,curr_tick,ticks_per_sec;
    316316  char *bufptr = NULL;
    317   boolean failed = FALSE;
     317  bool failed = false;
    318318  static const char write_test_string[] =
    319319    "The quick brown fox jumps over the lazy dog\n";
     
    342342    if (0 == strlen(fname)) {
    343343      printf("*** no filename entered, aborted\n");
    344       failed = TRUE;
     344      failed = true;
    345345    }
    346346  }
     
    381381    if (bufptr == NULL) {
    382382      printf("*** malloc failed, aborted\n");
    383       failed = TRUE;
     383      failed = true;
    384384    }
    385385  }
     
    417417    if (fd < 0) {
    418418      printf("*** file create failed, errno = %d(%s)\n",errno,strerror(errno));
    419       failed = TRUE;
     419      failed = true;
    420420    }
    421421  }
     
    441441    rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
    442442    if (n < 0) {
    443       failed = TRUE;
     443      failed = true;
    444444      printf("*** file write failed, "
    445445             "%lu bytes written, "
     
    478478  rtems_interval start_tick,curr_tick,ticks_per_sec;
    479479  char *bufptr = NULL;
    480   boolean failed = FALSE;
     480  bool failed = false;
    481481
    482482  printf(" =========================\n");
     
    501501    if (0 == strlen(fname)) {
    502502      printf("*** no filename entered, aborted\n");
    503       failed = TRUE;
     503      failed = true;
    504504    }
    505505  }
     
    527527    if (bufptr == NULL) {
    528528      printf("*** malloc failed, aborted\n");
    529       failed = TRUE;
     529      failed = true;
    530530    }
    531531  }
     
    538538    if (fd < 0) {
    539539      printf("*** file open failed, errno = %d(%s)\n",errno,strerror(errno));
    540       failed = TRUE;
     540      failed = true;
    541541    }
    542542  }
     
    558558    rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &curr_tick);
    559559    if (n < 0) {
    560       failed = TRUE;
     560      failed = true;
    561561      printf("*** file read failed, "
    562562             "%lu bytes read, "
  • testsuites/samples/unlimited/init.c

    rb9073c37 rf0157b8  
    9797}
    9898
    99 boolean status_code_bad(
     99bool status_code_bad(
    100100  rtems_status_code status_code
    101101  )
  • testsuites/samples/unlimited/system.h

    rb9073c37 rf0157b8  
    3131);
    3232
    33 boolean status_code_bad(
     33bool status_code_bad(
    3434  rtems_status_code status_code
    3535);
  • testsuites/samples/unlimited/test1.c

    rb9073c37 rf0157b8  
    2525void test1()
    2626{
    27   boolean           auto_extend;
     27  bool              auto_extend;
    2828  rtems_status_code result;
    29   uint32_t    task_count = 0;
     29  uint32_t          task_count = 0;
    3030  Objects_Information *the_information;
    3131
     
    4545    _Objects_Information_table[OBJECTS_CLASSIC_API][OBJECTS_RTEMS_TASKS];
    4646  auto_extend = the_information->auto_extend;
    47   the_information->auto_extend = FALSE;
     47  the_information->auto_extend = false;
    4848
    4949  while (task_count < MAX_TASKS)
  • testsuites/sptests/sp35/priinv.c

    rb9073c37 rf0157b8  
    113113
    114114/* The following variable triggers simulated HW activity */
    115 volatile boolean StartHw = FALSE;
     115volatile bool StartHw = false;
    116116
    117117rtems_task Medium_Exec(rtems_task_argument TaskArg)
  • testsuites/sptests/sp37/init.c

    rb9073c37 rf0157b8  
    2020{
    2121  rtems_interrupt_level level;
    22   boolean               in_isr;
     22  bool                  in_isr;
    2323
    2424  puts( "interrupt is in progress (use body)" );
     
    4444void check_isr_in_progress_inline(void)
    4545{
    46   boolean    in_isr;
     46  bool in_isr;
    4747
    4848  in_isr = rtems_interrupt_is_in_progress();
     
    6060)
    6161{
    62   boolean    in_isr;
     62  bool in_isr;
    6363
    6464  check_isr_in_progress_inline();
     
    117117)
    118118{
    119   boolean           in_isr;
     119  bool              in_isr;
    120120  rtems_status_code status;
    121121
     
    148148  rtems_status_code     status;
    149149  rtems_interrupt_level level;
    150   boolean               in_isr;
     150  bool                  in_isr;
    151151  rtems_id              timer;
    152152  int                   i;
  • testsuites/sptests/sp38/init.c

    rb9073c37 rf0157b8  
    1515#include "system.h"
    1616
    17 volatile boolean signal_sent;
    18 volatile boolean signal_processed;
     17volatile bool signal_sent;
     18volatile bool signal_processed;
    1919
    2020rtems_id main_task;
  • testsuites/sptests/sp39/init.c

    rb9073c37 rf0157b8  
    1515#include "system.h"
    1616
    17 volatile boolean case_hit;
     17volatile bool case_hit;
    1818
    1919rtems_id main_task;
  • testsuites/sptests/sp41/init.c

    rb9073c37 rf0157b8  
    1616#include "system.h"
    1717
    18 volatile boolean case_hit;
     18volatile bool case_hit;
    1919
    2020rtems_id main_task;
  • testsuites/sptests/sp42/init.c

    rb9073c37 rf0157b8  
    6464void do_test(
    6565  rtems_attribute attr,
    66   boolean         extract  /* TRUE if extract, not release */
     66  bool            extract  /* TRUE if extract, not release */
    6767)
    6868{
  • testsuites/sptests/sp43/init.c

    rb9073c37 rf0157b8  
    5151  rtems_id    id,
    5252  const char *newName,
    53   boolean     printable
     53  bool        printable
    5454)
    5555{
  • testsuites/sptests/spfatal/fatal.c

    rb9073c37 rf0157b8  
    5858rtems_extension Fatal_extension(
    5959  uint32_t   source,
    60   boolean          is_internal,
     60  bool       is_internal,
    6161  uint32_t   error
    6262)
  • testsuites/sptests/spfatal/system.h

    rb9073c37 rf0157b8  
    2929rtems_extension Fatal_extension(
    3030  uint32_t   source,
    31   boolean          is_internal,
     31  bool          is_internal,
    3232  uint32_t   error
    3333);
  • testsuites/sptests/spfatal_support/init.c

    rb9073c37 rf0157b8  
    120120rtems_extension Fatal_extension(
    121121  uint32_t   source,
    122   boolean    is_internal,
     122  bool       is_internal,
    123123  uint32_t   error
    124124)
  • testsuites/sptests/spfatal_support/system.h

    rb9073c37 rf0157b8  
    2929rtems_extension Fatal_extension(
    3030  uint32_t   source,
    31   boolean    is_internal,
     31  bool       is_internal,
    3232  uint32_t   error
    3333);
  • testsuites/support/src/test_support.c

    rb9073c37 rf0157b8  
    4545void Allocate_majority_of_workspace( int smallest )
    4646{
    47   boolean                result;
     47  bool                   result;
    4848  Heap_Information_block info;
    4949  void                   *temp;
Note: See TracChangeset for help on using the changeset viewer.