read lines and place to tail of queue
| 1289 | } |
| 1290 | // read lines and place to tail of queue |
| 1291 | bool ReadLines( int lineCount ) |
| 1292 | { |
| 1293 | for ( int i=0; i<lineCount; i++ ) { |
| 1294 | if ( file->Eof() ) { |
| 1295 | if ( i==0 ) |
| 1296 | return false; |
| 1297 | break; |
| 1298 | } |
| 1299 | LVTextFileLine * line = new LVTextFileLine( file, maxLineSize ); |
| 1300 | if ( min_left>=0 ) |
| 1301 | line->align = getFormat( line ); |
| 1302 | add( line ); |
| 1303 | } |
| 1304 | return true; |
| 1305 | } |
| 1306 | inline static int absCompare( int v1, int v2 ) |
| 1307 | { |
| 1308 | if ( v1<0 ) |