summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00070-return-multi.c
blob: d351cdb0a5f92ee94db48dcd33bd89994700ba9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

static inline long
get_tv32(struct timeval *o, struct timeval32 __user *i)
{
   return(!access_ok(VERIFY_READ, i, sizeof(*i)) ||
          (__get_user(o->tv_sec, &i->tv_sec) |
           __get_user(o->tv_usec, &i->tv_usec)));
}

static inline long
get_tv32(struct timeval *o, struct timeval32 __user *i)
{
   return(!access_ok(VERIFY_READ, i, sizeof(*i)) ||
          (__get_user(o->tv_sec, &i->tv_sec) |
           __get_user(o->tv_usec, &i->tv_usec)));
}

const char *
dcrp_license_feature(int32_t idx)
{
#define FEATURESTR(f)      \
case DCRMIB_LICENSE_ ## f: \
   return(DCRP_LICENSE_FEATURE_ ## f ## _STR)

   switch (idx)
   {
      DCRP_LICENSE_FOREACH_FEATURES(FEATURESTR);
   }

   return("");
}


static int
isValidLicenseType(int32_t idx)
{
#define CHECKFEATURE(f)    \
case DCRMIB_LICENSE_ ## f: \
   return(1)

   switch (idx)
   {
      DCRP_LICENSE_FOREACH_FEATURES(CHECKFEATURE);
   }

   return(n * foo(5));
}