Changeset ad502d18 in rtems


Ignore:
Timestamp:
Nov 9, 1999, 10:14:21 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c8cad18
Parents:
352c9b2
Message:

Renamed classes to avoid single letter class names.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/samples/cdtest/main.cc

    r352c9b2 rad502d18  
    4242static int num_inst = 0;
    4343
    44 class A {
     44class AClass {
    4545public:
    46   A(const char *p = "LOCAL" ) : ptr( p )
     46  AClass(const char *p = "LOCAL" ) : ptr( p )
    4747    {
    4848        num_inst++;
     
    6060    };
    6161
    62     virtual ~A()
     62    virtual ~AClass()
    6363    {
    6464        printf(
     
    7777};
    7878
    79 class B : public A {
     79class BClass : public AClass {
    8080public:
    81   B(const char *p = "LOCAL" ) : A( p )
     81  BClass(const char *p = "LOCAL" ) : AClass( p )
    8282    {
    8383        num_inst++;
     
    9595    };
    9696
    97     ~B()
     97    ~BClass()
    9898    {
    9999        printf(
     
    136136
    137137
    138 A foo( "GLOBAL" );
    139 B foobar( "GLOBAL" );
     138AClass foo( "GLOBAL" );
     139BClass foobar( "GLOBAL" );
    140140
    141141void
    142142cdtest(void)
    143143{
    144     A bar, blech, blah;
    145     B bleak;
     144    AClass bar, blech, blah;
     145    BClass bleak;
    146146
    147147#ifdef RTEMS_TEST_IO_STREAM
  • testsuites/samples/cdtest/main.cc

    r352c9b2 rad502d18  
    4242static int num_inst = 0;
    4343
    44 class A {
     44class AClass {
    4545public:
    46   A(const char *p = "LOCAL" ) : ptr( p )
     46  AClass(const char *p = "LOCAL" ) : ptr( p )
    4747    {
    4848        num_inst++;
     
    6060    };
    6161
    62     virtual ~A()
     62    virtual ~AClass()
    6363    {
    6464        printf(
     
    7777};
    7878
    79 class B : public A {
     79class BClass : public AClass {
    8080public:
    81   B(const char *p = "LOCAL" ) : A( p )
     81  BClass(const char *p = "LOCAL" ) : AClass( p )
    8282    {
    8383        num_inst++;
     
    9595    };
    9696
    97     ~B()
     97    ~BClass()
    9898    {
    9999        printf(
     
    136136
    137137
    138 A foo( "GLOBAL" );
    139 B foobar( "GLOBAL" );
     138AClass foo( "GLOBAL" );
     139BClass foobar( "GLOBAL" );
    140140
    141141void
    142142cdtest(void)
    143143{
    144     A bar, blech, blah;
    145     B bleak;
     144    AClass bar, blech, blah;
     145    BClass bleak;
    146146
    147147#ifdef RTEMS_TEST_IO_STREAM
Note: See TracChangeset for help on using the changeset viewer.