NetSurf
duk_custom.h
Go to the documentation of this file.
1/*
2 * Copyright 2015 Daniel Silverstone <dsilvers@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 * Custom configuration for duktape
21 */
22
23#include "utils/config.h"
24
25#ifndef HAVE_STRPTIME
26#undef DUK_USE_DATE_PRS_STRPTIME
27#undef DUK_USE_DATE_PRS_GETDATE
28#undef DUK_USE_DATE_PARSE_STRING
29#endif
30
31#define DUK_USE_FASTINT
32#define DUK_USE_REGEXP_CANON_WORKAROUND
33
34/* Required for execution timeout checking */
35#define DUK_USE_INTERRUPT_COUNTER
36
37extern duk_bool_t dukky_check_timeout(void *udata);
38#define DUK_USE_EXEC_TIMEOUT_CHECK dukky_check_timeout
39
40#include "netsurf/inttypes.h"
duk_small_uint_t duk_bool_t
Definition: duk_config.h:2051
duk_bool_t dukky_check_timeout(void *udata)
Definition: dukky.c:840
Netsurf additional integer type formatting macros.