Commit Graph

4 Commits

Author SHA1 Message Date
David Silva
97aee89f9c Update date in second modernization iteration entry
- Change date from placeholder 2025-01-XX to 2025-11-07 for function prototype fixes
2025-11-07 15:37:05 +00:00
David Silva
f564a46c1c Update modernization log: add dates and cleanup whitespace
- Update date from placeholder to 2025-11-07 in MODERNIZATION_LOG.md
- Mark function prototype warnings as fixed in pending issues
- Remove trailing whitespace in daemon.c, rogue.h, state.c
- Clean up formatting in MODERNIZATION_LOG.md
2025-11-07 15:36:58 +00:00
David Silva
a0c66a6078 Fix function prototype warnings for C23 compatibility
- Add proper function prototypes: fatal(), my_exit(), set_order()
- Fix function pointer types to match call sites: void (*func)(int)
- Remove conflicting localtime() declaration in rip.c
- Fix incorrect new_item() call in state.c (remove unused argument)

Result: Zero compilation warnings, C23 compatible.

See MODERNIZATION_LOG.md for detailed analysis.
2025-11-07 15:33:46 +00:00
David Silva
b66c6659c9 Fix ncurses compatibility: remove internal structure access
- Remove direct access to curscr->_cury and curscr->_curx
- Replace with public API call move() for cursor positioning
- Fixes critical build failure on modern systems with ncurses 6.x
- Build now succeeds on macOS arm64

See MODERNIZATION_LOG.md for detailed reasoning and impact analysis.
2025-11-07 15:30:46 +00:00