Ensure python type objects are declared in onlya single unit

This commit is contained in:
Kovid Goyal
2017-11-01 13:14:50 +05:30
parent 6cbd1d1727
commit 21ed07d7ce
10 changed files with 15 additions and 12 deletions

View File

@@ -10,6 +10,8 @@
#include "graphics.h"
#include <time.h>
extern PyTypeObject Screen_Type;
// utils {{{
static unsigned long pow10[] = {
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, 10000000000
@@ -894,6 +896,8 @@ dispatch_unicode_char(Screen *screen, uint32_t codepoint, PyObject DUMP_UNUSED *
#undef HANDLE
}
extern uint32_t *latin1_charset;
static inline void
_parse_bytes(Screen *screen, uint8_t *buf, Py_ssize_t len, PyObject DUMP_UNUSED *dump_callback) {
uint32_t prev = screen->utf8_state;