neuwld

patched neuwld library (tracked)
git clone https://git.daat.foo/neuwld.git
Log | Files | Refs | README | LICENSE

commit b8b5c06daf99ccd1b1641d55365b2dedd21f26c6
parent aa445296a599019e63b08bc866c0a8e95fa6fa3b
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 24 Jul 2013 22:20:49 -0700

Be explicit about staticness

Diffstat:
Mintel.c | 16++++++++--------
Mpixman.c | 4++--
Mwayland.c | 25++++++++++++++-----------
3 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/intel.c b/intel.c @@ -124,8 +124,8 @@ struct wld_drawable * wld_intel_create_drawable return &intel->drm.base; } -void intel_fill_rectangle(struct wld_drawable * drawable, uint32_t color, - pixman_rectangle16_t * rectangle) +static void intel_fill_rectangle(struct wld_drawable * drawable, uint32_t color, + pixman_rectangle16_t * rectangle) { struct intel_drawable * intel = (void *) drawable; @@ -135,10 +135,10 @@ void intel_fill_rectangle(struct wld_drawable * drawable, uint32_t color, rectangle->y + rectangle->height, color); } -void intel_draw_text_utf8(struct wld_drawable * drawable, - struct font * font, uint32_t color, - int32_t x, int32_t y, - const char * text, int32_t length) +static void intel_draw_text_utf8(struct wld_drawable * drawable, + struct font * font, uint32_t color, + int32_t x, int32_t y, + const char * text, int32_t length) { struct intel_drawable * intel = (void *) drawable; int ret; @@ -199,14 +199,14 @@ void intel_draw_text_utf8(struct wld_drawable * drawable, } } -void intel_flush(struct wld_drawable * drawable) +static void intel_flush(struct wld_drawable * drawable) { struct intel_drawable * intel = (void *) drawable; intel_batch_flush(&intel->context->batch); } -void intel_destroy(struct wld_drawable * drawable) +static void intel_destroy(struct wld_drawable * drawable) { struct intel_drawable * intel = (void *) drawable; drm_intel_bo_unreference(intel->bo); diff --git a/pixman.c b/pixman.c @@ -239,11 +239,11 @@ static void pixman_draw_text_utf8(struct wld_drawable * drawable, pixman_image_unref(solid); } -void pixman_flush(struct wld_drawable * drawable) +static void pixman_flush(struct wld_drawable * drawable) { } -void pixman_destroy(struct wld_drawable * drawable) +static void pixman_destroy(struct wld_drawable * drawable) { struct pixman_drawable * pixman = (void *) drawable; diff --git a/wayland.c b/wayland.c @@ -254,17 +254,20 @@ void sync_done(void * data, struct wl_callback * callback, uint32_t msecs) *done = true; } -void wayland_fill_rectangle(struct wld_drawable * drawable, uint32_t color, - pixman_rectangle16_t * rectangle) + +static void wayland_fill_rectangle(struct wld_drawable * drawable, + uint32_t color, + pixman_rectangle16_t * rectangle) { struct wayland_drawable * wayland = (void *) drawable; wld_fill_rectangle(BACKBUF(wayland).drawable, color, rectangle); } -void wayland_fill_rectangles(struct wld_drawable * drawable, uint32_t color, - pixman_rectangle16_t * rectangles, - uint32_t num_rectangles) +static void wayland_fill_rectangles(struct wld_drawable * drawable, + uint32_t color, + pixman_rectangle16_t * rectangles, + uint32_t num_rectangles) { struct wayland_drawable * wayland = (void *) drawable; @@ -272,10 +275,10 @@ void wayland_fill_rectangles(struct wld_drawable * drawable, uint32_t color, rectangles, num_rectangles); } -void wayland_draw_text_utf8(struct wld_drawable * drawable, - struct font * font, uint32_t color, - int32_t x, int32_t y, - const char * text, int32_t length) +static void wayland_draw_text_utf8(struct wld_drawable * drawable, + struct font * font, uint32_t color, + int32_t x, int32_t y, + const char * text, int32_t length) { struct wayland_drawable * wayland = (void *) drawable; @@ -283,7 +286,7 @@ void wayland_draw_text_utf8(struct wld_drawable * drawable, x, y, text, length); } -void wayland_flush(struct wld_drawable * drawable) +static void wayland_flush(struct wld_drawable * drawable) { struct wayland_drawable * wayland = (void *) drawable; @@ -293,7 +296,7 @@ void wayland_flush(struct wld_drawable * drawable) wayland->front_buffer ^= 1; } -void wayland_destroy(struct wld_drawable * drawable) +static void wayland_destroy(struct wld_drawable * drawable) { struct wayland_drawable * wayland = (void *) drawable;