Annotation of embedaddon/rsync/case_N.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Allow an arbitrary sequence of case labels.
                      3:  *
                      4:  * Copyright (C) 2006-2010 Wayne Davison
                      5:  *
                      6:  * This program is free software; you can redistribute it and/or modify
                      7:  * it under the terms of the GNU General Public License as published by
                      8:  * the Free Software Foundation; either version 3 of the License, or
                      9:  * (at your option) any later version.
                     10:  *
                     11:  * This program is distributed in the hope that it will be useful,
                     12:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
                     13:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     14:  * GNU General Public License for more details.
                     15:  *
                     16:  * You should have received a copy of the GNU General Public License along
                     17:  * with this program; if not, visit the http://fsf.org website.
                     18:  */
                     19: 
                     20: /* This is included multiple times, once for every segement in a switch statement.
                     21:  * This produces the next "case N:" statement in sequence. */
                     22: 
                     23: #if !defined CASE_N_STATE_0
                     24: #define CASE_N_STATE_0
                     25:        case 0:
                     26: #elif !defined CASE_N_STATE_1
                     27: #define CASE_N_STATE_1
                     28:        case 1:
                     29: #elif !defined CASE_N_STATE_2
                     30: #define CASE_N_STATE_2
                     31:        case 2:
                     32: #elif !defined CASE_N_STATE_3
                     33: #define CASE_N_STATE_3
                     34:        case 3:
                     35: #elif !defined CASE_N_STATE_4
                     36: #define CASE_N_STATE_4
                     37:        case 4:
                     38: #elif !defined CASE_N_STATE_5
                     39: #define CASE_N_STATE_5
                     40:        case 5:
                     41: #elif !defined CASE_N_STATE_6
                     42: #define CASE_N_STATE_6
                     43:        case 6:
                     44: #elif !defined CASE_N_STATE_7
                     45: #define CASE_N_STATE_7
                     46:        case 7:
                     47: #elif !defined CASE_N_STATE_8
                     48: #define CASE_N_STATE_8
                     49:        case 8:
                     50: #elif !defined CASE_N_STATE_9
                     51: #define CASE_N_STATE_9
                     52:        case 9:
                     53: #elif !defined CASE_N_STATE_10
                     54: #define CASE_N_STATE_10
                     55:        case 10:
                     56: #elif !defined CASE_N_STATE_11
                     57: #define CASE_N_STATE_11
                     58:        case 11:
                     59: #elif !defined CASE_N_STATE_12
                     60: #define CASE_N_STATE_12
                     61:        case 12:
                     62: #elif !defined CASE_N_STATE_13
                     63: #define CASE_N_STATE_13
                     64:        case 13:
                     65: #elif !defined CASE_N_STATE_14
                     66: #define CASE_N_STATE_14
                     67:        case 14:
                     68: #elif !defined CASE_N_STATE_15
                     69: #define CASE_N_STATE_15
                     70:        case 15:
                     71: #elif !defined CASE_N_STATE_16
                     72: #define CASE_N_STATE_16
                     73:        case 16:
                     74: #else
                     75: #error Need to add more case statements!
                     76: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>