[Mesa-dev] [PATCH 08/16] RFC: nir: typedef'ify nir_deref_path

Jason Ekstrand jason at jlekstrand.net
Sat Apr 7 16:49:17 UTC 2018


I've already done this in my branch

On Sat, Apr 7, 2018 at 9:13 AM, Rob Clark <robdclark at gmail.com> wrote:

> For better or worse, the rest of nir follows the typedef struct pattern.
> So I guess better to be consistent.
>
> Signed-off-by: Rob Clark <robdclark at gmail.com>
> ---
>  src/compiler/nir/nir_deref.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/compiler/nir/nir_deref.h b/src/compiler/nir/nir_deref.h
> index 7597b777490..b7a9d4b0e63 100644
> --- a/src/compiler/nir/nir_deref.h
> +++ b/src/compiler/nir/nir_deref.h
> @@ -31,7 +31,7 @@
>  extern "C" {
>  #endif
>
> -struct nir_deref_path {
> +typedef struct nir_deref_path {
>     /** Short path so we can keep it on the stack most of the time. */
>     nir_deref_instr *_short_path[7];
>
> @@ -42,7 +42,7 @@ struct nir_deref_path {
>      * element in the array is a NULL pointer which acts as a terminator.
>      */
>     nir_deref_instr **path;
> -};
> +} nir_deref_path;
>
>  void nir_deref_path_init(struct nir_deref_path *path,
>                           nir_deref_instr *deref, void *mem_ctx);
> --
> 2.14.3
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180407/f4b2b15a/attachment.html>


More information about the mesa-dev mailing list