| OLD | NEW |
| (Empty) | |
| 1 /* |
| 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 |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 /* From test_cgen/structs.idl modified Mon Aug 22 15:15:38 2011. */ |
| 8 |
| 9 #ifndef PPAPI_C_TEST_CGEN_STRUCTS_H_ |
| 10 #define PPAPI_C_TEST_CGEN_STRUCTS_H_ |
| 11 |
| 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/test_cgen/stdint.h" |
| 14 |
| 15 /** |
| 16 * @file |
| 17 * This file will test that the IDL snippet matches the comment. |
| 18 */ |
| 19 |
| 20 |
| 21 /** |
| 22 * @addtogroup Typedefs |
| 23 * @{ |
| 24 */ |
| 25 /* typedef uint8_t s_array[3]; */ |
| 26 typedef uint8_t s_array[3]; |
| 27 /** |
| 28 * @} |
| 29 */ |
| 30 |
| 31 /** |
| 32 * @addtogroup Enums |
| 33 * @{ |
| 34 */ |
| 35 /* typedef enum { esv1 = 1, esv2 = 2 } senum; */ |
| 36 typedef enum { |
| 37 esv1 = 1, |
| 38 esv2 = 2 |
| 39 } senum; |
| 40 /** |
| 41 * @} |
| 42 */ |
| 43 |
| 44 /** |
| 45 * @addtogroup Structs |
| 46 * @{ |
| 47 */ |
| 48 /* struct st1 { int32_t i; senum j; }; */ |
| 49 struct st1 { |
| 50 int32_t i; |
| 51 senum j; |
| 52 }; |
| 53 |
| 54 /* struct st2 { s_array pixels[640][480]; }; */ |
| 55 struct st2 { |
| 56 s_array pixels[640][480]; |
| 57 }; |
| 58 /** |
| 59 * @} |
| 60 */ |
| 61 |
| 62 /** |
| 63 * @addtogroup Typedefs |
| 64 * @{ |
| 65 */ |
| 66 /* typedef float (*func_t)(const s_array data); */ |
| 67 typedef float (*func_t)(const s_array data); |
| 68 |
| 69 /* typedef func_t (*findfunc_t)(const char* x); */ |
| 70 typedef func_t (*findfunc_t)(const char* x); |
| 71 /** |
| 72 * @} |
| 73 */ |
| 74 |
| 75 /** |
| 76 * @addtogroup Structs |
| 77 * @{ |
| 78 */ |
| 79 /* |
| 80 * struct sfoo { |
| 81 * s_array screen[480][640]; |
| 82 * findfunc_t myfunc; |
| 83 * }; |
| 84 */ |
| 85 struct sfoo { |
| 86 s_array screen[480][640]; |
| 87 findfunc_t myfunc; |
| 88 }; |
| 89 /** |
| 90 * @} |
| 91 */ |
| 92 |
| 93 #endif /* PPAPI_C_TEST_CGEN_STRUCTS_H_ */ |
| 94 |
| OLD | NEW |