mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
vim-patch:9.0.1336: functions without arguments are not always declared properly
Problem: Functions without arguments are not always declared properly.
Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes vim/vim#12031)
a23a11b5bf
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -1026,6 +1026,11 @@ typedef struct {
|
||||
void *os_buf;
|
||||
} optset_T;
|
||||
|
||||
/// Type for the callback function that is invoked after an option value is
|
||||
/// changed to validate and apply the new value.
|
||||
///
|
||||
/// Returns NULL if the option value is valid and successfully applied.
|
||||
/// Otherwise returns an error message.
|
||||
typedef const char *(*opt_did_set_cb_T)(optset_T *args);
|
||||
|
||||
/// Stores an identifier of a script or channel that last set an option.
|
||||
|
Reference in New Issue
Block a user