[PATCH rendercheck 1/5] Start using stdbool.h instead of Xlib or custom bools.
Eric Anholt
eric at anholt.net
Mon Feb 1 14:25:00 PST 2016
Alex Deucher <alexdeucher at gmail.com> writes:
> On Mon, Feb 1, 2016 at 4:48 PM, Eric Anholt <eric at anholt.net> wrote:
>> I have a hard time typing anything else at this point.
>>
>> Signed-off-by: Eric Anholt <eric at anholt.net>
>> ---
>> main.c | 21 ++++++++++--------
>> ops.c | 2 +-
>> rendercheck.h | 58 +++++++++++++++++++++++-------------------------
>> t_blend.c | 8 +++----
>> t_bug7366.c | 32 +++++++++++++--------------
>> t_composite.c | 12 +++++-----
>> t_dstcoords.c | 6 ++---
>> t_fill.c | 6 ++---
>> t_gradient.c | 32 +++++++++++++--------------
>> t_gtk_argb_xbgr.c | 8 +++----
>> t_libreoffice_xrgb.c | 10 ++++-----
>> t_repeat.c | 22 +++++++++----------
>> t_srccoords.c | 14 ++++++------
>> t_triangles.c | 24 ++++++++++----------
>> t_tsrccoords.c | 12 +++++-----
>> t_tsrccoords2.c | 14 ++++++------
>> tests.c | 62 ++++++++++++++++++++++++++--------------------------
>> 17 files changed, 171 insertions(+), 172 deletions(-)
>>
>> diff --git a/main.c b/main.c
>> index a7035b9..b5d67cc 100644
>> --- a/main.c
>> +++ b/main.c
>> @@ -27,7 +27,7 @@
>> #include <strings.h>
>> #include <getopt.h>
>>
>> -Bool is_verbose = FALSE, minimalrendering = FALSE;
>> +bool is_verbose = false, minimalrendering = false;
>> int enabled_tests = ~0; /* Enable all tests by default */
>>
>> int format_whitelist_len = 0;
>> @@ -163,7 +163,8 @@ int main(int argc, char **argv)
>> Display *dpy;
>> XEvent ev;
>> int i, o, maj, min;
>> - static Bool is_sync = FALSE, print_version = FALSE;
>> + static int is_sync = false, print_version = false;
>
> Did you mean bool here rather than int?
>
> Alex
No, because it's an argument to getopt_long.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20160201/aacd7263/attachment.sig>
More information about the xorg-devel
mailing list