nxt_ruby.c (1488:6976d36be926) nxt_ruby.c (1489:4a3ec07f4b19)
1/*
2 * Copyright (C) Alexander Borisov
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include <ruby/nxt_ruby.h>
7
8#include <nxt_unit.h>
9#include <nxt_unit_request.h>
1/*
2 * Copyright (C) Alexander Borisov
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include <ruby/nxt_ruby.h>
7
8#include <nxt_unit.h>
9#include <nxt_unit_request.h>
10#include <nxt_ruby_mounts.h>
10
11
12#define NXT_RUBY_RACK_API_VERSION_MAJOR 1
13#define NXT_RUBY_RACK_API_VERSION_MINOR 3
14
15#define NXT_RUBY_STRINGIZE_HELPER(x) #x
16#define NXT_RUBY_STRINGIZE(x) NXT_RUBY_STRINGIZE_HELPER(x)
17

--- 55 unchanged lines hidden (view full) ---

73static VALUE nxt_ruby_io_error;
74static nxt_ruby_run_ctx_t nxt_ruby_run_ctx;
75
76NXT_EXPORT nxt_app_module_t nxt_app_module = {
77 sizeof(compat),
78 compat,
79 nxt_string("ruby"),
80 ruby_version,
11
12
13#define NXT_RUBY_RACK_API_VERSION_MAJOR 1
14#define NXT_RUBY_RACK_API_VERSION_MINOR 3
15
16#define NXT_RUBY_STRINGIZE_HELPER(x) #x
17#define NXT_RUBY_STRINGIZE(x) NXT_RUBY_STRINGIZE_HELPER(x)
18

--- 55 unchanged lines hidden (view full) ---

74static VALUE nxt_ruby_io_error;
75static nxt_ruby_run_ctx_t nxt_ruby_run_ctx;
76
77NXT_EXPORT nxt_app_module_t nxt_app_module = {
78 sizeof(compat),
79 compat,
80 nxt_string("ruby"),
81 ruby_version,
82#if (NXT_HAVE_ISOLATION_ROOTFS)
83 nxt_ruby_mounts,
84 nxt_nitems(nxt_ruby_mounts),
85#endif
81 NULL,
82 nxt_ruby_start,
83};
84
85
86static nxt_int_t
87nxt_ruby_start(nxt_task_t *task, nxt_process_data_t *data)
88{

--- 813 unchanged lines hidden ---
86 NULL,
87 nxt_ruby_start,
88};
89
90
91static nxt_int_t
92nxt_ruby_start(nxt_task_t *task, nxt_process_data_t *data)
93{

--- 813 unchanged lines hidden ---