Skip to main content

kr_vocabulary_configure_default

Function kr_vocabulary_configure_default 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn kr_vocabulary_configure_default( pointer: *mut VocabularyHandle, language: u32, home: *const u8, len: u32, ) -> u32
Expand description

Configure one language’s Vim spell file under the absolute home directory, without I/O: .vim/spell (vimfiles\spell on Windows) and en.utf-8.add or ru.utf-8.add. A missing file there behaves as with MISSING_IS_EMPTY; a joined path over MAX_PATH is BOUNDS.

§Safety

pointer must be null or a live aligned source allocation throughout this call. For nonzero len <= MAX_PATH, a non-null home must address readable bytes not aliasing the handle. Zero/oversized/null arguments are checked without reading the path. No pointer is retained.