| 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 Jul 4 18:45:21 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 * @addtogroup Typedefs |
| 22 * @{ |
| 23 */ |
| 24 /* typedef uint8_t s_array[3]; */ |
| 25 typedef uint8_t s_array[3]; |
| 26 /** |
| 27 * @} |
| 28 */ |
| 29 |
| 30 /** |
| 31 * @addtogroup Enums |
| 32 * @{ |
| 33 */ |
| 34 /* typedef enum { esv1 = 1, esv2 = 2 } senum; */ |
| 35 typedef enum { |
| 36 esv1 = 1, |
| 37 esv2 = 2 |
| 38 } senum; |
| 39 /** |
| 40 * @} |
| 41 */ |
| 42 |
| 43 /** |
| 44 * @addtogroup Structs |
| 45 * @{ |
| 46 */ |
| 47 /* struct st1 { int32_t i; senum j; }; */ |
| 48 struct st1 { |
| 49 int32_t i; |
| 50 senum j; |
| 51 }; |
| 52 |
| 53 /* struct st2 { s_array pixels[640][480]; }; */ |
| 54 struct st2 { |
| 55 s_array pixels[640][480]; |
| 56 }; |
| 57 /** |
| 58 * @} |
| 59 */ |
| 60 |
| 61 /** |
| 62 * @addtogroup Typedefs |
| 63 * @{ |
| 64 */ |
| 65 /* typedef float (*func_t)(const s_array data); */ |
| 66 typedef float (*func_t)(const s_array data); |
| 67 |
| 68 /* typedef func_t (*findfunc_t)(const char* x); */ |
| 69 typedef func_t (*findfunc_t)(const char* x); |
| 70 /** |
| 71 * @} |
| 72 */ |
| 73 |
| 74 /** |
| 75 * @addtogroup Structs |
| 76 * @{ |
| 77 */ |
| 78 /* |
| 79 * struct sfoo { |
| 80 * s_array screen[480][640]; |
| 81 * findfunc_t myfunc; |
| 82 * }; |
| 83 */ |
| 84 struct sfoo { |
| 85 s_array screen[480][640]; |
| 86 findfunc_t myfunc; |
| 87 }; |
| 88 /** |
| 89 * @} |
| 90 */ |
| 91 |
| 92 #endif /* PPAPI_C_TEST_CGEN_STRUCTS_H_ */ |
| 93 |
| OLD | NEW |