* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_mp.h>
-#include <njs_arr.h>
-#include <njs_str.h>
-#include <string.h>
+
+#include <njs_main.h>
njs_arr_t *
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
-#include <stdint.h>
static njs_int_t njs_array_prototype_slice_copy(njs_vm_t *vm,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <njs_date.h>
-#include <njs_timer.h>
-#include <njs_math.h>
-#include <njs_json.h>
-#include <njs_module.h>
-#include <njs_fs.h>
-#include <njs_crypto.h>
-#include <string.h>
typedef struct {
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_md5.h>
-#include <njs_sha1.h>
-#include <njs_sha2.h>
-#include <njs_crypto.h>
-#include <string.h>
-#include <math.h>
typedef void (*njs_hash_init)(void *ctx);
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_date.h>
-#include <string.h>
-#include <sys/time.h>
-#include <time.h>
/*
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
* and accurately with integers." ACM Sigplan Notices 45.6 (2010): 233-243.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
+
+#include <njs_main.h>
#include <njs_diyfp.h>
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_djb_hash.h>
+
+#include <njs_main.h>
uint32_t
* THE SOFTWARE.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
+
+#include <njs_main.h>
#include <njs_diyfp.h>
#include <njs_dtoa.h>
-#include <math.h>
-#include <string.h>
-
njs_inline void
njs_grisu2_round(char *start, size_t len, uint64_t delta, uint64_t rest,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
-#include <math.h>
static const njs_value_t njs_error_message_string = njs_string("message");
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
static njs_int_t njs_event_hash_test(njs_lvlhsh_query_t *lhq, void *data);
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
typedef struct njs_extern_part_s njs_extern_part_t;
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_file.h>
-#include <string.h>
+#include <njs_main.h>
void
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_fs.h>
-#include <string.h>
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <errno.h>
typedef struct {
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
static njs_function_t *njs_function_copy(njs_vm_t *vm,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
typedef struct njs_generator_patch_s njs_generator_patch_t;
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_json.h>
-#include <njs_date.h>
-#include <njs_regexp.h>
-#include <string.h>
typedef struct {
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
typedef struct njs_lexer_multi_s njs_lexer_multi_t;
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
static const njs_keyword_t njs_keywords[] = {
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_lvlhsh.h>
-#include <string.h>
+
+#include <njs_main.h>
/*
#include <njs_dtoa.h>
#include <njs_strtod.h>
#include <njs_djb_hash.h>
+#include <njs_murmur_hash.h>
#include <njs_trace.h>
#include <njs_queue.h>
#include <njs_lvlhsh.h>
#include <njs_time.h>
#include <njs_file.h>
#include <njs_malloc.h>
+#include <njs_rbtree.h>
#include <njs_mp.h>
#include <njs_arr.h>
#include <njs_sprintf.h>
+#include <njs_md5.h>
+#include <njs_sha1.h>
+#include <njs_sha2.h>
+
#include <njs.h>
#include <njs_value.h>
+
#include <njs_vm.h>
#include <njs_vmcode.h>
#include <njs_variable.h>
#include <njs_lexer.h>
#include <njs_parser.h>
#include <njs_generator.h>
-#include <njs_function.h>
+
#include <njs_boolean.h>
#include <njs_number.h>
#include <njs_string.h>
#include <njs_object.h>
#include <njs_object_hash.h>
#include <njs_array.h>
+#include <njs_function.h>
#include <njs_error.h>
+#include <njs_regexp.h>
+#include <njs_regexp_pattern.h>
+#include <njs_date.h>
+
+#include <njs_math.h>
+#include <njs_json.h>
+
+#include <njs_timer.h>
+#include <njs_module.h>
+
+#include <njs_fs.h>
+#include <njs_crypto.h>
+#include <njs_builtin.h>
#include <njs_event.h>
#include <njs_extern.h>
#include <njs_module.h>
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_malloc.h>
-#include <string.h>
+#include <njs_main.h>
void *
return p;
}
- // STUB
- //njs_errno_set(err);
-
return NULL;
}
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <math.h>
static njs_int_t
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_md5.h>
-#include <njs_str.h>
-#include <string.h>
+#include <njs_main.h>
static const u_char *njs_md5_body(njs_md5_t *ctx, const u_char *data,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_module.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <string.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <sys/param.h>
typedef struct {
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_sprintf.h>
-#include <njs_malloc.h>
-#include <njs_queue.h>
-#include <njs_rbtree.h>
-#include <njs_mp.h>
-#include <string.h>
-#include <stdint.h>
+
+#include <njs_main.h>
/*
* released to the public domain.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_murmur_hash.h>
+
+#include <njs_main.h>
uint32_t
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <math.h>
-#include <string.h>
-#include <float.h>
/*
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
static njs_int_t njs_object_hash_test(njs_lvlhsh_query_t *lhq, void *data);
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <string.h>
static njs_int_t njs_parser_scope_begin(njs_vm_t *vm, njs_parser_t *parser,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
typedef struct {
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <string.h>
static njs_parser_node_t *njs_parser_reference(njs_vm_t *vm,
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_trace.h>
-#include <njs_str.h>
-#include <njs_regex.h>
+
+#include <njs_main.h>
#include <njs_pcre.h>
-#include <string.h>
static void *njs_pcre_malloc(size_t size);
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_queue.h>
+
+#include <njs_main.h>
/*
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_random.h>
-#include <fcntl.h>
-#include <sys/time.h>
-#include <unistd.h>
+#include <njs_main.h>
#if (NJS_HAVE_GETRANDOM)
#include <sys/random.h>
#elif (NJS_HAVE_LINUX_SYS_GETRANDOM)
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_rbtree.h>
+
+#include <njs_main.h>
/*
* Copyright (C) NGINX, Inc.
*/
-#include <njs_main.h>
-#include <njs_regexp.h>
-#include <njs_regexp_pattern.h>
-#include <string.h>
+#include <njs_main.h>
struct njs_regexp_group_s {
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sha1.h>
-#include <njs_str.h>
-#include <string.h>
+#include <njs_main.h>
static const u_char *njs_sha1_body(njs_sha1_t *ctx, const u_char *data,
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_sha2.h>
-#include <njs_str.h>
-#include <string.h>
+#include <njs_main.h>
static const u_char *njs_sha2_body(njs_sha2_t *ctx, const u_char *data,
#include <njs_main.h>
-#include <njs_builtin.h>
-#include <time.h>
-#include <errno.h>
-#include <string.h>
-#include <fcntl.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <sys/param.h>
#include <locale.h>
-
-#include <stdio.h>
#if (NJS_HAVE_EDITLINE)
#include <editline/readline.h>
#elif (NJS_HAVE_EDIT_READLINE)
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_str.h>
-#include <njs_sprintf.h>
-#include <math.h>
-#include <float.h>
-#include <string.h>
+#include <njs_main.h>
/*
static u_char *njs_integer(njs_sprintf_t *spf, u_char *buf, uint64_t ui64);
-static u_char *njs_number(njs_sprintf_t *spf, u_char *buf, double n);
+static u_char *njs_float(njs_sprintf_t *spf, u_char *buf, double n);
/* A right way of "f == 0.0". */
}
}
- buf = njs_number(&spf, buf, i);
+ buf = njs_float(&spf, buf, i);
if (spf.frac_width > 0) {
static u_char *
-njs_number(njs_sprintf_t *spf, u_char *buf, double n)
+njs_float(njs_sprintf_t *spf, u_char *buf, double n)
{
u_char *p, *end;
size_t length;
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <njs_regexp_pattern.h>
-#include <string.h>
#define NJS_TRIM_START 1
* that can be found in the LICENSE file.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
+#include <njs_main.h>
#include <njs_diyfp.h>
-#include <njs_strtod.h>
/*
* Max double: 1.7976931348623157 x 10^308
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_time.h>
-#include <time.h>
-#include <sys/time.h>
+#include <njs_main.h>
+
uint64_t
njs_time(void)
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_timer.h>
-#include <string.h>
static njs_int_t
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_malloc.h>
-#include <njs_sprintf.h>
-#include <njs_trace.h>
+
+#include <njs_main.h>
static u_char *
#ifndef _NJS_UNIX_H_INCLUDED_
#define _NJS_UNIX_H_INCLUDED_
-#include <unistd.h>
#define njs_pagesize() getpagesize()
#if (NJS_LINUX)
#endif /* NJS_LINUX */
+#include <errno.h>
+#include <stdarg.h>
+#include <stddef.h> /* offsetof() */
+#include <stdio.h>
+#include <stdint.h>
+#include <string.h>
+#include <math.h>
+#include <float.h>
+#include <time.h>
+#include <fcntl.h>
+
+#include <sys/time.h>
+#include <sys/stat.h>
+#include <sys/param.h>
+
+#include <unistd.h>
+
#endif /* _NJS_UNIX_H_INCLUDED_ */
* Copyright (C) NGINX, Inc.
*/
-#include <njs_auto_config.h>
-#include <njs_types.h>
-#include <njs_clang.h>
-#include <njs_utf8.h>
+
+#include <njs_main.h>
/*
* The njs_unicode_lower_case.h and njs_unicode_upper_case.h files are
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
const njs_value_t njs_value_null = njs_value(NJS_NULL, 0, 0.0);
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <string.h>
static njs_variable_t *njs_variable_scope_add(njs_vm_t *vm,
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <string.h>
static njs_int_t njs_vm_init(njs_vm_t *vm);
* Copyright (C) NGINX, Inc.
*/
+
#include <njs_main.h>
-#include <njs_regexp.h>
-#include <string.h>
struct njs_property_next_s {