mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-02 20:04:15 +01:00
wrlib: add explicit type definition in API to allow compiler Type Checks (1/3)
When defining enums as types instead of simple enums allows to use these types at the places where the corresponding enum values are expected, then allowing the compiler to check that, potentially reporting incorrect use of values to the user. This patch adds types for the configuration fields in the RContextAttributes structure. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
96a6e4da1e
commit
eb3f0b12f8
@@ -1213,7 +1213,8 @@ int main(int argc, char **argv)
|
||||
char *back_color = "gray20";
|
||||
char *image_name = NULL;
|
||||
char *domain = "WindowMaker";
|
||||
int update = 0, cpc = 4, render_mode = RDitheredRendering, obey_user = 0;
|
||||
int update = 0, cpc = 4, obey_user = 0;
|
||||
RRenderingMode render_mode = RDitheredRendering;
|
||||
char *texture = NULL;
|
||||
int workspace = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user