pub unsafe extern "C" fn editorconfig_parse(
full_filename: *const c_char,
h: editorconfig_handle,
) -> c_intExpand description
@brief Parse editorconfig files corresponding to the file path given by full_filename, and related information is input and output in h.
An example is available at src/bin/main.c in EditorConfig C Core source code.
@param full_filename The full path of a file that is edited by the editor for which the parsing result is.
@param h The @ref editorconfig_handle to be used and returned from this function (including the parsing result). The @ref editorconfig_handle should be created by editorconfig_handle_init().
@retval 0 Everything is OK.
@retval “Positive Integer” A parsing error occurs. The return value would be the line number of parsing error. err_file obtained from h by calling editorconfig_handle_get_err_file() will also be filled with the file path that caused the parsing error.
@retval “Negative Integer” Some error occured. See below for the reason of the error for each return value.
@retval EDITORCONFIG_PARSE_NOT_FULL_PATH The full_filename is not a full path name.
@retval EDITORCONFIG_PARSE_MEMORY_ERROR A memory error occurs.
@retval EDITORCONFIG_PARSE_VERSION_TOO_NEW The required version specified in @ref editorconfig_handle is greater than the current version.