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.c627 nxt_python_init_strings(nxt_python_string_t *pstr) in nxt_python_init_strings() argument
631 while (pstr->string.start != NULL) { in nxt_python_init_strings()
632 obj = PyString_FromStringAndSize((char *) pstr->string.start, in nxt_python_init_strings()
633 pstr->string.length); in nxt_python_init_strings()
640 *pstr->object_p = obj; in nxt_python_init_strings()
642 pstr++; in nxt_python_init_strings()
650 nxt_python_done_strings(nxt_python_string_t *pstr) in nxt_python_done_strings() argument
654 while (pstr->string.start != NULL) { in nxt_python_done_strings()
655 obj = *pstr->object_p; in nxt_python_done_strings()
658 *pstr->object_p = NULL; in nxt_python_done_strings()
[all …]
/unit/src/ruby/
H A Dnxt_ruby.c157 nxt_ruby_string_t *pstr; in nxt_ruby_init_strings() local
159 pstr = nxt_rb_strings; in nxt_ruby_init_strings()
161 while (pstr->string.start != NULL) { in nxt_ruby_init_strings()
162 v = rb_str_new_static((char *) pstr->string.start, pstr->string.length); in nxt_ruby_init_strings()
172 *pstr->v = v; in nxt_ruby_init_strings()
174 rb_gc_register_address(pstr->v); in nxt_ruby_init_strings()
176 pstr++; in nxt_ruby_init_strings()
186 nxt_ruby_string_t *pstr; in nxt_ruby_done_strings() local
188 pstr = nxt_rb_strings; in nxt_ruby_done_strings()
193 *pstr->v = Qnil; in nxt_ruby_done_strings()
[all …]