Files
filament/tools
Mathias Agopian ddca795cc9 cleanup resgen code
A test for how Gemini can clean-up code. Changes:

- Configuration Struct: Global variables have been grouped into an 
AppConfig struct. This makes the program's configuration explicit and 
avoids polluting the global namespace.

- Clearer Argument Parsing: The handleArguments function now returns an 
AppConfig object, encapsulating all parsing logic and making the main 
function cleaner.

- Helper Functions: Repetitive tasks like string replacement, file I/O, 
and writing file entries have been extracted into small, well-defined 
helper functions (replaceAll, openOutputFile, readFile, etc.).

- Simplified main Function: The main function is now a high-level 
coordinator, delegating work to helper functions. This makes the overall
 program flow much easier to follow.

- Modern C++ Idioms: The code now consistently uses C++ streams 
(std::cout, std::ofstream) and std::string objects, which is more 
idiomatic than a mix of C and C++ styles.

- added short comments
2025-07-22 16:52:11 -07:00
..
2024-10-25 00:29:13 -07:00
2023-09-20 10:16:55 -07:00
2023-09-20 10:16:55 -07:00
2023-09-20 10:16:55 -07:00
2024-10-17 14:15:40 -07:00
2025-03-18 10:25:10 -07:00
2023-09-20 10:16:55 -07:00
2025-07-22 16:52:11 -07:00
2023-09-12 20:28:46 +00:00