Lines Matching refs:retval

129 	smart_str retval = {0};  in cli_get_prompt()  local
137 smart_str_appendc(&retval, '\\'); in cli_get_prompt()
141 smart_str_appendc(&retval, '\n'); in cli_get_prompt()
145 smart_str_appendc(&retval, '\t'); in cli_get_prompt()
149 smart_str_appendc(&retval, '\033'); in cli_get_prompt()
155 smart_str_appends(&retval, PHP_VERSION); in cli_get_prompt()
159 smart_str_appends(&retval, block); in cli_get_prompt()
163 smart_str_appendc(&retval, prompt); in cli_get_prompt()
167 smart_str_appendc(&retval, '`'); in cli_get_prompt()
171 smart_str_appendc(&retval, '\\'); in cli_get_prompt()
181 CLIR_G(prompt_str) = &retval; in cli_get_prompt()
191 smart_str_appendc(&retval, *prompt_spec); in cli_get_prompt()
198 smart_str_appendc(&retval, '?'); in cli_get_prompt()
202 smart_str_0(&retval); in cli_get_prompt()
203 return retval.s; in cli_get_prompt()
445 char *retval, *tmp; in cli_completion_generator_var() local
448 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, symbol_table, NULL); in cli_completion_generator_var()
449 if (retval) { in cli_completion_generator_var()
450 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_var()
451 retval[0] = '$'; in cli_completion_generator_var()
452 strcpy(&retval[1], tmp); in cli_completion_generator_var()
455 return retval; in cli_completion_generator_var()
460 char *retval, *tmp; in cli_completion_generator_ini() local
462 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(ini_directives), NULL); in cli_completion_generator_ini()
463 if (retval) { in cli_completion_generator_ini()
464 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_ini()
465 retval[0] = '#'; in cli_completion_generator_ini()
466 strcpy(&retval[1], tmp); in cli_completion_generator_ini()
469 return retval; in cli_completion_generator_ini()
475 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func() local
476 if (retval) { in cli_completion_generator_func()
478 retval = strdup(ZSTR_VAL(func->common.function_name)); in cli_completion_generator_func()
481 return retval; in cli_completion_generator_func()
487 char *retval = cli_completion_generator_ht(text, textlen, state, EG(class_table), (void**)&ce); in cli_completion_generator_class() local
488 if (retval) { in cli_completion_generator_class()
490 retval = strdup(ZSTR_VAL(ce->name)); in cli_completion_generator_class()
493 return retval; in cli_completion_generator_class()
499 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&pce); in cli_completion_generator_define() local
500 if (retval) { in cli_completion_generator_define()
502 retval = strdup(retval); in cli_completion_generator_define()
505 return retval; in cli_completion_generator_define()
521 char *retval = NULL; in cli_completion_generator() local
528 retval = cli_completion_generator_var(text, textlen, &cli_completion_state); in cli_completion_generator()
530 retval = cli_completion_generator_ini(text, textlen, &cli_completion_state); in cli_completion_generator()
554retval = cli_completion_generator_func(lc_text, textlen, &cli_completion_state, ce ? &ce->function… in cli_completion_generator()
555 if (retval) { in cli_completion_generator()
561retval = cli_completion_generator_define(text, textlen, &cli_completion_state, ce ? &ce->constants… in cli_completion_generator()
562 if (retval || ce) { in cli_completion_generator()
568 retval = cli_completion_generator_class(lc_text, textlen, &cli_completion_state); in cli_completion_generator()
577 if (ce && retval) { in cli_completion_generator()
578 size_t len = ZSTR_LEN(ce->name) + 2 + strlen(retval) + 1; in cli_completion_generator()
581 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator()
582 free(retval); in cli_completion_generator()
583 retval = tmp; in cli_completion_generator()
587 return retval; in cli_completion_generator()