代码搜索:enum

找到约 10,000 项符合「enum」的源代码

代码结果 10,000
www.eeworm.com/read/240162/4582966

c enum3.c

// { dg-do assemble } // { dg-options "-Wall" } enum tristate { no = -1, maybe, yes }; tristate tristate_satisfies (register tristate const t1, register tristate const t2) { switch (t1) {
www.eeworm.com/read/240162/4583031

c enum6.c

// { dg-do run } // { dg-options "-fshort-enums" } #include enum A { a1 = 0x7fffffff }; enum B { b1 = 0x80000000 }; enum C { c1 = -1, c2 = 0x80000000 }; enum D { d1 = CHAR_MIN, d2 = CHAR
www.eeworm.com/read/240162/4583048

c enum8.c

// { dg-do run } // Bug: the switch fails on the Alpha because folding ef - 1 fails. enum foo { one=1, thirty=30 }; int f (enum foo ef) { switch (ef) { case one: case thirty: re
www.eeworm.com/read/240162/4583049

c enum4.c

// { dg-do assemble } // { dg-options "-Wall" } enum tristate { no = -1, maybe, yes }; tristate definite_tristate (int truth) { return (truth) ? yes : no; }
www.eeworm.com/read/240162/4583081

c enum7.c

// { dg-do assemble } // Yet Another testcase for signed/unsigned enums. enum A { AA = 0, AB = 1}; enum B { BA = -1, BB = 1}; void set(int a); void set(long a); void foo() { set(AA); // { dg-bogu
www.eeworm.com/read/240162/4583234

c enum5.c

// { dg-do run } enum { a = 1 }; int main(void) { int l = -1; return ! (l < a); // testcase fails if a is unsigned }
www.eeworm.com/read/240162/4587986

c enum-1.c

typedef enum { END = -1, EMPTY = (1
www.eeworm.com/read/240162/4588229

c enum-2.c

/* Copyright (C) 2000 Free Software Foundation */ /* by Alexandre Oliva */ enum foo { FOO, BAR }; /* Even though the underlying type of an enum is unspecified, the type of en
www.eeworm.com/read/238768/4609330

c f_enum.c

/* crypto/asn1/f_enum.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com).
www.eeworm.com/read/233693/4665450

h snmp_enum.h

#ifndef SNMP_ENUM_H #define SNMP_ENUM_H #ifdef __cplusplus extern "C" { #endif struct snmp_enum_list { struct snmp_enum_list *next; int value; char