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

Side by Side Diff: runtime/bin/test_extension_posix.cc

Issue 9599014: Add native extensions for the Dart shell to the MacOs platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <string.h> 5 #include <string.h>
6 6
7 #include "../include/dart_api.h" 7 #include "../include/dart_api.h"
8 8
9 #define EXPORT_SYMBOL __attribute__ ((visibility ("default"))) 9 #define EXPORT_SYMBOL __attribute__ ((visibility ("default")))
10 10
(...skipping 20 matching lines...) Expand all
31 const char* cname; 31 const char* cname;
32 Dart_Handle check_error; 32 Dart_Handle check_error;
33 33
34 check_error = Dart_StringToCString(name, &cname); 34 check_error = Dart_StringToCString(name, &cname);
35 if (Dart_IsError(check_error)) return NULL; 35 if (Dart_IsError(check_error)) return NULL;
36 if (!strcmp("Cat_IfNull", cname) && argc == 2) { 36 if (!strcmp("Cat_IfNull", cname) && argc == 2) {
37 return IfNull; 37 return IfNull;
38 } 38 }
39 return NULL; 39 return NULL;
40 } 40 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698