代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5522136
c binding2.c
// { dg-do assemble }
// Bug: g++ screws up binding levels in a switch statement with cleanups.
struct A {
~A() { }
};
int f (int i)
{
switch (i) {
default:
A a;
}
return 1;
} // c
www.eeworm.com/read/162614/5526679
c 960327-1.c
#include
g ()
{
return '\n';
}
f ()
{
char s[] = "abcedfg012345";
char *sp = s + 12;
switch (g ())
{
case '\n':
break;
}
while (*--sp == '0')
;
sprin
www.eeworm.com/read/162614/5526944
c 930408-1.c
typedef enum foo E;
enum foo { e0, e1 };
struct {
E eval;
} s;
p()
{
abort();
}
f()
{
switch (s.eval)
{
case e0:
p();
}
}
main()
{
s.eval = e1;
f();
exit(0);
}
www.eeworm.com/read/162614/5527139
c 930111-1.c
main()
{
if (wwrite((long long) 0) != 123)
abort();
exit(0);
}
int
wwrite(long long i)
{
switch(i)
{
case 3:
case 10:
case 23:
case 28:
case 47:
return 0;
www.eeworm.com/read/162614/5527411
c 930603-3.c
f (b, c)
unsigned char *b;
int c;
{
unsigned long v = 0;
switch (c)
{
case 'd':
v = ((unsigned long)b[0] >= 9;
break;
case 'k':
v =
www.eeworm.com/read/162614/5527524
c 930719-1.c
int
f (foo, bar, com)
{
unsigned align;
if (foo)
return 0;
while (1)
{
switch (bar)
{
case 1:
if (com != 0)
return align;
*(char *) 0 = 0;
}
}
}
main ()
{
f (
www.eeworm.com/read/162614/5527903
c bug5.c
enum bar
{
one,
two
};
enum bar foo;
void bar()
{
switch (foo)
{
case one:
case two:
printf ("one to two\n");
break;
}
}
www.eeworm.com/read/162614/5528056
c 991229-1.c
static int parse (int, int);
static int parseStmt (int, int);
ejEval()
{
int state;
state = parse(8 , 0x1 );
}
static int parse(int state, int flags)
{
switch (state) {
case 8 :
case 18 :
cas
www.eeworm.com/read/162614/5528246
c 20000105-1.c
main(int na, char* argv[])
{
int wflg = 0, tflg = 0;
int dflg = 0;
exit(0);
while(1)
{
switch(argv[1][0])
{
help:
exit(0);
case 'w':
case 'W':
wflg = 1;
break;
case 't
www.eeworm.com/read/162614/5528491
c 990801-1.c
extern int getch();
extern int class();
int
token()
{
int state = 1;
while (1) {
int c=0;
c = getch();
switch (state) {
case 1: break;
case 4: break;
case 5: break;
case 6: