summaryrefslogtreecommitdiff
path: root/util_double_list.h
AgeCommit message (Collapse)AuthorFilesLines
2022-01-19use standard `__typeof__()` instead of GNU extension `typeof()`Eric Engestrom1-1/+1
And switch to c_std=c99. This simplifies using libdrm as a meson subproject for mesa. v2: (dylan) - switch to c99 as the standard - Fix amdgpu security tests as well Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Signed-off-by: Dylan Baker <dylan@pnwbakers.com> Reviewed-by: Simon Ser <contact@emersion.fr> Reviewed-by: Emma Anholt <emma@anholt.net>
2016-08-02list: fix an issue with android build using clangRob Clark1-1/+1
Sorry, I don't understand the android build system enough to say *which* version of clang this effects, but either "clang-2812033" or "clang-3016494" (probably the later). But when 'sample' is undefined (ie. unitialized variable), the result is not as well defined as it is with gcc. Instead use a typeof() cast with a defined value (ie. zero). This fixes a crash that was reported on android. Reported-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Rob Clark <robclark@freedesktop.org>
2016-07-20list: add first/last entry macrosRob Clark1-0/+6
Signed-off-by: Rob Clark <robclark@freedesktop.org>
2015-08-05drm: consolidate common list implementations (v2)Alex Deucher1-0/+137
This is used by radeon and freedreno and will be used by amdgpu. I looked at switching to libdrm_lists.h, but it's pretty horrible. E.g., DRMLISTFOREACHENTRYSAFE. v2: remove missed list.h from tests/radeon/Makefile.am Signed-off-by: Alex Deucher <alexander.deucher@amd.com>