Mercurial > minori
comparison dep/animia/src/fd/linux.cc @ 151:54744a48a7d7
last commit part 2: struct init with {} is valid syntax, actually
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 14 Nov 2023 16:31:21 -0500 |
| parents | ffa535b6d630 |
| children | 8700806c2cc2 |
comparison
equal
deleted
inserted
replaced
| 150:ffa535b6d630 | 151:54744a48a7d7 |
|---|---|
| 135 std::string name = GetFilenameFromFd(dir); | 135 std::string name = GetFilenameFromFd(dir); |
| 136 | 136 |
| 137 if (!IsRegularFile(name)) | 137 if (!IsRegularFile(name)) |
| 138 continue; | 138 continue; |
| 139 | 139 |
| 140 OpenFile file; | 140 files.push_back({pid, name}); |
| 141 file.pid = pid; | |
| 142 file.path = name; | |
| 143 | |
| 144 files.push_back(file); | |
| 145 } | 141 } |
| 146 } | 142 } |
| 147 return true; | 143 return true; |
| 148 } | 144 } |
| 149 | 145 |
