diff options
author | David Robillard <d@drobilla.net> | 2020-03-01 20:13:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-01 20:32:43 +0100 |
commit | 9426312710ff8b65b21c398010d7d58fb89a25ba (patch) | |
tree | b4adbd863671d6205d038bd55b97c39f8b62cbc1 | |
parent | 0d37c19ac71d153a093960eadccf791f54fc2547 (diff) | |
download | pugl-9426312710ff8b65b21c398010d7d58fb89a25ba.tar.gz pugl-9426312710ff8b65b21c398010d7d58fb89a25ba.tar.bz2 pugl-9426312710ff8b65b21c398010d7d58fb89a25ba.zip |
Cleanup: Use a consistent style for all backend definitions
-rw-r--r-- | pugl/detail/mac_cairo.m | 16 | ||||
-rw-r--r-- | pugl/detail/mac_gl.m | 16 | ||||
-rw-r--r-- | pugl/detail/win_cairo.c | 16 | ||||
-rw-r--r-- | pugl/detail/win_gl.c | 16 | ||||
-rw-r--r-- | pugl/detail/x11_cairo.c | 16 | ||||
-rw-r--r-- | pugl/detail/x11_gl.c | 16 |
6 files changed, 42 insertions, 54 deletions
diff --git a/pugl/detail/mac_cairo.m b/pugl/detail/mac_cairo.m index 40f5026..94339aa 100644 --- a/pugl/detail/mac_cairo.m +++ b/pugl/detail/mac_cairo.m @@ -144,15 +144,13 @@ puglMacCairoGetContext(PuglView* view) const PuglBackend* puglCairoBackend(void) { - static const PuglBackend backend = { - puglStubConfigure, - puglMacCairoCreate, - puglMacCairoDestroy, - puglMacCairoEnter, - puglMacCairoLeave, - puglStubResize, - puglMacCairoGetContext - }; + static const PuglBackend backend = {puglStubConfigure, + puglMacCairoCreate, + puglMacCairoDestroy, + puglMacCairoEnter, + puglMacCairoLeave, + puglStubResize, + puglMacCairoGetContext}; return &backend; } diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m index 07df642..b0d6c5e 100644 --- a/pugl/detail/mac_gl.m +++ b/pugl/detail/mac_gl.m @@ -176,15 +176,13 @@ puglGetProcAddress(const char *name) const PuglBackend* puglGlBackend(void) { - static const PuglBackend backend = { - puglStubConfigure, - puglMacGlCreate, - puglMacGlDestroy, - puglMacGlEnter, - puglMacGlLeave, - puglMacGlResize, - puglStubGetContext - }; + static const PuglBackend backend = {puglStubConfigure, + puglMacGlCreate, + puglMacGlDestroy, + puglMacGlEnter, + puglMacGlLeave, + puglMacGlResize, + puglStubGetContext}; return &backend; } diff --git a/pugl/detail/win_cairo.c b/pugl/detail/win_cairo.c index 84761a3..be0e1d1 100644 --- a/pugl/detail/win_cairo.c +++ b/pugl/detail/win_cairo.c @@ -168,15 +168,13 @@ puglWinCairoGetContext(PuglView* view) const PuglBackend* puglCairoBackend() { - static const PuglBackend backend = { - puglWinCairoConfigure, - puglWinCairoCreate, - puglWinCairoDestroy, - puglWinCairoEnter, - puglWinCairoLeave, - puglWinCairoResize, - puglWinCairoGetContext - }; + static const PuglBackend backend = {puglWinCairoConfigure, + puglWinCairoCreate, + puglWinCairoDestroy, + puglWinCairoEnter, + puglWinCairoLeave, + puglWinCairoResize, + puglWinCairoGetContext}; return &backend; } diff --git a/pugl/detail/win_gl.c b/pugl/detail/win_gl.c index d722d28..cb08831 100644 --- a/pugl/detail/win_gl.c +++ b/pugl/detail/win_gl.c @@ -296,15 +296,13 @@ puglGetProcAddress(const char* name) const PuglBackend* puglGlBackend() { - static const PuglBackend backend = { - puglWinGlConfigure, - puglWinGlCreate, - puglWinGlDestroy, - puglWinGlEnter, - puglWinGlLeave, - puglStubResize, - puglStubGetContext - }; + static const PuglBackend backend = {puglWinGlConfigure, + puglWinGlCreate, + puglWinGlDestroy, + puglWinGlEnter, + puglWinGlLeave, + puglStubResize, + puglStubGetContext}; return &backend; } diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c index 45fb28a..b084f5a 100644 --- a/pugl/detail/x11_cairo.c +++ b/pugl/detail/x11_cairo.c @@ -161,15 +161,13 @@ puglX11CairoGetContext(PuglView* view) const PuglBackend* puglCairoBackend(void) { - static const PuglBackend backend = { - puglX11StubConfigure, - puglX11CairoCreate, - puglX11CairoDestroy, - puglX11CairoEnter, - puglX11CairoLeave, - puglStubResize, - puglX11CairoGetContext - }; + static const PuglBackend backend = {puglX11StubConfigure, + puglX11CairoCreate, + puglX11CairoDestroy, + puglX11CairoEnter, + puglX11CairoLeave, + puglStubResize, + puglX11CairoGetContext}; return &backend; } diff --git a/pugl/detail/x11_gl.c b/pugl/detail/x11_gl.c index 5dd6d68..415f664 100644 --- a/pugl/detail/x11_gl.c +++ b/pugl/detail/x11_gl.c @@ -193,15 +193,13 @@ puglGetProcAddress(const char* name) const PuglBackend* puglGlBackend(void) { - static const PuglBackend backend = { - puglX11GlConfigure, - puglX11GlCreate, - puglX11GlDestroy, - puglX11GlEnter, - puglX11GlLeave, - puglStubResize, - puglStubGetContext - }; + static const PuglBackend backend = {puglX11GlConfigure, + puglX11GlCreate, + puglX11GlDestroy, + puglX11GlEnter, + puglX11GlLeave, + puglStubResize, + puglStubGetContext}; return &backend; } |