Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
| 8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
| 9 | 9 |
| 10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
| 11 * | 11 * |
| 12 * Dart is a class-based programming language for creating structured | 12 * Dart is a class-based programming language for creating structured |
| 13 * web applications. This reference describes the Dart embedding api, | 13 * web applications. This reference describes the Dart embedding api, |
| 14 * which is used to embed the Dart Virtual Machine within an | 14 * which is used to embed the Dart Virtual Machine within an |
| 15 * application. | 15 * application. |
| 16 * | 16 * |
| 17 * This reference is generated from the header include/dart_api.h. | 17 * This reference is generated from the header include/dart_api.h. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 #ifdef __cplusplus | 20 #ifdef __cplusplus |
| 21 #define DART_EXTERN_C extern "C" | 21 #define DART_EXTERN_C extern "C" |
| 22 #else | 22 #else |
| 23 #define DART_EXTERN_C | 23 #define DART_EXTERN_C |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #if defined(__CYGWIN__) | 26 #if defined(__CYGWIN__) |
| 27 #error Tool chain and platform not supported. | 27 #error Tool chain and platform not supported. |
| 28 #elif defined(_WIN32) | 28 #elif defined(_WIN32) |
|
Søren Gjesse
2013/06/03 10:57:32
Not part of this chhange, but shouldn't this be _M
Cutch
2013/06/03 14:52:21
I believe you're correct. It's MSVC that lacks sup
Ivan Posva
2013/06/03 15:42:52
As you can see below with all of the other int typ
| |
| 29 // Define bool if necessary. | |
| 30 #ifndef __cplusplus | |
| 31 typedef unsigned __int8 bool; | |
| 32 #endif | |
| 33 // Define integer types. | |
| 29 typedef signed __int8 int8_t; | 34 typedef signed __int8 int8_t; |
| 30 typedef signed __int16 int16_t; | 35 typedef signed __int16 int16_t; |
| 31 typedef signed __int32 int32_t; | 36 typedef signed __int32 int32_t; |
| 32 typedef signed __int64 int64_t; | 37 typedef signed __int64 int64_t; |
| 33 typedef unsigned __int8 uint8_t; | 38 typedef unsigned __int8 uint8_t; |
| 34 typedef unsigned __int16 uint16_t; | 39 typedef unsigned __int16 uint16_t; |
| 35 typedef unsigned __int32 uint32_t; | 40 typedef unsigned __int32 uint32_t; |
| 36 typedef unsigned __int64 uint64_t; | 41 typedef unsigned __int64 uint64_t; |
| 37 #if defined(DART_SHARED_LIB) | 42 #if defined(DART_SHARED_LIB) |
| 38 #define DART_EXPORT DART_EXTERN_C __declspec(dllexport) | 43 #define DART_EXPORT DART_EXTERN_C __declspec(dllexport) |
| (...skipping 2587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2626 * | 2631 * |
| 2627 * The port must have been allocated by a call to Dart_NewNativePort. | 2632 * The port must have been allocated by a call to Dart_NewNativePort. |
| 2628 * | 2633 * |
| 2629 * \param native_port_id The id of the native port to close. | 2634 * \param native_port_id The id of the native port to close. |
| 2630 * | 2635 * |
| 2631 * \return Returns true if the port was closed successfully. | 2636 * \return Returns true if the port was closed successfully. |
| 2632 */ | 2637 */ |
| 2633 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); | 2638 DART_EXPORT bool Dart_CloseNativePort(Dart_Port native_port_id); |
| 2634 | 2639 |
| 2635 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2640 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |