Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: ppapi/generators/test_cgen/enum_typedef.idl

Issue 8161006: Allow enum values in IDL files to be simple arithmetic expressions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/generators/test_cgen/enum_typedef.h ('k') | ppapi/generators/test_lex.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/generators/test_cgen/enum_typedef.idl
===================================================================
--- ppapi/generators/test_cgen/enum_typedef.idl (revision 104195)
+++ ppapi/generators/test_cgen/enum_typedef.idl (working copy)
@@ -8,8 +8,8 @@
* This file will test that the IDL snippet matches the comment.
*/
-/* typedef enum { A = 1, B = 2, C = 3 } et1; */
-enum et1 { A=1, B=2, C=3 };
+/* typedef enum { A = 1, B = 2, C = 3, D = A + B, E = ~D } et1; */
+enum et1 { A=1, B=2, C=3, D=A+B, E=~D };
/* typedef int32_t i; */
typedef int32_t i;
« no previous file with comments | « ppapi/generators/test_cgen/enum_typedef.h ('k') | ppapi/generators/test_lex.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698