-
- Downloads
Split calc.c into separate components (dir_(mem|scan|common).c)
The architecture is explained in dir.h. The reasons for these changes is two-fold: - calc.c was too complex, it simply did too many things. 399ccdeb is a nice example of that: Should have been an easy fix, but it introduced a segfault (fixed in 0b49021a), and added a small memory leak. - This architecture features a pluggable input/output system, which should make a file export/import feature relatively simple. The current commit does not feature any user interface, so there's no feedback yet when scanning a directory. I'll get to that in a bit. I've also not tested the new scanning code very well yet, so I might have introduced some bugs.
Showing
- Makefile.am 4 additions, 2 deletionsMakefile.am
- src/browser.c 4 additions, 2 deletionssrc/browser.c
- src/calc.c 0 additions, 530 deletionssrc/calc.c
- src/dir.h 116 additions, 0 deletionssrc/dir.h
- src/dir_common.c 100 additions, 0 deletionssrc/dir_common.c
- src/dir_mem.c 209 additions, 0 deletionssrc/dir_mem.c
- src/dir_scan.c 263 additions, 0 deletionssrc/dir_scan.c
- src/global.h 6 additions, 6 deletionssrc/global.h
- src/main.c 6 additions, 5 deletionssrc/main.c
- src/util.c 20 additions, 9 deletionssrc/util.c
- src/util.h 6 additions, 0 deletionssrc/util.h
Loading
Please register or sign in to comment