File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
NSString * m_path; /* *< File path. */
14
14
}
15
15
16
+ - (id )initWithPath : (NSString *)path ;
16
17
- (BOOL )readDirectory : (NSArray **)files ;
17
18
18
19
/* *
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ - (NSString*)readLine {
107
107
*/
108
108
- (NSString *)readLineBackwards {
109
109
110
- if (m_totalFileLength == 0 || m_currentInset == 0 && m_chunkSize == 0 ) {
110
+ if (m_totalFileLength == 0 || ( m_currentInset == 0 && m_chunkSize == 0 ) ) {
111
111
return nil ;
112
112
}
113
113
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ - (void)processSource {
115
115
// Print lines to console.
116
116
switch ([m_selectedReadMode intValue ]) {
117
117
case FORWARDS:
118
- while (line = [fileReader readLine ]) {
118
+ while (( line = [fileReader readLine ]) ) {
119
119
lineCount++;
120
120
NSLog (@" %3.d : %@ " , lineCount, line);
121
121
if (lineCount >= [m_maxNumLines intValue ]) {
@@ -124,7 +124,7 @@ - (void)processSource {
124
124
}
125
125
break ;
126
126
case BACKWARDS:
127
- while (line = [fileReader readLineBackwards ]) {
127
+ while (( line = [fileReader readLineBackwards ]) ) {
128
128
lineCount++;
129
129
NSLog (@" %3.d : %@ " , lineCount, line);
130
130
if (lineCount >= [m_maxNumLines intValue ]) {
@@ -141,15 +141,15 @@ - (void)processSource {
141
141
// Do not print lines to console.
142
142
switch ([m_selectedReadMode intValue ]) {
143
143
case FORWARDS:
144
- while (line = [fileReader readLine ]) {
144
+ while (( line = [fileReader readLine ]) ) {
145
145
lineCount++;
146
146
if (lineCount >= [m_maxNumLines intValue ]) {
147
147
break ;
148
148
}
149
149
}
150
150
break ;
151
151
case BACKWARDS:
152
- while (line = [fileReader readLineBackwards ]) {
152
+ while (( line = [fileReader readLineBackwards ]) ) {
153
153
lineCount++;
154
154
if (lineCount >= [m_maxNumLines intValue ]) {
155
155
break ;
You can’t perform that action at this time.
0 commit comments