| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #ifndef BIN_FILE_H_ | 5 #ifndef BIN_FILE_H_ |
| 6 #define BIN_FILE_H_ | 6 #define BIN_FILE_H_ |
| 7 | 7 |
| 8 #if defined(_WIN32) | 8 #if defined(_WIN32) |
| 9 typedef signed __int64 int64_t; | 9 typedef signed __int64 int64_t; |
| 10 typedef unsigned __int8 uint8_t; | 10 typedef unsigned __int8 uint8_t; |
| 11 #else | 11 #else |
| 12 #include <stdint.h> | 12 #include <stdint.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include <assert.h> | |
| 16 #include <stdlib.h> | 15 #include <stdlib.h> |
| 17 #include <string.h> | 16 #include <string.h> |
| 18 #include <stdio.h> | 17 #include <stdio.h> |
| 19 #include <sys/types.h> | 18 #include <sys/types.h> |
| 20 | 19 |
| 21 // Forward declaration. | 20 // Forward declaration. |
| 22 class FileHandle; | 21 class FileHandle; |
| 23 | 22 |
| 24 class File { | 23 class File { |
| 25 public: | 24 public: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 const char* name_; | 68 const char* name_; |
| 70 // FileHandle is an OS specific class which stores data about the file. | 69 // FileHandle is an OS specific class which stores data about the file. |
| 71 FileHandle* handle_; // OS specific handle for the file. | 70 FileHandle* handle_; // OS specific handle for the file. |
| 72 | 71 |
| 73 // DISALLOW_COPY_AND_ASSIGN(File). | 72 // DISALLOW_COPY_AND_ASSIGN(File). |
| 74 File(const File&); | 73 File(const File&); |
| 75 void operator=(const File&); | 74 void operator=(const File&); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 #endif // BIN_FILE_H_ | 77 #endif // BIN_FILE_H_ |
| OLD | NEW |