| OLD | NEW |
| 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 }; |
| OLD | NEW |