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

Side by Side Diff: src/shared/natives_to_json.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dartino 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <sys/errno.h> 6 #include <sys/errno.h>
7 7
8 #include "src/shared/assert.h" 8 #include "src/shared/assert.h"
9 9
10 #include "src/shared/names.h" 10 #include "src/shared/names.h"
11 #include "src/shared/natives.h" 11 #include "src/shared/natives.h"
12 12
13 namespace fletch { 13 namespace dartino {
14 14
15 static int Main(int argc, char** argv) { 15 static int Main(int argc, char** argv) {
16 if (argc != 2) { 16 if (argc != 2) {
17 fprintf(stderr, "Usage: %s <output_file>", argv[0]); 17 fprintf(stderr, "Usage: %s <output_file>", argv[0]);
18 return 1; 18 return 1;
19 } 19 }
20 FILE* output = fopen(argv[1], "w"); 20 FILE* output = fopen(argv[1], "w");
21 if (output == NULL) { 21 if (output == NULL) {
22 fprintf(stderr, "%s: Unable to write \"%s\": %s\n", argv[0], argv[1], 22 fprintf(stderr, "%s: Unable to write \"%s\": %s\n", argv[0], argv[1],
23 strerror(errno)); 23 strerror(errno));
(...skipping 25 matching lines...) Expand all
49 fprintf(output, "}\n"); 49 fprintf(output, "}\n");
50 50
51 if (fclose(output) != 0) { 51 if (fclose(output) != 0) {
52 fprintf(stderr, "%s: Unable to close \"%s\": %s\n", argv[0], argv[1], 52 fprintf(stderr, "%s: Unable to close \"%s\": %s\n", argv[0], argv[1],
53 strerror(errno)); 53 strerror(errno));
54 return 1; 54 return 1;
55 } 55 }
56 return 0; 56 return 0;
57 } 57 }
58 58
59 } // namespace fletch 59 } // namespace dartino
60 60
61 // Forward main calls to fletch::Main. 61 // Forward main calls to dartino::Main.
62 int main(int argc, char** argv) { return fletch::Main(argc, argv); } 62 int main(int argc, char** argv) { return dartino::Main(argc, argv); }
OLDNEW
« pkg/file/lib/file.dart ('K') | « src/shared/natives.h ('k') | src/shared/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698