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

Side by Side Diff: ppapi/c/pp_stdint.h

Issue 6246117: Cleaning up and adding new docs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
OLDNEW
1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 #ifndef PPAPI_C_PP_STDINT_H_ 5 #ifndef PPAPI_C_PP_STDINT_H_
6 #define PPAPI_C_PP_STDINT_H_ 6 #define PPAPI_C_PP_STDINT_H_
7 7
8 /** 8 /**
9 * @file 9 * @file
10 * Provides a definition of C99 sized types 10 * This file provides a definition of C99 sized types
11 * across different compilers. 11 * for Microsoft compilers. These definitions only apply
12 * for trusted modules.
12 */ 13 */
13 14
14 /** 15 /**
15 * 16 *
16 * @addtogroup Typedefs 17 * @addtogroup Typedefs
17 * @{ 18 * @{
18 */ 19 */
19 #if defined(_MSC_VER) 20 #if defined(_MSC_VER)
20 21
22 /** This value represents a guaraneteed unsighed 8 bit integer */
dmichael(do not use this one) 2011/02/08 17:04:38 s/guaraneteed/guaranteed/ s/unsighed/unsigned/ (an
jond 2011/02/09 16:42:04 Done.
21 typedef unsigned char uint8_t; 23 typedef unsigned char uint8_t;
24
25 /** This value represents a guaraneteed signed 8 bit integer */
22 typedef signed char int8_t; 26 typedef signed char int8_t;
27
28 /** This value represents a guaraneteed unsigned 16 bit short */
23 typedef unsigned short uint16_t; 29 typedef unsigned short uint16_t;
30
31 /** This value represents a guaraneteed signed 16 bit short */
24 typedef short int16_t; 32 typedef short int16_t;
33
34 /** This value represents a guaraneteed unsigned 32 bit integer */
25 typedef unsigned int uint32_t; 35 typedef unsigned int uint32_t;
36
37 /** This value represents a guaraneteed signed 32 bit integer */
26 typedef int int32_t; 38 typedef int int32_t;
39
40 /** This value represents a guaraneteed signed 64 bit integer */
27 typedef __int64 int64_t; 41 typedef __int64 int64_t;
42
43 /** This value represents a guaraneteed unsigned 64 bit integer */
28 typedef unsigned __int64 uint64_t; 44 typedef unsigned __int64 uint64_t;
29 /** 45 /**
30 * @} 46 * @}
31 */ 47 */
32 #else 48 #else
33 #include <stdint.h> 49 #include <stdint.h>
34 #endif 50 #endif
35 51
36 #include <stddef.h> /* Needed for size_t. */ 52 #include <stddef.h> /* Needed for size_t. */
37 53
38 #endif /* PPAPI_C_PP_STDINT_H_ */ 54 #endif /* PPAPI_C_PP_STDINT_H_ */
39 55
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698