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

Side by Side Diff: ppapi/generators/test_cgen/structs.idl

Issue 7272043: Update Lexer/Parser to support '#inline' and 'label' (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/generators/test_cgen/interface.idl ('k') | ppapi/generators/test_lex.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* This file will test that the IDL snippet matches the comment */ 7 /* This file will test that the IDL snippet matches the comment */
8 8
9 /* typedef uint8_t s_array[3]; */ 9 /* typedef uint8_t s_array[3]; */
10 typedef uint8_t[3] s_array; 10 typedef uint8_t[3] s_array;
11 11
12 /* enum senum { esv1 = 1, esv2 = 2 }; */ 12 /* enum senum { esv1 = 1, esv2 = 2 }; */
13 enum senum { 13 enum senum {
14 esv1=1, 14 esv1=1,
15 esv2=2 15 esv2=2
16 }; 16 };
17 17
18 /* struct st1 { int32_t i; senum j; }; */ 18 /* struct st1 { int32_t i; senum j; }; */
19 struct st1 { 19 struct st1 {
20 int32_t i; 20 int32_t i;
21 senum j; 21 senum j;
22 }; 22 };
23 23
24 /* struct st2 { s_array pixels[640][480]; }; */ 24 /* struct st2 { s_array pixels[640][480]; }; */
25 struct st2 { 25 struct st2 {
26 s_array[640][480] pixels; 26 s_array[640][480] pixels;
27 }; 27 };
28 28
29 /* typedef float (*func_t)(s_array data); */
30 typedef float_t func_t([in] s_array data);
31
32 /* typedef func_t (*findfunc_t)(const char* x); */
33 typedef func_t findfunc_t([in] str_t x);
34
35 /* struct sfoo {
36 s_array screen[480][640];
37 findfunc_t myfunc;
38 }; */
39 struct sfoo {
40 s_array[480][640] screen;
41 findfunc_t myfunc;
42 };
OLDNEW
« no previous file with comments | « ppapi/generators/test_cgen/interface.idl ('k') | ppapi/generators/test_lex.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698