ALLEGRO_FOR_E..._ENTRY_RESULT(3alleg5)
β¨ ALLEGRO_FOR_EACH_FS_ENTRY_RESULT β¨
okay bestie, welcome to the Allegro reference manual π this one is a lil baby page but it's important, fr fr. it's all about the enum that tells al_for_each_fs_entry what to do next. sit down, grab a strawberry π, let's go.
πΈ NAME πΈ
ALLEGRO_FOR_EACH_FS_ENTRY_RESULT β the Allegro 5 API thingie that's literally just an enum of vibes for your filesystem-walking callbacks π
π SYNOPSIS π
#include <allegro5/allegro.h>
typedef enum ALLEGRO_FOR_EACH_FS_ENTRY_RESULT {
yes bestie, that's the whole synopsis, it just cuts off like that, the manpage said so, no cap π«Ά
π¦ DESCRIPTION π¦
so like. these are the return values your callbacks hand back when you're using al_for_each_fs_entry(3alleg5), and also the values that function itself can give you back. it's giving "control flow but make it cute" β¨
here's the whole roster, every single one, no skipping:
ALLEGRO_FOR_EACH_FS_ENTRY_ERRORβ oopsie, an error happened π something went wrong, that's the whole story.ALLEGRO_FOR_EACH_FS_ENTRY_OKβ the main character response π keep going like normal, and yes, do recurse down into directories. live your truth.ALLEGRO_FOR_EACH_FS_ENTRY_SKIPβ keep going, but do NOT recursively descend. you're skipping the depth, not the loop, iykyk πALLEGRO_FOR_EACH_FS_ENTRY_STOPβ that's a wrap, stop iterating and return. periodt π
ngl,OKvsSKIPis the classic bestie trap β one goes deeper, one stays on the surface. don't mix them up.
π SEE ALSO π
β SINCE β
5.1.9 β so this has been iconic since way back π
and that's the page, bestie!! π¦π take care of your filesystem walkers, they're doing their best.
Allegro reference manual Β· page ALLEGRO_FOR_E..._ENTRY_RESULT(3alleg5) Β· mwah, thanks for reading, slay β¨π
π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms