Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Build fails with recent libedit versions #109191

Closed
Labels
OS-mactype-bugAn unexpected behavior, bug, or error
@jmroot

Description

@jmroot

Bug report

Bug description:

readline_set_completion_display_matches_hook_impl will use eitherVFunction (if_RL_FUNCTION_TYPEDEF is defined) orrl_compdisp_func_t. The former is deprecated but available in current readline, while the latter has historically not been available in libedit. However, libedit recently addedrl_compdisp_func_t and removedVFunction entirely:http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/readline/readline.h.diff?r1=1.53&r2=1.54&sortby=date

We ship a recent libedit in MacPorts, so we see a compilation failure like this:

./Modules/readline.c:448:10: error: use of undeclared identifier 'VFunction'; did you mean 'function'?        (VFunction *)on_completion_display_matches_hook : 0;         ^~~~~~~~~

It's easy enough for us to patch around this, but I guess if compatibility with both current libedit and the older version shipped by Apple is desired, there needs to be another check for the availability of this type.

CPython versions tested on:

3.12

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-mactype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp