[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_declspec.h,1.5,1.6 c_grammar.y
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/cscc/c c_declspec.h,1.5,1.6 c_grammar.y,1.54,1.55 |
Date: |
Fri, 27 Jun 2003 22:41:45 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/cscc/c
In directory subversions:/tmp/cvs-serv12941/cscc/c
Modified Files:
c_declspec.h c_grammar.y
Log Message:
Inhibit the "useless keyword" warning for anonymous enumerations.
Index: c_declspec.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_declspec.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** c_declspec.h 5 Aug 2002 01:34:36 -0000 1.5
--- c_declspec.h 28 Jun 2003 02:41:42 -0000 1.6
***************
*** 47,50 ****
--- 47,51 ----
#define C_SPEC_SIGN_AND_UNSIGN (1<<16)
#define C_SPEC_INVALID_COMBO (1<<17)
+ #define C_SPEC_ENUM (1<<18)
/*
***************
*** 60,64 ****
#define C_SPEC_TYPE_COMMON \
(C_SPEC_CONST | \
! C_SPEC_VOLATILE)
#define C_SPEC_TYPE_CHANGE \
(C_SPEC_SHORT | \
--- 61,66 ----
#define C_SPEC_TYPE_COMMON \
(C_SPEC_CONST | \
! C_SPEC_VOLATILE | \
! C_SPEC_ENUM)
#define C_SPEC_TYPE_CHANGE \
(C_SPEC_SHORT | \
Index: c_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/c/c_grammar.y,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** c_grammar.y 28 Jun 2003 01:26:27 -0000 1.54
--- c_grammar.y 28 Jun 2003 02:41:42 -0000 1.55
***************
*** 1582,1585 ****
--- 1582,1586 ----
if((!CTypeIsStruct(spec.baseType) &&
!CTypeIsUnion(spec.baseType) &&
+ (spec.specifiers & C_SPEC_ENUM) == 0 &&
!CTypeIsEnum(spec.baseType)) ||
(spec.specifiers & C_SPEC_STORAGE) != 0)
***************
*** 1722,1726 ****
| K_VA_LIST { CDeclSpecSetType($$,
CTypeCreateVaList(&CCCodeGen)); }
| StructOrUnionSpecifier { CDeclSpecSetType($$, $1); }
! | EnumSpecifier { CDeclSpecSetType($$,
$1); }
| K_TYPEOF '(' Expression ')' {
/* Perform inline semantic analysis on the
expression */
--- 1723,1728 ----
| K_VA_LIST { CDeclSpecSetType($$,
CTypeCreateVaList(&CCCodeGen)); }
| StructOrUnionSpecifier { CDeclSpecSetType($$, $1); }
! | EnumSpecifier { CDeclSpecSetType($$,
$1);
!
$$.specifiers = C_SPEC_ENUM; }
| K_TYPEOF '(' Expression ')' {
/* Perform inline semantic analysis on the
expression */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/cscc/c c_declspec.h,1.5,1.6 c_grammar.y,1.54,1.55,
Rhys Weatherley <address@hidden> <=