[PATCH weston 0/4] Extract common macros to single header.

Jon A. Cruz jonc at osg.samsung.com
Fri Jun 12 21:25:01 PDT 2015


As a follow-up to review feedback from Peter Hutterer this
set moves a few duplicated macros into a common header,
including ARRAY_LENGTH.

Jon A. Cruz (4):
  Remove redundant #include path component.
  Moved helper macro to a discrete include file.
  Moved the MIN() macro to the helper include.
  Unified multiple definitions of container_of() macro.

 Makefile.am                         |  1 +
 clients/calibrator.c                |  5 +--
 clients/clickdot.c                  |  1 +
 clients/desktop-shell.c             |  5 ++-
 clients/dnd.c                       |  3 +-
 clients/editor.c                    |  1 +
 clients/eventdemo.c                 |  1 +
 clients/image.c                     |  2 +-
 clients/ivi-shell-user-interface.c  |  8 ++--
 clients/multi-resource.c            |  2 +-
 clients/nested.c                    |  3 +-
 clients/presentation-shm.c          |  5 +--
 clients/screenshot.c                |  2 +-
 clients/simple-damage.c             |  2 +-
 clients/simple-egl.c                |  2 +-
 clients/simple-shm.c                |  2 +-
 clients/simple-touch.c              |  5 +--
 clients/stacking.c                  |  1 +
 clients/subsurfaces.c               |  1 +
 clients/terminal.c                  |  3 +-
 clients/weston-info.c               |  7 +---
 clients/window.c                    |  7 ++--
 clients/window.h                    | 12 ++----
 clients/wscreensaver.c              |  1 +
 desktop-shell/exposay.c             |  1 +
 desktop-shell/input-panel.c         |  1 +
 desktop-shell/shell.c               |  3 +-
 fullscreen-shell/fullscreen-shell.c |  1 +
 ivi-shell/hmi-controller.c          |  1 +
 ivi-shell/input-panel-ivi.c         |  1 +
 ivi-shell/ivi-layout.c              |  3 +-
 ivi-shell/ivi-shell.c               |  1 +
 shared/cairo-util.c                 |  3 +-
 shared/config-parser.c              |  5 +--
 shared/helpers.h                    | 79 +++++++++++++++++++++++++++++++++++++
 shared/image-loader.c               |  3 +-
 src/animation.c                     |  1 +
 src/bindings.c                      |  1 +
 src/clipboard.c                     |  1 +
 src/cms-colord.c                    |  1 +
 src/cms-static.c                    |  1 +
 src/compositor-drm.c                |  1 +
 src/compositor-fbdev.c              |  1 +
 src/compositor-headless.c           |  1 +
 src/compositor-rdp.c                |  1 +
 src/compositor-rpi.c                |  1 +
 src/compositor-wayland.c            |  7 ++--
 src/compositor-x11.c                |  5 ++-
 src/compositor.c                    |  3 +-
 src/compositor.h                    | 10 -----
 src/data-device.c                   |  1 +
 src/gl-renderer.c                   |  1 +
 src/input.c                         |  3 +-
 src/libinput-device.c               |  1 +
 src/libinput-seat.c                 |  1 +
 src/pixman-renderer.c               |  1 +
 src/rpi-renderer.c                  |  1 +
 src/screen-share.c                  |  3 +-
 src/screenshooter.c                 |  3 +-
 src/text-backend.c                  |  1 +
 src/zoom.c                          |  1 +
 tests/bad-buffer-test.c             |  2 +-
 tests/buffer-count-test.c           |  2 +-
 tests/ivi_layout-internal-test.c    |  4 +-
 tests/ivi_layout-test-plugin.c      |  5 ++-
 tests/ivi_layout-test.c             |  1 +
 tests/matrix-test.c                 |  2 +-
 tests/presentation-test.c           |  1 +
 tests/surface-global-test.c         |  2 +-
 tests/surface-test.c                |  2 +-
 tests/vertex-clip-test.c            |  3 +-
 tests/weston-test-client-helper.c   |  2 +-
 tests/weston-test-runner.h          |  4 +-
 tests/weston-test.c                 |  6 ++-
 xwayland/launcher.c                 |  1 +
 xwayland/selection.c                |  1 +
 xwayland/window-manager.c           |  1 +
 77 files changed, 188 insertions(+), 87 deletions(-)
 create mode 100644 shared/helpers.h

-- 
2.1.0



More information about the wayland-devel mailing list