Re: [Mesa-dev] [PATCH] Consolidate some redundant definitions of ARRAY_SIZE() macro.

2013-02-06 Thread Kenneth Graunke
On 02/06/2013 10:43 AM, Paul Berry wrote: Previous to this patch, there were 13 identical definitions of this macro in Mesa source. That's ridiculous. This patch consolidates 6 of them to a single definition in src/mesa/main/macros.h. Unfortunately, I wasn't able to eliminate the remaining def

[Mesa-dev] [PATCH] Consolidate some redundant definitions of ARRAY_SIZE() macro.

2013-02-06 Thread Paul Berry
Previous to this patch, there were 13 identical definitions of this macro in Mesa source. That's ridiculous. This patch consolidates 6 of them to a single definition in src/mesa/main/macros.h. Unfortunately, I wasn't able to eliminate the remaining definitions, since they occur in places that do