Re: [Mesa-dev] [PATCH 2/3] util: Add list_is_single() helper function

2015-10-23 Thread Eduardo Lima Mitev
On 10/23/2015 08:00 PM, Jason Ekstrand wrote: > On Fri, Oct 23, 2015 at 10:51 AM, Matt Turner wrote: >> On Fri, Oct 23, 2015 at 8:55 AM, Eduardo Lima Mitev wrote: >>> Returns true is the list has exactly one element, otherwise returns false. >>> --- >>> src/util/list.h | 8 >>> 1 file c

Re: [Mesa-dev] [PATCH 2/3] util: Add list_is_single() helper function

2015-10-23 Thread Eduardo Lima Mitev
On 10/23/2015 07:51 PM, Matt Turner wrote: > On Fri, Oct 23, 2015 at 8:55 AM, Eduardo Lima Mitev wrote: >> Returns true is the list has exactly one element, otherwise returns false. >> --- >> src/util/list.h | 8 >> 1 file changed, 8 insertions(+) >> >> diff --git a/src/util/list.h b/src

Re: [Mesa-dev] [PATCH 2/3] util: Add list_is_single() helper function

2015-10-23 Thread Jason Ekstrand
On Fri, Oct 23, 2015 at 10:51 AM, Matt Turner wrote: > On Fri, Oct 23, 2015 at 8:55 AM, Eduardo Lima Mitev wrote: >> Returns true is the list has exactly one element, otherwise returns false. >> --- >> src/util/list.h | 8 >> 1 file changed, 8 insertions(+) >> >> diff --git a/src/util/l

Re: [Mesa-dev] [PATCH 2/3] util: Add list_is_single() helper function

2015-10-23 Thread Matt Turner
On Fri, Oct 23, 2015 at 8:55 AM, Eduardo Lima Mitev wrote: > Returns true is the list has exactly one element, otherwise returns false. > --- > src/util/list.h | 8 > 1 file changed, 8 insertions(+) > > diff --git a/src/util/list.h b/src/util/list.h > index b98ce59..2b03461 100644 > ---

[Mesa-dev] [PATCH 2/3] util: Add list_is_single() helper function

2015-10-23 Thread Eduardo Lima Mitev
Returns true is the list has exactly one element, otherwise returns false. --- src/util/list.h | 8 1 file changed, 8 insertions(+) diff --git a/src/util/list.h b/src/util/list.h index b98ce59..2b03461 100644 --- a/src/util/list.h +++ b/src/util/list.h @@ -99,6 +99,14 @@ static inline bo