代码搜索:enum
找到约 10,000 项符合「enum」的源代码
代码结果 10,000
www.eeworm.com/read/329537/3430899
c struct-decl-kr.c
enum {
t1,
t2
} barfoo;
struct foobar {
int ch;
char f;
} xyz;
main()
{
enum {
None, Indent_on, Indent_off
} com;
struct foobar {
int ch;
char f;
} xyz;
}
www.eeworm.com/read/440906/1777969
c template43.c
// Test matching of partial specializations.
template
class EQUAL {
public:
enum { value = 0 };
};
template
class EQUAL {
public:
enum { value = 1 };
};
int x;
int y
www.eeworm.com/read/440906/1782486
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/409921/2223732
h config.h
/* ---------------- config.h -------------- */
#ifndef CONFIG_H
#define CONFIG_H
enum DfColorTypes {
DF_STD_COLOR,
DF_SELECT_COLOR,
DF_FRAME_COLOR,
DF_HILITE_COLOR
};
enum DfGrounds
www.eeworm.com/read/386691/2569539
h eapol_sm.h
#ifndef EAPOL_SM_H
#define EAPOL_SM_H
/* IEEE Std 802.1X-2001, 8.5 */
typedef enum { FALSE = 0, TRUE = 1 } Boolean;
typedef enum { ForceUnauthorized, ForceAuthorized, Auto } PortTypes;
type
www.eeworm.com/read/366702/2871907
c rfg10.c
// { dg-do assemble }
// Bug: g++ doesn't notice the overflow in the enum values.
#include
enum COLOR
{
red,
green = ULONG_MAX,
blue // { dg-error "overflow in enumeration"
www.eeworm.com/read/366702/2871939
c template43.c
// { dg-do run }
// Test matching of partial specializations.
template
class EQUAL {
public:
enum { value = 0 };
};
template
class EQUAL {
public:
enum { value = 1 }
www.eeworm.com/read/366702/2884096
c line4.c
/* { dg-do compile } */
/* Test #line with and without macros for the line number. */
extern void abort (void);
#define L 90
#line 44
enum { i = __LINE__ };
#line L
enum { j = __LINE__ };
#line
www.eeworm.com/read/394321/8231558
h nmea.h
#ifndef __NMEA_H__
#define __NMEA_H__
typedef enum tagNMEA_BOOLEAN
{
Unknown,
True,
False
} NMEA_BOOLEAN;
typedef enum tagNMEA_EASTWEST
{
EW_Unknown = 0,
East,
West
} N