Ignore:
Timestamp:
Jan 17, 2025, 3:46:34 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
df56e25
Parents:
3b340d68
Message:

expunge fallthru keyword and replace its usages with fallthrough

Location:
tests/concurrency/channels
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrency/channels/barrier.cfa

    r3b340d68 rd96f7c4  
    6666                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    6767                        BarrierSize = ato( argv[2] );
    68             if ( Processors < 1 ) fallthru default;
     68            if ( Processors < 1 ) fallthrough default;
    6969                } // if
    7070          case 2:
    7171                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    7272                        Processors = ato( argv[1] );
    73                         if ( Processors < 1 ) fallthru default;
     73                        if ( Processors < 1 ) fallthrough default;
    7474                } // if
    7575          case 1:                                                                                       // use defaults
  • tests/concurrency/channels/churn.cfa

    r3b340d68 rd96f7c4  
    9191                if ( strcmp( argv[3], "d" ) != 0 ) {                    // default ?
    9292                        ChannelSize = ato( argv[3] );
    93                         if ( ChannelSize < 1 ) fallthru default;
     93                        if ( ChannelSize < 1 ) fallthrough default;
    9494                } // if
    9595      case 3:
    9696                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    9797                        Channels = ato( argv[2] );
    98                         if ( Channels < 1 ) fallthru default;
     98                        if ( Channels < 1 ) fallthrough default;
    9999                } // if
    100100      case 2:
    101101                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    102102                        Processors = ato( argv[1] );
    103                         if ( Processors < 1 ) fallthru default;
     103                        if ( Processors < 1 ) fallthrough default;
    104104                } // if
    105105          case 1:                                                                                       // use defaults
  • tests/concurrency/channels/contend.cfa

    r3b340d68 rd96f7c4  
    128128                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    129129                        ChannelSize = ato( argv[2] );
    130                         if ( ChannelSize < 1 ) fallthru default;
     130                        if ( ChannelSize < 1 ) fallthrough default;
    131131                } // if
    132132          case 2:
    133133                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    134134                        Processors = ato( argv[1] );
    135                         if ( Processors < 1 ) fallthru default;
     135                        if ( Processors < 1 ) fallthrough default;
    136136                } // if
    137137          case 1:                                                                                       // use defaults
  • tests/concurrency/channels/daisy_chain.cfa

    r3b340d68 rd96f7c4  
    3838                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    3939                        Tasks = ato( argv[2] );
    40             if ( Tasks < 1 ) fallthru default;
     40            if ( Tasks < 1 ) fallthrough default;
    4141                } // if
    4242          case 2:
    4343                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    4444                        Processors = ato( argv[1] );
    45                         if ( Processors < 1 ) fallthru default;
     45                        if ( Processors < 1 ) fallthrough default;
    4646                } // if
    4747          case 1:                                                                                       // use defaults
  • tests/concurrency/channels/hot_potato.cfa

    r3b340d68 rd96f7c4  
    4343                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    4444                        Tasks = ato( argv[2] );
    45             if ( Tasks < 1 ) fallthru default;
     45            if ( Tasks < 1 ) fallthrough default;
    4646                } // if
    4747          case 2:
    4848                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    4949                        Processors = ato( argv[1] );
    50                         if ( Processors < 1 ) fallthru default;
     50                        if ( Processors < 1 ) fallthrough default;
    5151                } // if
    5252          case 1:                                                                                       // use defaults
  • tests/concurrency/channels/pub_sub.cfa

    r3b340d68 rd96f7c4  
    8888                if ( strcmp( argv[2], "d" ) != 0 ) {                    // default ?
    8989                        Tasks = ato( argv[2] );
    90             if ( Tasks < 1 ) fallthru default;
     90            if ( Tasks < 1 ) fallthrough default;
    9191                } // if
    9292          case 2:
    9393                if ( strcmp( argv[1], "d" ) != 0 ) {                    // default ?
    9494                        Processors = ato( argv[1] );
    95                         if ( Processors < 1 ) fallthru default;
     95                        if ( Processors < 1 ) fallthrough default;
    9696                } // if
    9797          case 1:                                                                                       // use defaults
Note: See TracChangeset for help on using the changeset viewer.