Fix segmentation fault, compiler errors, and modified file loading, saving, and deleting behavior
While reviewing the current branch, I identified several issues in the code. I have addressed these and would like to merge the improvements into this branch.
Changes Made:
-
Fixed a segmentation fault in tokenizer.c at line 135.
-
Updated file loading, saving, and deleting behavior by adding a check for .bas extension in the filename. If the filename already has a .bas extension it will not be appended to the filename, but if it doesn't exist, it will be appended.
-
Removed duplicate nanosleep code that was causing compiler errors.
-
Modified _dummy declaration from char *_dummy = 0; to static char _dummy = 0; to resolve compiler errors.
These changes improve code stability/program functionality and eliminate compilation issues.