-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi file #7
Multi file #7
Conversation
- minor cleanup in clifm.c - minor changes to helpers.h
we still have a lot of work to do |
Last night I got the whole thing working: the single source file is now split into 25 (or more) c files. I'm using a central header file (includes, defines, and globals, as extern) and files organized by feature/function. I hope to finish the work today to push it to the test branch. |
this will make maintaining it a lot easier |
The only thing I observed is that, after splitting the source file, it results in a bigger binary size: 460K before splitting, 650 or so after, and there's no new code at all. It isn't significant, but... |
its prob due to all the linking |
Ok. The first version is ready: the code is now split into 30 files, including headers (starting at main.c). Take a look at it (testing branch) and tell me what you think. I'm sure much could be improved, but is a good way to start (it compiles ok and works). |
pretty nice already! |
there is still some stuff to do |
moved global variables to globals.c
and moved #defines to helpers.h