 |
Changeset 1070
- Timestamp:
- 12/08/06 14:04:11
(2 years ago)
- Author:
- larsivi
- Message:
alias fix already committed
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1068 |
r1070 |
|
| 1 | 1 | Index: tango/io/FileScan.d |
|---|
| 2 | 2 | =================================================================== |
|---|
| 3 | | --- tango/io/FileScan.d (revision 1054) |
|---|
| | 3 | --- tango/io/FileScan.d (revision 1069) |
|---|
| 4 | 4 | +++ tango/io/FileScan.d (working copy) |
|---|
| 5 | 5 | @@ -38,28 +38,14 @@ |
|---|
| 6 | | scan ((args.length is 2) ? args[1] : ".", "d"); |
|---|
| | 6 | scan ((args.length is 2) ? args[1] : ".", ".d"); |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | Cout ("directories:").newline; |
|---|
| 9 | 9 | - scan.directories (&dirs); |
|---|
| 10 | 10 | + foreach (FilePath path; scan) |
|---|
| 11 | | + Cout (path).newline; |
|---|
| | 11 | + Cout (path).newline; |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | Cout ("files:").newline; |
|---|
| … | … | |
| 24 | 24 | - |
|---|
| 25 | 25 | - // find all files with a 'd' extension |
|---|
| 26 | | - scan ((args.length is 2) ? args[1] : ".", "d"); |
|---|
| | 26 | - scan ((args.length is 2) ? args[1] : ".", ".d"); |
|---|
| 27 | 27 | - |
|---|
| 28 | 28 | - Cout ("Directories:").newline; |
|---|
| … | … | |
| 36 | 36 | |
|---|
| 37 | 37 | class FileScan |
|---|
| 38 | | @@ -69,7 +55,7 @@ |
|---|
| 39 | | private Dependencies deps; |
|---|
| 40 | | private Filter filter; |
|---|
| 41 | | |
|---|
| 42 | | - typedef bool delegate (FilePath) Filter; |
|---|
| 43 | | + alias bool delegate (FilePath) Filter; |
|---|
| | 38 | @@ -136,32 +122,6 @@ |
|---|
| 44 | 39 | |
|---|
| 45 | 40 | /*********************************************************************** |
|---|
| 46 | 41 | |
|---|
| 47 | | @@ -133,37 +119,8 @@ |
|---|
| 48 | | scanFiles (deps, path); |
|---|
| 49 | | return this; |
|---|
| 50 | | } |
|---|
| 51 | | - |
|---|
| 52 | | /*********************************************************************** |
|---|
| 53 | | |
|---|
| 54 | | - Visit all the files found in the last scan. The delegate |
|---|
| 55 | | - should return false to terminate early. |
|---|
| | 42 | - Visit all the files found in the last scan. |
|---|
| 56 | 43 | - |
|---|
| 57 | 44 | - ***********************************************************************/ |
|---|
| … | … | |
| 66 | 53 | - /*********************************************************************** |
|---|
| 67 | 54 | - |
|---|
| 68 | | - Visit all directories found in the last scan. The delegate |
|---|
| 69 | | - should return false to terminate early. |
|---|
| | 55 | - Visit all directories found in the last scan. |
|---|
| 70 | 56 | - |
|---|
| 71 | 57 | - ***********************************************************************/ |
|---|
| … | … | |
| 83 | 69 | |
|---|
| 84 | 70 | ***********************************************************************/ |
|---|
| 85 | | @@ -190,5 +147,34 @@ |
|---|
| | 71 | @@ -188,5 +148,34 @@ |
|---|
| 86 | 72 | deps.mods ~= file; |
|---|
| 87 | 73 | } |
|---|
Download in other formats:
|
 |
 |
|
 |
Copyright © 2006-2008 Tango. All Rights Reserved. | Page Width:
Static or
Dynamic