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

Unified Diff: ppapi/generators/test_cgen/enum_typedef.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 side-by-side diff with in-line comments
Download patch
Index: ppapi/generators/test_cgen/enum_typedef.h
===================================================================
--- ppapi/generators/test_cgen/enum_typedef.h (revision 0)
+++ ppapi/generators/test_cgen/enum_typedef.h (revision 0)
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) 2011 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* From test_cgen/enum_typedef.idl modified Mon Jul 4 18:37:59 2011. */
+
+#ifndef PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_
+#define PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_
+
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/test_cgen/stdint.h"
+
+/**
+ * @file
+ * This file will test that the IDL snippet matches the comment */
sehr (please use chromium) 2011/08/22 21:43:48 Comment style should have */ below.
+
+
+/**
+ * @addtogroup Enums
+ * @{
+ */
+/* typedef enum { A = 1, B = 2, C = 3 } et1; */
+typedef enum {
+ A = 1,
+ B = 2,
+ C = 3
+} et1;
+/**
+ * @}
+ */
+
+/**
+ * @addtogroup Typedefs
+ * @{
+ */
+/* typedef int32_t i; */
+typedef int32_t i;
+
+/* typedef int32_t i2[2]; */
+typedef int32_t i2[2];
+
+/* typedef int32_t (*i_func)(); */
+typedef int32_t (*i_func)();
+
+/* typedef int32_t (*i_func_i)(int32_t i); */
+typedef int32_t (*i_func_i)(int32_t i);
+
+/* typedef et1 et4[4]; */
+typedef et1 et4[4];
+
+/*
+ * typedef int8_t (*PPB_Audio_Callback)(const void* sample_buffer,
+ * uint32_t buffer_size_in_bytes,
+ * const void* user_data);
+ */
+typedef int8_t (*PPB_Audio_Callback)(const void* sample_buffer,
+ uint32_t buffer_size_in_bytes,
+ const void* user_data);
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_ */
+
Property changes on: ppapi/generators/test_cgen/enum_typedef.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698