aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-08 18:52:33 +0100
committerMattias Andrée <maandree@kth.se>2021-03-08 18:52:33 +0100
commitb800ba9e60dfae5af122410b36a4a1b51b83b642 (patch)
tree495b54b344e45510401b56d3eb97b1360fc9fd34 /test.c
parentm + style fix + check memory allocation overflows (diff)
downloadlibgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.gz
libgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.bz2
libgamma-b800ba9e60dfae5af122410b36a4a1b51b83b642.tar.xz
unmark libgamma_value_of_subpixel_order as pure, unmark libgamma_value_of_connector_type as pure, fix whitespace, use goto in libgamma_value_of_{subpixel_order,connector_type} from name case to const case
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test.c b/test.c
index 2fbc897..95b8dac 100644
--- a/test.c
+++ b/test.c
@@ -687,14 +687,14 @@ test_connector_types(void)
exit(1);\
}\
type = (enum libgamma_connector_type)-1;\
- if (libgamma_value_of_connector_type(#CONST, &type) || type != CONST) { \
+ if (libgamma_value_of_connector_type(#CONST, &type) || type != CONST) {\
fprintf(stderr, "libgamma_value_of_connector_type(\"%s\") != %s\n", #CONST, #CONST);\
exit(1);\
}\
type = (enum libgamma_connector_type)-1;\
- if (libgamma_value_of_connector_type(libgamma_name_of_connector_type(CONST), &type) || type != CONST) { \
+ if (libgamma_value_of_connector_type(libgamma_name_of_connector_type(CONST), &type) || type != CONST) {\
fprintf(stderr, "libgamma_value_of_connector_type(libgamma_name_of_connector_type(%s)) != %s\n",\
- #CONST, #CONST);\
+ #CONST, #CONST); \
exit(1);\
}\
type = (enum libgamma_connector_type)-1;\
@@ -795,18 +795,18 @@ test_subpixel_orders(void)
exit(1);\
}\
order = (enum libgamma_subpixel_order)-1;\
- if (libgamma_value_of_subpixel_order(#CONST, &order) || order != CONST) { \
+ if (libgamma_value_of_subpixel_order(#CONST, &order) || order != CONST) {\
fprintf(stderr, "libgamma_value_of_subpixel_order(\"%s\") != %s\n", #CONST, #CONST);\
exit(1);\
}\
order = (enum libgamma_subpixel_order)-1;\
- if (libgamma_value_of_subpixel_order(libgamma_name_of_subpixel_order(CONST), &order) || order != CONST) { \
+ if (libgamma_value_of_subpixel_order(libgamma_name_of_subpixel_order(CONST), &order) || order != CONST) {\
fprintf(stderr, "libgamma_value_of_subpixel_order(libgamma_name_of_subpixel_order(%s)) != %s\n",\
#CONST, #CONST);\
exit(1);\
}\
order = (enum libgamma_subpixel_order)-1;\
- if (libgamma_value_of_subpixel_order(#CONST, &order) || order != CONST) { \
+ if (libgamma_value_of_subpixel_order(#CONST, &order) || order != CONST) {\
fprintf(stderr, "libgamma_value_of_subpixel_order(\"%s\") != %s\n", #CONST, #CONST);\
exit(1);\
}\