kitty/kitty
James McCoy 215a7689d9
Correct types for various PyArg_ParseTuple/Py_BuildValue calls
Debian's [mips] build failed one of the font tests:

    FAIL: test_sprite_map (kitty_tests.fonts.Rendering)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/<<PKGBUILDDIR>>/kitty_tests/fonts.py", line 48, in test_sprite_map
        self.ae(test_sprite_position_for(0, 1), (0, 1, 1))
        self = <kitty_tests.fonts.Rendering testMethod=test_sprite_map>
    AssertionError: Tuples differ: (0, 0, 0) != (0, 1, 1)

    First differing element 1:
    0
    1

    - (0, 0, 0)
    ?     ^  ^

    + (0, 1, 1)
    ?     ^  ^

This was due to test_sprite_position_for() using the "I" code to parse
into an unsigned short.  Since mips is big endian, the "wrong" byte was
stored into extra_glyphs.data.

This commit changes all similar data type mismatches that were found
from auditing calls to PyArg_ParseTuple/Py_BuildValue.

[mips]: https://buildd.debian.org/status/fetch.php?pkg=kitty&arch=mips&ver=0.9.0-1&stamp=1524126606&raw=0
2018-04-20 08:28:26 -04:00
..
fonts Log a timestamp as well when printing error messages from python 2018-03-04 10:44:28 +05:30
launcher Forgot to marcj launcher script executable 2018-02-09 16:48:04 +05:30
__init__.py
blit_fragment.glsl Work on rendering to FBO 2017-12-01 12:16:15 +05:30
blit_vertex.glsl More trailing space removal 2017-12-20 08:50:09 +05:30
border_fragment.glsl Start work on background opacity 2017-12-01 12:16:14 +05:30
border_vertex.glsl Always set the padding color to current window background 2018-02-20 09:43:59 +05:30
borders.py Always set the padding color to current window background 2018-02-20 09:43:59 +05:30
boss.py Pass some common option values to the kittens 2018-04-12 13:21:05 +05:30
cell_fragment.glsl Add an option to fade text in inactive windows 2017-12-28 10:36:48 +05:30
cell_vertex.glsl Fix a regression that broke visual bell and invert screen colors escape code. Fixes #419 2018-03-27 10:46:26 +05:30
charsets.c Remove trailing whitespace from native code files 2017-12-20 08:44:47 +05:30
child-monitor.c Neaten up main_loop() 2018-04-13 15:19:25 +05:30
child.c macOS: Fix shell not starting in login mode on some computers. Fixes #247 2018-03-05 13:30:09 +05:30
child.py macOS: Fix shell not starting in login mode on some computers. Fixes #247 2018-03-05 13:30:09 +05:30
cli.py ... 2018-04-12 16:53:46 +05:30
client.py
cmds.py Implement a command shell for kitty 2018-04-06 12:11:37 +05:30
cocoa_window.m Add a keyboard shortcut to edit the kitty config file easily 2018-03-09 17:57:09 +05:30
colors.c Add a remote control command to change colors 2018-04-02 10:45:52 +05:30
config.py Fix merging of shortcuts 2018-04-12 19:40:22 +05:30
config_utils.py Add a --reset option to @ set-colors 2018-04-02 11:14:54 +05:30
constants.py version 0.9.0 2018-04-15 20:18:52 +05:30
control-codes.h Fix incorrect handling of CSI s/r/u 2018-02-04 16:16:57 +05:30
core_text.m Add support for emoji presentation when choosing fallback fonts 2018-02-06 11:11:22 +05:30
cursor.c Fix compilation with gcc 8 2018-03-12 10:38:12 +05:30
cursor_fragment.glsl
cursor_vertex.glsl
data-types.c Correct types for various PyArg_ParseTuple/Py_BuildValue calls 2018-04-20 08:28:26 -04:00
data-types.h Adjust keys callback for new glfw keyboard API 2018-03-31 12:21:36 +05:30
desktop.c
emoji.h Module with all the data for unicode entry by character name 2018-02-09 19:56:25 +05:30
fontconfig.c Add support for emoji presentation when choosing fallback fonts 2018-02-06 11:11:22 +05:30
fonts.c Correct types for various PyArg_ParseTuple/Py_BuildValue calls 2018-04-20 08:28:26 -04:00
fonts.h Add support for emoji presentation when choosing fallback fonts 2018-02-06 11:11:22 +05:30
freetype.c Revert the change to use rendered bitmap width to calculate cell width 2018-03-30 18:54:15 +05:30
gl-wrapper.c Remove trailing whitespace from native code files 2017-12-20 08:44:47 +05:30
gl-wrapper.h
gl.h Unify error logging between python and C 2018-03-04 11:55:47 +05:30
glfw-wrapper.c macOS: Fix option as alt not working for keys that act as dead keys in the current keyboard layout 2018-04-19 17:44:31 +05:30
glfw-wrapper.h macOS: Fix option as alt not working for keys that act as dead keys in the current keyboard layout 2018-04-19 17:44:31 +05:30
glfw.c Correct types for various PyArg_ParseTuple/Py_BuildValue calls 2018-04-20 08:28:26 -04:00
graphics.c Correct types for various PyArg_ParseTuple/Py_BuildValue calls 2018-04-20 08:28:26 -04:00
graphics.h Add support for clearing the scrollback buffer 2018-01-06 23:55:49 +05:30
graphics_fragment.glsl Add an option to fade text in inactive windows 2017-12-28 10:36:48 +05:30
graphics_vertex.glsl Graphics programs should generate pre-multipled colors in interleaved mode 2017-12-01 12:16:15 +05:30
history.c Replace use of PyObject_Str in a couple more places 2018-03-16 21:26:46 +05:30
icat.py Use the nice array based interface for fcntl.ioctl 2018-02-20 17:01:14 +05:30
key_encoding.py The kittens learn about mice 2018-02-07 12:40:04 +05:30
keys.c Simplify is_ascii_control_char 2018-04-20 14:30:07 +05:30
keys.h Fix compilation with gcc 8 2018-03-12 10:38:12 +05:30
keys.py Add support for multi-key shortcuts 2018-03-31 12:21:37 +05:30
khrplatform.h
kittens.c Fix error handling in tui.loop 2018-02-08 12:33:27 +05:30
kitty.conf Add a word select type to the hints kitten 2018-04-12 13:49:12 +05:30
layout.py Fix incorrect bottom blank rects in vertical and tall layouts 2018-02-20 10:06:37 +05:30
line-buf.c Replace use of PyObject_Str in a couple more places 2018-03-16 21:26:46 +05:30
line.c Fix a segfault when getting the contents of the scrollback buffer as text 2018-03-16 21:10:48 +05:30
lineops.h Fix a segfault when getting the contents of the scrollback buffer as text 2018-03-16 21:10:48 +05:30
logging.c Replace deprecated ASL with os_log on macOS 2018-03-04 12:28:06 +05:30
main.py Fix using kitty --single-instance to open a new window in a running kitty instance, not respecting the --directory flag. Fixes #429 2018-04-01 12:39:33 +05:30
modes.h Get rid of the query escape code for styled underlines 2018-02-04 16:40:48 +05:30
mouse.c Fix #455 2018-04-12 10:45:29 +05:30
parser.c Use uint64_t to detect out of range graphics command id 2018-04-19 20:32:48 -04:00
remote_control.py Implement a command shell for kitty 2018-04-06 12:11:37 +05:30
rewrap.h Fix off by one when restoring cursor position after resize. Fixes #344 2018-02-25 09:15:48 +05:30
rgb.py Add a remote control command to change colors 2018-04-02 10:45:52 +05:30
screen.c Also clean-up selection extend for line select 2018-04-09 10:43:05 +05:30
screen.h When double-clicking select words that continue onto next/prev line as well. Fixes #444 2018-04-09 09:47:18 +05:30
session.py Fix using kitty --single-instance to open a new window in a running kitty instance, not respecting the --directory flag. Fixes #429 2018-04-01 12:39:33 +05:30
shaders.c Remove unnecessary <sys/sysctl.h> include 2018-04-19 19:14:40 -04:00
shell.py Add a keyboard shortcut to open the kitty shell 2018-04-06 14:59:13 +05:30
state.c Improve mouse selection for windows with padding 2018-04-01 18:06:27 +05:30
state.h Improve mouse selection for windows with padding 2018-04-01 18:06:27 +05:30
tabs.py Pass some common option values to the kittens 2018-04-12 13:21:05 +05:30
terminfo.py Log a timestamp as well when printing error messages from python 2018-03-04 10:44:28 +05:30
threading.h Fix compilation on Travis (I hope) 2018-03-03 10:56:07 +05:30
unicode-data.c Module with all the data for unicode entry by character name 2018-02-09 19:56:25 +05:30
unicode-data.h Avoid unnecessary calls to mark_for_codepoint 2018-02-06 11:23:39 +05:30
utils.py DRYer 2018-03-08 13:37:56 +05:30
wcwidth-std.h Module with all the data for unicode entry by character name 2018-02-09 19:56:25 +05:30
window.py Fix padding color not tracking active window bg color 2018-02-20 09:52:19 +05:30