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

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

Issue 7477056: Add base class for generators (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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 */
sehr (please use chromium) 2011/08/22 21:43:48 comment style.
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
OLDNEW
« ppapi/generators/test_cgen/interface.h ('K') | « ppapi/generators/test_cgen/stdint.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698