|
|
|
@ -263,10 +263,6 @@ _termpty_init(Termpty *ty, Config *config) |
|
|
|
|
assert(ty->screen2); |
|
|
|
|
ty->circular_offset = 0; |
|
|
|
|
ty->fd = STDIN_FILENO; |
|
|
|
|
#if defined(ENABLE_FUZZING) |
|
|
|
|
ty->fd_dev_null = open("/dev/null", O_WRONLY|O_APPEND); |
|
|
|
|
assert(ty->fd_dev_null >= 0); |
|
|
|
|
#endif |
|
|
|
|
ty->hl.bitmap = calloc(1, HL_LINKS_MAX / 8); /* bit map for 1 << 16 elements */ |
|
|
|
|
assert(ty->hl.bitmap); |
|
|
|
|
/* Mark id 0 as set */ |
|
|
|
@ -281,9 +277,6 @@ _termpty_shutdown(Termpty *ty) |
|
|
|
|
#if defined(ENABLE_TESTS) |
|
|
|
|
ty_sb_free(&ty->write_buffer); |
|
|
|
|
#endif |
|
|
|
|
#if defined(ENABLE_FUZZING) |
|
|
|
|
close(ty->fd_dev_null); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int |
|
|
|
|