-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make user status enum #1086
base: develop
Are you sure you want to change the base?
Make user status enum #1086
Conversation
646800b
to
5f32f17
Compare
5f32f17
to
255ef8b
Compare
Reviewed 9 of 9 files at r1. Comments from Reviewable |
255ef8b
to
3b44d42
Compare
Reviewed 8 of 9 files at r1. src/self.h, line 12 at r1 (raw file):
offline should be first (zero) src/self.h, line 13 at r1 (raw file):
add an INVALID canary to the end as well, see later comment src/layout/sidebar.c, line 83 at r1 (raw file):
BTW pedantic: don't create a u8 here. just drop the ?: into the array selector (you don't really need to change this) src/layout/userbadge.c, line 75 at r1 (raw file):
if >= _INVALID; then set AVAILABLE Comments from Reviewable |
Review status: 5 of 13 files reviewed at latest revision, 4 unresolved discussions. src/self.h, line 12 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/self.h, line 13 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/layout/sidebar.c, line 83 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/layout/userbadge.c, line 75 at r1 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. Comments from Reviewable |
Review status: 5 of 13 files reviewed at latest revision, 4 unresolved discussions. src/self.c, line 43 at r2 (raw file):
If you don't mind I create a conversion functions to avoid spreading that logic over all places where it used. Comments from Reviewable |
bff5e61
to
2b60d95
Compare
Reviewed 8 of 8 files at r2, 1 of 1 files at r3. Comments from Reviewable |
Reviewed 1 of 9 files at r1, 7 of 8 files at r2, 1 of 1 files at r3. src/self.c, line 43 at r2 (raw file): Previously, redmanmale (redmanmale) wrote…
do you think src/theme.c, line 563 at r3 (raw file):
do we not have an offline color defined? should we? src/theme.h, line 102 at r3 (raw file):
you can use the enum invalid value here, then it'll never go out of date src/layout/sidebar.c, line 84 at r3 (raw file):
But that's gross... the best options are: revert this change and add the U8 back, or even better, reorder the enum in svg.h to match the user status enum. If you reorder the svg.h enum, make sure you do that in it's very own commit. (Touching svg.h is dangerous, so keeping it in it's own commit will allow git bisect to work later on) Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions. src/layout/sidebar.c, line 84 at r3 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Hm, there's not such code here anymore. Comments from Reviewable |
Review status: 8 of 14 files reviewed at latest revision, 4 unresolved discussions. src/self.c, line 43 at r2 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. src/theme.c, line 563 at r3 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Nope for both. src/theme.h, line 102 at r3 (raw file): Previously, GrayHatter (Gregory Mullen) wrote…
Done. Comments from Reviewable |
Reviewed 6 of 6 files at r4. src/theme.h, line 102 at r4 (raw file):
You need to include Comments from Reviewable |
04d468d
to
19344a6
Compare
Review status: 13 of 14 files reviewed at latest revision, 5 unresolved discussions. src/theme.h, line 102 at r4 (raw file): Previously, endoffile78 (Endoffile) wrote…
Done. Comments from Reviewable |
Reviewed 1 of 8 files at r2, 5 of 6 files at r4, 1 of 1 files at r5. src/flist.c, line 114 at r5 (raw file):
this could easily go out of scope, we need to do something different here. same as sidebar.c Comments from Reviewable |
Reviewed 5 of 9 files at r1, 3 of 8 files at r2, 5 of 6 files at r4, 1 of 1 files at r5. Comments from Reviewable |
Reviewed 1 of 1 files at r5. Comments from Reviewable |
@redmanmale still waiting on a fix for my comment. |
I'm aware of this, but don't have any ideas yet how to fix it properly. |
instead of uint.
This change is