Before this change, a separate static method named cleanup was used to
cleanup the file. Instead, now the close method cleans up the full file
object using the platform's close function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libc/src/__support/File/file.h | ||
---|---|---|
242–244 | Aren't these equivalent to return result;? So I think you can simply change it to: return platform_close(this); |
Aren't these equivalent to return result;? So I think you can simply change it to: