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

Unified Diff: runtime/include/dart_api.h

Issue 10834017: Fix the definition of kIllegalPort in dart_api.h. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use a #define to avoid undefined symbols in Dart extension shared objects. Created 8 years, 5 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
« no previous file with comments | « runtime/bin/socket.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_api.h
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
index dd35dfd1f337f21f5e7fcd7238b8d037005dec69..5e260c711ee6555d2a0b1e314e68b0609e9d234d 100755
--- a/runtime/include/dart_api.h
+++ b/runtime/include/dart_api.h
@@ -805,10 +805,10 @@ DART_EXPORT void Dart_InterruptIsolate(Dart_Isolate isolate);
typedef int64_t Dart_Port;
/**
- * kIllegalPort is a port number guaranteed never to be associated
- * with a valid port.
+ * ILLEGAL_PORT is a port number guaranteed never to be associated with a valid
+ * port.
*/
-const Dart_Port kIllegalPort = 0;
+#define ILLEGAL_PORT ((Dart_Port) 0)
/**
* A message notification callback.
@@ -978,7 +978,7 @@ typedef void (*Dart_NativeMessageHandler)(Dart_Port dest_port_id,
* native port concurrently?
*
* \return If successful, returns the port id for the native port. In
- * case of error, returns kIllegalPort.
+ * case of error, returns ILLEGAL_PORT.
*/
DART_EXPORT Dart_Port Dart_NewNativePort(const char* name,
Dart_NativeMessageHandler handler,
« no previous file with comments | « runtime/bin/socket.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698