Lines Matching refs:data
552 char *data; member
3248 if (o->data)
3249 o->data[0] = '\0';
3254 free(o->data);
3260 free(o->data);
3267 o->data = xrealloc(o->data, 1 + o->maxlen);
3277 o->data[o->length] = ch;
3279 o->data[o->length] = '\0';
3291 o->data[o->length] = '\0';
3298 ((char*)mempcpy(&o->data[o->length], str, len))[0] = '\0';
3349 G.x_mode_buf.data[len] = '\n';
3350 full_write(G.x_mode_fd, G.x_mode_buf.data, len + 1);
3388 o->data[o->length] = '\\';
3391 o->data[o->length] = ch;
3393 o->data[o->length] = '\0';
3403 o->data[o->length] = '\\';
3407 o->data[o->length] = ch;
3409 o->data[o->length] = '\0';
3430 o->data[o->length] = '\\';
3434 o->data[o->length] = ch;
3437 o->data[o->length] = '\0';
3467 char **list = (char**)o->data;
3480 o->data + (int)(uintptr_t)list[i] + string_start,
3481 o->data + (int)(uintptr_t)list[i] + string_start);
3485 const char *p = o->data + (int)(uintptr_t)list[n - 1] + string_start;
3488 fdprintf(2, " total_sz:%ld\n", (long)((p + strlen(p) + 1) - o->data));
3490 printf(" total_sz:%ld\n", (long)((p + strlen(p) + 1) - o->data));
3503 char **list = (char**)o->data;
3514 o->data = xrealloc(o->data, o->maxlen + 1);
3515 list = (char**)o->data;
3545 char **list = (char**)o->data;
3760 debug_printf_glob("start perform_glob: n:%d o->data:%p\n", n, o->data);
3761 if (!o->data)
3763 pattern = o->data + o_get_last_ptr(o, n);
3767 o->length = unbackslash(pattern) - o->data;
3774 o->length = pattern - o->data;
3811 debug_printf_glob("start perform_glob: n:%d o->data:%p\n", n, o->data);
3812 if (!o->data)
3814 pattern = o->data + o_get_last_ptr(o, n);
3821 o->length = unbackslash(pattern) - o->data;
3849 o->length = pattern - o->data;
3897 list = (char**)o->data;
3902 list[n] = o->data + (int)(uintptr_t)list[n] + string_start;
4194 ctx->as_string.data,
4343 if (strcmp(word->data, r->literal) == 0)
4388 syntax_error_at(ctx->word.data);
4423 o_addstr(&old->as_string, ctx->as_string.data);
4426 str = old->as_string.data + len;
4427 if (str > old->as_string.data)
4429 while (str > old->as_string.data && isalpha(str[-1]))
4452 debug_printf_parse("done_word entered: '%s' %p\n", ctx->word.data, command);
4484 ctx->pending_redirect->rd_filename = xstrdup(ctx->word.data);
4497 debug_printf_parse("word stored in rd_filename: '%s'\n", ctx->word.data);
4504 && strcmp(ctx->word.data, "esac") != 0 /* not "... pattern) cmd;; esac" */
4513 && strcmp(ctx->word.data, "]]") == 0
4554 if (strcmp(ctx->word.data, "[[") == 0) {
4575 IF_HUSH_LOCAL( || strcmp(ctx->word.data, "local") == 0)
4576 IF_HUSH_EXPORT( || strcmp(ctx->word.data, "export") == 0)
4577 IF_HUSH_READONLY(|| strcmp(ctx->word.data, "readonly") == 0)
4589 syntax_error_at(ctx->word.data);
4610 command->argv = add_string_to_strings(command->argv, xstrdup(ctx->word.data));
4794 if (o->data == NULL)
4796 num = bb_strtou(o->data, NULL, 10);
4823 heredoc.data = xzalloc(1); /* start as "", not as NULL */
4839 if (strcmp(heredoc.data + past_EOL, word) == 0) {
4840 heredoc.data[past_EOL] = '\0';
4841 debug_printf_heredoc("parsed '%s' heredoc '%s'\n", word, heredoc.data);
4842 return heredoc.data;
4880 heredoc.data[--heredoc.length] = '\0';
5309 debug_printf_parse("%s return '%s' ch:'%c'\n", __func__, dest->data, ch);
5608 o_addstr(as_string, dest->data + pos);
5658 o_addstr(as_string, dest->data + pos);
5674 o_addstr(as_string, dest->data + pos);
5824 ctx.word.data = xzalloc(1); /* start as "", not as NULL */
5886 debug_printf_parse("as_string1 '%s'\n", ctx.as_string.data);
5888 *pstring = ctx.as_string.data;
6005 && endofname(ctx.word.data)[0] == '='
6123 || (!ctx.word.has_quoted_part && strcmp(ctx.word.data, "esac") == 0)
6139 debug_printf_parse("as_string2 '%s'\n", ctx.as_string.data);
6141 *pstring = ctx.as_string.data;
6331 o_addstr(&ctx.as_string, ctx.word.data + pos);
6601 || output->data[output->length - 1]
6648 exp_str = expand_string_to_string(dest.data,
6703 dest.data = xzalloc(1); /* start as "", not as NULL */
6768 debug_printf_parse("encode: '%s' -> '%s'\n", str, dest.data);
6769 exp_str = expand_string_to_string(dest.data,
6774 debug_printf_parse("expand: '%s' -> '%s'\n", dest.data, exp_str);
6818 if (dest.data) {
6819 n = expand_vars_to_list(output, n, dest.data);
6909 if (dest.data) {
6910 n = expand_vars_to_list(output, n, dest.data);
7581 debug_printf_subst("SUBST RES:%d '%s'\n", G.last_exitcode, subst_result.data);
7582 n = append_str_maybe_ifs_split(output, n, first_ch, subst_result.data);
7607 output->data[output->length++] = '\\';