poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Added num_args to pk_mi_msg.


From: Jose E. Marchesi
Subject: Re: [PATCH] Added num_args to pk_mi_msg.
Date: Sun, 09 May 2021 23:38:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Kostas.

> Just a small bugfix I've noticed where num_args field was not defined in
> pk_mi_msg.
>
> From 75b23c6a09784ff1acc635eb0dcc038d19f99f5e Mon Sep 17 00:00:00 2001
> From: kostasch <koschasialis@gmail.com>
> Date: Mon, 10 May 2021 00:01:19 +0300
> Subject: [PATCH] Added num_args field to pk_mi_msg.

This is OK for both master and maint/poke-1.
Thanks!

> 2021-05-09  Kostas Chasialis  <sdi1600195@di.uoa.gr>
>
>       * poke/pk-mi-msg.c (struct pk_mi_msg): Added num_args field.
>       (pk_mi_allocate_msg_args): Update num_args field.
> ---
>  ChangeLog        | 5 +++++
>  poke/pk-mi-msg.c | 2 ++
>  2 files changed, 7 insertions(+)
>
> diff --git a/ChangeLog b/ChangeLog
> index 63af3e23..bc0fea82 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2021-05-09  Kostas Chasialis  <sdi1600195@di.uoa.gr>
> +
> +     * poke/pk-mi-msg.c (struct pk_mi_msg): Added num_args field.
> +     (pk_mi_allocate_msg_args): Update num_args field.
> +
>  2021-05-08  Jose E. Marchesi  <jemarch@gnu.org>,
>  
>       * libpoke/libpoke.c (pk_register_iod): Allow replacing the foreign
> diff --git a/poke/pk-mi-msg.c b/poke/pk-mi-msg.c
> index 082fe75b..4c565854 100644
> --- a/poke/pk-mi-msg.c
> +++ b/poke/pk-mi-msg.c
> @@ -145,6 +145,7 @@ struct pk_mi_msg
>      struct pk_mi_msg_event event;
>    } data;
>  
> +  int num_args;
>    pk_val *args;
>  };
>  
> @@ -184,6 +185,7 @@ pk_mi_allocate_msg_args (pk_mi_msg msg,
>    for (i = 0; i < nargs; ++i)
>      args[i] = PK_NULL;
>  
> +  PK_MI_MSG_NUM_ARGS (msg) = nargs;
>    PK_MI_MSG_ARGS (msg) = args;
>  }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]