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

Side by Side Diff: utils/archive/entry.dart

Issue 10824210: Fix the archive code so that it compiles in a stricter mode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small fixes Created 8 years, 4 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
« no previous file with comments | « utils/archive/entry.c ('k') | utils/archive/entry_request.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #library("entry"); 5 #library("entry");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("archive.dart", prefix: "archive"); 8 #import("archive.dart", prefix: "archive");
9 #import("entry_request.dart"); 9 #import("entry_request.dart");
10 #import("read_request.dart", prefix: 'read'); 10 #import("read_request.dart", prefix: 'read');
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 /** If this entry is a hardlink, this is the destination. Otherwise, null. */ 61 /** If this entry is a hardlink, this is the destination. Otherwise, null. */
62 String get hardlink() => _properties[1]; 62 String get hardlink() => _properties[1];
63 set hardlink(String value) => _set(SET_HARDLINK, 1, value); 63 set hardlink(String value) => _set(SET_HARDLINK, 1, value);
64 64
65 /** The path to this entry in the archive. */ 65 /** The path to this entry in the archive. */
66 String get pathname() => _properties[2]; 66 String get pathname() => _properties[2];
67 set pathname(String value) => _set(SET_PATHNAME, 2, value); 67 set pathname(String value) => _set(SET_PATHNAME, 2, value);
68 68
69 /** The path to this entry on disk, */ 69 /** The path to this entry on disk, */
70 String get sourcepath() => _properties[3]; 70 String get sourcepath() => _properties[3];
71 set sourcepath(String value) => _set(SET_SOURCEPATH, 3, value);
72 71
73 /** If this entry is a symlink, this is the destination. Otherwise, null. */ 72 /** If this entry is a symlink, this is the destination. Otherwise, null. */
74 String get symlink() => _properties[4]; 73 String get symlink() => _properties[4];
75 set symlink(String value) => _set(SET_SYMLINK, 4, value); 74 set symlink(String value) => _set(SET_SYMLINK, 4, value);
76 75
77 /** The group identifier for this entry. */ 76 /** The group identifier for this entry. */
78 int get gid() => _properties[5]; 77 int get gid() => _properties[5];
79 set gid(int value) => _set(SET_GID, 5, value); 78 set gid(int value) => _set(SET_GID, 5, value);
80 79
81 /** The user identifier for this entry. */ 80 /** The user identifier for this entry. */
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 int get fflags_clear() => _properties[12]; 118 int get fflags_clear() => _properties[12];
120 set fflags_clear(int value) => _set(SET_FFLAGS_CLEAR, 12, value); 119 set fflags_clear(int value) => _set(SET_FFLAGS_CLEAR, 12, value);
121 120
122 /** 121 /**
123 * The textual representation of the file flags for this entry. 122 * The textual representation of the file flags for this entry.
124 * 123 *
125 * Note that if you set [fflags_set] or [fflags_clear], this value will not 124 * Note that if you set [fflags_set] or [fflags_clear], this value will not
126 * change, and vice versa. 125 * change, and vice versa.
127 */ 126 */
128 String get fflags_text() => _properties[13]; 127 String get fflags_text() => _properties[13];
129 set fflags_text(String value) => _set(SET_FFLAGS_TEXT, 13, value);
130 128
131 /** The filetype bitmask for this entry. */ 129 /** The filetype bitmask for this entry. */
132 int get filetype_mask() => _properties[14]; 130 int get filetype_mask() => _properties[14];
133 set filetype_mask(int value) => _set(SET_FILETYPE, 14, value); 131 set filetype_mask(int value) => _set(SET_FILETYPE, 14, value);
134 132
135 /** The filetype and permissions bitmask for this entry. */ 133 /** The filetype and permissions bitmask for this entry. */
136 int get mode_mask() => _properties[15]; 134 int get mode_mask() => _properties[15];
137 set mode_mask(int value) => _set(SET_MODE, 15, value); 135 set mode_mask(int value) => _set(SET_MODE, 15, value);
138 136
139 /** The size of this entry in bytes, or null if it's unset. */ 137 /** The size of this entry in bytes, or null if it's unset. */
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 class CompleteArchiveEntry extends ArchiveEntry { 328 class CompleteArchiveEntry extends ArchiveEntry {
331 /** The contents of the entry as bytes. */ 329 /** The contents of the entry as bytes. */
332 final List<int> contentBytes; 330 final List<int> contentBytes;
333 331
334 /** The contents of the entry as a string. */ 332 /** The contents of the entry as a string. */
335 String get contents() => new String.fromCharCodes(contentBytes); 333 String get contents() => new String.fromCharCodes(contentBytes);
336 334
337 CompleteArchiveEntry._(List properties, this.contentBytes) 335 CompleteArchiveEntry._(List properties, this.contentBytes)
338 : super.internal(properties, null); 336 : super.internal(properties, null);
339 } 337 }
OLDNEW
« no previous file with comments | « utils/archive/entry.c ('k') | utils/archive/entry_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698