Home
last modified time | relevance | path

Searched refs:pstr (Results 1 – 3 of 3) sorted by relevance

/unit/src/python/
H A Dnxt_python.h71 int nxt_python_init_strings(nxt_python_string_t *pstr);
72 void nxt_python_done_strings(nxt_python_string_t *pstr);
H A Dnxt_python.c629 nxt_python_init_strings(nxt_python_string_t *pstr) in nxt_python_init_strings() argument
633 while (pstr->string.start != NULL) { in nxt_python_init_strings()
634 obj = PyString_FromStringAndSize((char *) pstr->string.start, in nxt_python_init_strings()
635 pstr->string.length); in nxt_python_init_strings()
642 *pstr->object_p = obj; in nxt_python_init_strings()
644 pstr++; in nxt_python_init_strings()
652 nxt_python_done_strings(nxt_python_string_t *pstr) in nxt_python_done_strings() argument
656 while (pstr->string.start != NULL) { in nxt_python_done_strings()
657 obj = *pstr->object_p; in nxt_python_done_strings()
660 *pstr->object_p = NULL; in nxt_python_done_strings()
[all …]
/unit/src/ruby/
H A Dnxt_ruby.c158 nxt_ruby_string_t *pstr; in nxt_ruby_init_strings() local
160 pstr = nxt_rb_strings; in nxt_ruby_init_strings()
162 while (pstr->string.start != NULL) { in nxt_ruby_init_strings()
163 v = rb_str_new_static((char *) pstr->string.start, pstr->string.length); in nxt_ruby_init_strings()
173 *pstr->v = v; in nxt_ruby_init_strings()
175 rb_gc_register_address(pstr->v); in nxt_ruby_init_strings()
177 pstr++; in nxt_ruby_init_strings()
187 nxt_ruby_string_t *pstr; in nxt_ruby_done_strings() local
189 pstr = nxt_rb_strings; in nxt_ruby_done_strings()
194 *pstr->v = Qnil; in nxt_ruby_done_strings()
[all …]