[Pekka Paalanen: change is_nullable_type() return value to bool.]
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* OF THIS SOFTWARE.
*/
+#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
va_end(ap);
}
-static int
+static bool
is_nullable_type(struct arg *arg)
{
switch (arg->type) {
case OBJECT:
case NEW_ID:
case ARRAY:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
#define _GNU_SOURCE
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
shm_buffer_destroy
};
-static int
+static bool
format_is_supported(struct wl_client *client, uint32_t format)
{
struct wl_display *display = wl_client_get_display(client);
switch (format) {
case WL_SHM_FORMAT_ARGB8888:
case WL_SHM_FORMAT_XRGB8888:
- return 1;
+ return true;
default:
formats = wl_display_get_additional_shm_formats(display);
wl_array_for_each(p, formats)
if(*p == format)
- return 1;
+ return true;
}
- return 0;
+ return false;
}
static void