mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[dos] CONFIG_ECMASCRIPT -> CONFIG_QUICKJS
mujs also can be compiled, and does not have check_heartbeats.
This commit is contained in:
parent
db70f0e5cc
commit
eba67dc278
@ -24,7 +24,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <values.h>
|
#include <values.h>
|
||||||
#ifdef CONFIG_ECMASCRIPT
|
#ifdef CONFIG_QUICKJS
|
||||||
#include "ecmascript/quickjs/heartbeat.h"
|
#include "ecmascript/quickjs/heartbeat.h"
|
||||||
#endif
|
#endif
|
||||||
#include "intl/libintl.h"
|
#include "intl/libintl.h"
|
||||||
@ -1015,7 +1015,7 @@ void os_seed_random(unsigned char **pool, int *pool_size)
|
|||||||
*pool_size = RANDOM_POOL_SIZE;
|
*pool_size = RANDOM_POOL_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_ECMASCRIPT
|
#ifdef CONFIG_QUICKJS
|
||||||
_go32_dpmi_seginfo OldISR, NewISR;
|
_go32_dpmi_seginfo OldISR, NewISR;
|
||||||
#define TIMER 8
|
#define TIMER 8
|
||||||
//Simple Example of chaining interrupt handlers
|
//Simple Example of chaining interrupt handlers
|
||||||
@ -1068,7 +1068,7 @@ void init_osdep(void)
|
|||||||
sa.sa_flags = SA_RESTART;
|
sa.sa_flags = SA_RESTART;
|
||||||
EINTRLOOP(rs, sigaction(SIGINT, &sa, NULL));
|
EINTRLOOP(rs, sigaction(SIGINT, &sa, NULL));
|
||||||
|
|
||||||
#ifdef CONFIG_ECMASCRIPT
|
#ifdef CONFIG_QUICKJS
|
||||||
LOCK_FUNCTION(TickHandler);
|
LOCK_FUNCTION(TickHandler);
|
||||||
LOCK_FUNCTION(check_heartbeats);
|
LOCK_FUNCTION(check_heartbeats);
|
||||||
//load the address of the old timer ISR into the OldISR structure
|
//load the address of the old timer ISR into the OldISR structure
|
||||||
@ -1088,7 +1088,7 @@ void terminate_osdep(void)
|
|||||||
{
|
{
|
||||||
if (screen_backbuffer)
|
if (screen_backbuffer)
|
||||||
mem_free(screen_backbuffer);
|
mem_free(screen_backbuffer);
|
||||||
#ifdef CONFIG_ECMASCRIPT
|
#ifdef CONFIG_QUICKJS
|
||||||
_go32_dpmi_set_protected_mode_interrupt_vector(TIMER, &OldISR);
|
_go32_dpmi_set_protected_mode_interrupt_vector(TIMER, &OldISR);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user