bug-gnulib
[Top][All Lists]
Advanced

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

Re: the obstack module


From: Bruno Haible
Subject: Re: the obstack module
Date: Thu, 16 Nov 2023 00:12:27 +0100

Paul Eggert wrote:
> > Do you see a problem with fixing these things? May I go ahead and modernize
> > this?
> 
> No, please feel free, and thanks.

This patch should fix all mentioned problems.


2023-11-15  Bruno Haible  <bruno@clisp.org>

        obstack: Modernize, fixing several problems.
        * lib/obstack.in.h: Renamed from lib/obstack.h. Add reference to the
        glibc documentation.
        (_OBSTACK_INTERFACE_VERSION): Remove macro.
        (_OBSTACK_SIZE_T, _CHUNK_SIZE_T, _OBSTACK_CAST): Mark old values with
        _LIBC.
        (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
        _obstack_memory_used, _obstack_allocated_p): Override if REPLACE_OBSTACK
        is 1.
        * lib/obstack.c: Don't include <gnu-versions.h>.
        (_OBSTACK_ELIDE_CODE): Remove macro.
        * m4/obstack.m4 (gl_FUNC_OBSTACK): Test whether obstack.h exists. Don't
        define HAVE_OBSTACK any more. Set HAVE_OBSTACK, REPLACE_OBSTACK,
        GL_GENERATE_OBSTACK_H.
        * modules/obstack (Files): Remove obstack.h. Add obstack.in.h.
        (Depends-on): Add gen-header. Add conditions.
        (configure.ac): Consider HAVE_OBSTACK, REPLACE_OBSTACK. Invoke
        gl_CONDITIONAL_HEADER and AC_PROG_MKDIR_P.
        (Makefile.am): Generate obstack.h. Augment BUILT_SOURCES and
        MOSTLYCLEANFILES.

Attachment: 0001-obstack-Modernize-fixing-several-problems.patch
Description: Text Data


reply via email to

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