#define NJS_VERSION "0.3.4"
+#include <unistd.h> /* STDOUT_FILENO, STDERR_FILENO */
#include <njs_types.h>
#include <njs_clang.h>
#include <njs_str.h>
#include <njs_lvlhsh.h>
+#include <njs_sprintf.h>
typedef uintptr_t njs_index_t;
#include <stdarg.h>
#include <stddef.h> /* offsetof(). */
-#include <unistd.h> /* NULL. */
#define njs_inline static inline __attribute__((always_inline))
#ifndef _NJS_DIYFP_H_INCLUDED_
#define _NJS_DIYFP_H_INCLUDED_
-#include <njs_types.h>
-#include <math.h>
-
typedef struct {
uint64_t significand;
#include <njs_arr.h>
#include <njs_sprintf.h>
+#include <njs_pcre.h>
+#include <njs_regex.h>
+
#include <njs_md5.h>
#include <njs_sha1.h>
#include <njs_sha2.h>
#ifndef _NJS_MALLOC_H_INCLUDED_
#define _NJS_MALLOC_H_INCLUDED_
-#include <stdlib.h>
-
-/*
- * alloca() is defined in stdlib.h in Linux, FreeBSD and MacOSX
- * and in alloca.h in Linux, Solaris and MacOSX.
- */
-#if (NJS_SOLARIS)
-#include <alloca.h>
-#endif
-
#define njs_malloc(size) malloc(size)
#define njs_free(p) free(p)
#define _NJS_MATH_H_INCLUDED_
-#include <math.h>
-
-
extern const njs_object_init_t njs_math_object_init;
#define _NJS_NUMBER_H_INCLUDED_
-#include <njs_string.h>
-#include <math.h>
-
-
uint32_t njs_value_to_index(const njs_value_t *value);
double njs_number_dec_parse(const u_char **start, const u_char *end);
uint64_t njs_number_oct_parse(const u_char **start, const u_char *end);
#include <njs_main.h>
-#include <njs_pcre.h>
static void *njs_pcre_malloc(size_t size);
#ifndef _NJS_REGEXP_PATTERN_H_INCLUDED_
#define _NJS_REGEXP_PATTERN_H_INCLUDED_
-#include <njs_pcre.h>
-#include <njs_regex.h>
-
typedef enum {
NJS_REGEXP_BYTE = 0,
#ifndef _NJS_STRING_H_INCLUDED_
#define _NJS_STRING_H_INCLUDED_
-#include <njs_utf8.h>
/*
* nJSVM supports two string variants:
/* u_char, u_int, int8_t, int32_t, int64_t, size_t, off_t. */
#include <sys/types.h>
-#include <inttypes.h>
+#include <stdint.h>
#if (__LP64__)
#endif /* NJS_LINUX */
+
#include <errno.h>
-#include <stdarg.h>
-#include <stddef.h> /* offsetof() */
+#include <stdlib.h>
#include <stdio.h>
-#include <stdint.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <time.h>
#include <fcntl.h>
+/*
+ * alloca() is defined in stdlib.h in Linux, FreeBSD and MacOSX
+ * and in alloca.h in Linux, Solaris and MacOSX.
+ */
+#if (NJS_SOLARIS)
+#include <alloca.h>
+#endif
+
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/param.h>
#define _NJS_VALUE_H_INCLUDED_
-#include <njs_trace.h>
-#include <njs_queue.h>
-#include <njs_regex.h>
-#include <njs_random.h>
-#include <njs_djb_hash.h>
-#include <njs_mp.h>
-
-#include <math.h>
-
-
/*
* The order of the enum is used in njs_vmcode_typeof()
* and njs_object_prototype_to_string().
*/
#include <njs.h>
-#include <njs_sprintf.h>
#include <string.h>
#include <stdlib.h>
*/
#include <njs.h>
-#include <njs_sprintf.h>
#include <string.h>
#include <sys/resource.h>