Subject: Re: bug#65146: 30.0.50; Build fails with CHECK_STRUCTS

From: Po Lu <[email-masked]>
Date: Tue, 08 Aug 2023 20:23:28 +0800

"Basil L. Contovounesios" <[email-masked]> writes:

> The new text_conversion_style_ field:
>
>>>From cf24b61985c26cbf2e5a24cb0b64a8528aa3a9cc Mon Sep 17 00:00:00 2001
> From: Po Lu <[email-masked]>
> Date: Wed, 15 Feb 2023 22:51:44 +0800
> Subject: [PATCH] Update Android port
>
> * src/buffer.h (struct buffer, bset_text_conversion_style): New
> fields.
> ---
>  src/buffer.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/src/buffer.h b/src/buffer.h
> index e700297a264..e71ffe28045 100644
> --- a/src/buffer.h
> +++ b/src/buffer.h
> @@ -566,6 +566,11 @@ #define BVAR(buf, field) ((buf)->field ## _)
>    /* A list of tree-sitter parsers for this buffer.  */
>    Lisp_Object ts_parser_list_;
>  #endif
> +
> +  /* What type of text conversion the input method should apply to
> +     this buffer.  */
> +  Lisp_Object text_conversion_style_;
> +
>    /* Cursor type to display in non-selected windows.
>       t means to use hollow box cursor.
>       See `cursor-type' for other values.  */
> -- 
> 2.40.1
>
>
> Is unknown to the pdumper with --enable-checking=structs:
>
>   CC       pdumper.o
> pdumper.c: In function ‘dump_buffer’:
> pdumper.c:2751:3: error: #error "buffer changed. See CHECK_STRUCTS comment in config.h."
>
> Does the field need any special handling, or can HASH_buffer be safely
> updated?
>
> Thanks,

No special treatment is necessary.  Please proceed with updating the
hash, thanks.