Merge branch 'refactor' of https://github.com/page-down/kitty
This commit is contained in:
commit
fc651b72ab
1
.github/workflows/codeql-analysis.yml
vendored
1
.github/workflows/codeql-analysis.yml
vendored
@ -27,6 +27,7 @@ jobs:
|
|||||||
uses: github/codeql-action/init@v1
|
uses: github/codeql-action/init@v1
|
||||||
with:
|
with:
|
||||||
languages: python, c
|
languages: python, c
|
||||||
|
setup-python-dependencies: false
|
||||||
|
|
||||||
- name: Build kitty
|
- name: Build kitty
|
||||||
run: python3 .github/workflows/ci.py build
|
run: python3 .github/workflows/ci.py build
|
||||||
|
|||||||
@ -1338,13 +1338,13 @@ typedef struct {
|
|||||||
DescriptorIndices descriptor_indices = {0};
|
DescriptorIndices descriptor_indices = {0};
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
set_symbol_maps(SymbolMap **symbol_maps, size_t *num_symbol_maps, const PyObject *sm) {
|
set_symbol_maps(SymbolMap **maps, size_t *num, const PyObject *sm) {
|
||||||
*num_symbol_maps = PyTuple_GET_SIZE(sm);
|
*num = PyTuple_GET_SIZE(sm);
|
||||||
*symbol_maps = calloc(*num_symbol_maps, sizeof(SymbolMap));
|
*maps = calloc(*num, sizeof(SymbolMap));
|
||||||
if (*symbol_maps == NULL) { PyErr_NoMemory(); return false; }
|
if (*maps == NULL) { PyErr_NoMemory(); return false; }
|
||||||
for (size_t s = 0; s < *num_symbol_maps; s++) {
|
for (size_t s = 0; s < *num; s++) {
|
||||||
unsigned int left, right, font_idx;
|
unsigned int left, right, font_idx;
|
||||||
SymbolMap *x = *symbol_maps + s;
|
SymbolMap *x = *maps + s;
|
||||||
if (!PyArg_ParseTuple(PyTuple_GET_ITEM(sm, s), "III", &left, &right, &font_idx)) return NULL;
|
if (!PyArg_ParseTuple(PyTuple_GET_ITEM(sm, s), "III", &left, &right, &font_idx)) return NULL;
|
||||||
x->left = left; x->right = right; x->font_idx = font_idx;
|
x->left = left; x->right = right; x->font_idx = font_idx;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user