Rev 5962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5962 | Rev 6251 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
4 | void DirFileCount(dword way) |
4 | void DirFileCount(dword way) |
5 | { |
5 | { |
6 | dword dirbuf, fcount, i, filename; |
6 | dword dirbuf, fcount, i, filename; |
7 | dword cur_file; |
7 | dword cur_file; |
8 | if (isdir(way)) |
8 | if (dir_exists(way)) |
9 | { |
9 | { |
10 | cur_file = malloc(4096); |
10 | cur_file = malloc(4096); |
11 | // In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. |
11 | // In the process of recursive descent, memory must be allocated dynamically, because the static memory -> was a bug !!! But unfortunately pass away to sacrifice speed. |
12 | GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |
12 | GetDir(#dirbuf, #fcount, way, DIRS_ONLYREAL); |