mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: remove use of reserved c++ keywords
libnvim couldn't be easily used in C++ due to the use of reserved keywords. Additionally, add explicit casts to *alloc function calls used in inline functions, as C++ doesn't allow implicit casts from void pointers.
This commit is contained in:
@@ -1053,7 +1053,7 @@ int utf_class_tab(const int c, const uint64_t *const chartab)
|
||||
static struct clinterval {
|
||||
unsigned int first;
|
||||
unsigned int last;
|
||||
unsigned int class;
|
||||
unsigned int cls;
|
||||
} classes[] = {
|
||||
{ 0x037e, 0x037e, 1 }, // Greek question mark
|
||||
{ 0x0387, 0x0387, 1 }, // Greek ano teleia
|
||||
@@ -1154,7 +1154,7 @@ int utf_class_tab(const int c, const uint64_t *const chartab)
|
||||
} else if (classes[mid].first > (unsigned int)c) {
|
||||
top = mid - 1;
|
||||
} else {
|
||||
return (int)classes[mid].class;
|
||||
return (int)classes[mid].cls;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user