[waffle] [PATCH 12/13] linux: cosmetic/coding style fixes
Emil Velikov
emil.l.velikov at gmail.com
Tue Apr 5 21:58:25 UTC 2016
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/linux/linux_platform.c | 16 +++++-----------
src/waffle/linux/linux_platform.h | 10 +++-------
2 files changed, 8 insertions(+), 18 deletions(-)
diff --git a/src/waffle/linux/linux_platform.c b/src/waffle/linux/linux_platform.c
index 92c36c1..1cdf805 100644
--- a/src/waffle/linux/linux_platform.c
+++ b/src/waffle/linux/linux_platform.c
@@ -62,16 +62,14 @@ linux_platform_destroy(struct linux_platform *self)
}
static struct linux_dl*
-linux_platform_get_dl(
- struct linux_platform *self,
- int32_t waffle_dl)
+linux_platform_get_dl(struct linux_platform *self, int32_t waffle_dl)
{
struct linux_dl **dl;
switch (waffle_dl) {
case WAFFLE_DL_OPENGL: dl = &self->libgl; break;
case WAFFLE_DL_OPENGL_ES1: dl = &self->libgles1; break;
- case WAFFLE_DL_OPENGL_ES2: dl = &self->libgles2; break;
+ case WAFFLE_DL_OPENGL_ES2:
case WAFFLE_DL_OPENGL_ES3: dl = &self->libgles2; break;
default:
assert(false);
@@ -85,9 +83,7 @@ linux_platform_get_dl(
}
bool
-linux_platform_dl_can_open(
- struct linux_platform *self,
- int32_t waffle_dl)
+linux_platform_dl_can_open(struct linux_platform *self, int32_t waffle_dl)
{
struct linux_dl *dl = NULL;
WCORE_ERROR_DISABLED({
@@ -97,10 +93,8 @@ linux_platform_dl_can_open(
}
void*
-linux_platform_dl_sym(
- struct linux_platform *self,
- int32_t waffle_dl,
- const char *name)
+linux_platform_dl_sym(struct linux_platform *self, int32_t waffle_dl,
+ const char *name)
{
struct linux_dl *dl = linux_platform_get_dl(self, waffle_dl);
if (!dl)
diff --git a/src/waffle/linux/linux_platform.h b/src/waffle/linux/linux_platform.h
index 4ba1652..b5617b4 100644
--- a/src/waffle/linux/linux_platform.h
+++ b/src/waffle/linux/linux_platform.h
@@ -38,12 +38,8 @@ linux_platform_destroy(struct linux_platform *self);
/// @copydoc waffle_dl_can_open()
bool
-linux_platform_dl_can_open(
- struct linux_platform *self,
- int32_t waffle_dl);
+linux_platform_dl_can_open(struct linux_platform *self, int32_t waffle_dl);
void*
-linux_platform_dl_sym(
- struct linux_platform *self,
- int32_t waffle_dl,
- const char *name);
+linux_platform_dl_sym(struct linux_platform *self, int32_t waffle_dl,
+ const char *name);
--
2.8.0
More information about the waffle
mailing list