OLD | NEW |
1 // Copyright (c) 2015, the Fletch 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library old_servicec.plugins.cc; | 5 library old_servicec.plugins.cc; |
6 | 6 |
7 import 'dart:core' hide Type; | 7 import 'dart:core' hide Type; |
8 import 'dart:io' show Platform, File; | 8 import 'dart:io' show Platform, File; |
9 | 9 |
10 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; | 10 import 'package:path/path.dart' show basenameWithoutExtension, join, dirname; |
11 import 'package:servicec/util.dart' as strings; | 11 import 'package:servicec/util.dart' as strings; |
12 | 12 |
13 import 'shared.dart'; | 13 import 'shared.dart'; |
14 | 14 |
15 import '../emitter.dart'; | 15 import '../emitter.dart'; |
16 import '../primitives.dart' as primitives; | 16 import '../primitives.dart' as primitives; |
17 import '../struct_layout.dart'; | 17 import '../struct_layout.dart'; |
18 | 18 |
19 const COPYRIGHT = """ | 19 const COPYRIGHT = """ |
20 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 20 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
21 // for details. All rights reserved. Use of this source code is governed by a | 21 // for details. All rights reserved. Use of this source code is governed by a |
22 // BSD-style license that can be found in the LICENSE.md file. | 22 // BSD-style license that can be found in the LICENSE.md file. |
23 """; | 23 """; |
24 | 24 |
25 const List<String> RESOURCES = const [ | 25 const List<String> RESOURCES = const [ |
26 "struct.h", | 26 "struct.h", |
27 "struct.cc", | 27 "struct.cc", |
28 "unicode.h", | 28 "unicode.h", |
29 "unicode.cc", | 29 "unicode.cc", |
30 ]; | 30 ]; |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 write(' callback('); | 654 write(' callback('); |
655 writeReturnType(type); | 655 writeReturnType(type); |
656 writeln('(segment, 8), callback_data);'); | 656 writeln('(segment, 8), callback_data);'); |
657 } | 657 } |
658 } | 658 } |
659 writeln('}'); | 659 writeln('}'); |
660 return name; | 660 return name; |
661 }); | 661 }); |
662 } | 662 } |
663 } | 663 } |
OLD | NEW |