REPLACEFILE don't error if file does not exist#19
Conversation
|
This might have been a good opportunity to change all the printf()s to some logging calls, and then have that use globals - rather than passing down a bool through APIs that are totally unrelated. Good old separation of concerns. Just an opinion. ; - ) |
|
That's a great idea! I'll get on that and try to have it out soon. 👍 |
|
Have a look around at some C logging APIs. E.g. just did a quick google and found this - not necessarily to use, but perhaps a good example of a simple logging API: |
870100c to
f624678
Compare
|
I made a small delegator to |
f624678 to
7c56ee8
Compare
|
Nice! I like it. I see what you mean about the indentations. Tedious ... The nice thing about log levels is differentiating between errors and other info. For instance when I now ask if you could squeeze in a -quiet (no logging (except errors?)) option into this release. ; - ) |
I knew I should have used a struct! I'll try to get to this tonight also. 👍 |
|
@sicklittlemonkey will try to get this out by the end of the week. Haven't forgotten, work has been picking up. 🙈 |
…ure out which log level each message is
|
It's a lot of work. Probably better to split this out to another issue and release the REPLACEFILE fix etc. |
|
I added support for quiet and cleaned up how we're parsing the flags. I think that barring any tweaks / bugs discovered this should cover it. 😸 |
GetProdosFile(),DeleteProdosFile()