Repository navigation
refactor(app): split the screens' input and the request results out of app.c - #62
Merged
Merged
Conversation
…f app.c app.c keeps init, history, requests and dispatch; input on the post screens, input on the other screens and the result handlers move to app_posts, app_screens and app_results, sharing app_internal.h. No behaviour change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
src/app/app.cwas 1,912 lines. It is now 393: init, screen history, the requests the platform glue performs, and the per-frame dispatch. Input on the screens that show posts (home, thread, profile, notifications) moved toapp_posts.c, input on the menu, search, compose, settings, update and image screens toapp_screens.c, and theindigo_app_*_loaded,_failedandopen_*functions the platform glue calls toapp_results.c. They shareapp_internal.h. Bodies moved verbatim apart from anindigo_app_prefix on the 24 functions that cross files. Part of the atomic-files rule;layout.cis next. Part of #53.Verification
Host:
make test(4019 checks, 0 failures under ASan and UBSan),make warningsclean andmake snapshotsrenders. The 3DS build (devkitARM) links with no warnings. Nothing ran on Azahar or a 3DS.Docs
AGENTS.md names the new files.
Changelog: none — an internal reorganisation with no change a person sees.
Checklist
CI gateandflow / conventions)🤖 Generated with Claude Code