agnocast_main.c has grown to ~3500 lines and mixes several concerns, making it hard to navigate and maintain.
Proposed changes
- Split into multiple files by responsibility (e.g., topic operations, exit handling, ioctl dispatch)
- Refactor the ~590-line
agnocast_ioctl() dispatch function by extracting helpers for repeated boilerplate and splitting into sub-functions by category
- Any other cleanup opportunities found along the way
agnocast_main.chas grown to ~3500 lines and mixes several concerns, making it hard to navigate and maintain.Proposed changes
agnocast_ioctl()dispatch function by extracting helpers for repeated boilerplate and splitting into sub-functions by category