]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1662: Issues with proto files: missing or inconsistent prototypes. v9.1.1662
authorHirohito Higashi <h.east.727@gmail.com>
Wed, 20 Aug 2025 20:08:13 +0000 (22:08 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 20 Aug 2025 20:08:13 +0000 (22:08 +0200)
commitd839a5b3b02cf284c831cd400a7e2169b44f471b
tree6358570c76e165721d0a43cee20af48da1255b6b
parentc0a3eda6ba2f7e266c110f43566c8264852a3559
patch 9.1.1662: Issues with proto files: missing or inconsistent prototypes.

Problem:  Issues with proto files: missing or inconsistent prototypes.
Solution: Update ifdefs, move typedefs, fix prototype declaration
          (Hirohito Higashi)

This change focuses on fixes and tweaks found while working on #18045 for
the proto/*.pro files.

The following fixes and tweaks have been made:

- Fixed a prototype declaration where the variable name differed from
  the function definition.
- Removed a prototype declaration without a function body.
- Fixed a problem where a prototype declaration was not created for a
  function definition enclosed in a #if directive because it lacked ||
  defined(PROTO).
- Moved typedef struct soundcb_S soundcb_T; from proto/sound.pro to
  vim.h.
- Other small tweaks.

The make proto mechanism remains unchanged.

closes: #18058

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
27 files changed:
src/cmdexpand.c
src/gui_gtk_x11.c
src/indent.c
src/locale.c
src/macros.h
src/misc2.c
src/option.c
src/optionstr.c
src/os_mswin.c
src/os_unix.c
src/os_win32.c
src/profiler.c
src/proto/cmdexpand.pro
src/proto/gui_gtk_x11.pro
src/proto/if_python.pro
src/proto/if_python3.pro
src/proto/option.pro
src/proto/optionstr.pro
src/proto/os_unix.pro
src/proto/sound.pro
src/regexp.c
src/sound.c
src/term.c
src/testing.c
src/version.c
src/vim.h
src/window.c