Lines Matching refs:retval
143 smart_str retval = {0}; in cli_get_prompt() local
150 smart_str_appendc(&retval, '\\'); in cli_get_prompt()
154 smart_str_appendc(&retval, '\n'); in cli_get_prompt()
158 smart_str_appendc(&retval, '\t'); in cli_get_prompt()
162 smart_str_appendc(&retval, '\033'); in cli_get_prompt()
168 smart_str_appends(&retval, PHP_VERSION); in cli_get_prompt()
172 smart_str_appends(&retval, block); in cli_get_prompt()
176 smart_str_appendc(&retval, prompt); in cli_get_prompt()
180 smart_str_appendc(&retval, '`'); in cli_get_prompt()
184 smart_str_appendc(&retval, '\\'); in cli_get_prompt()
194 CLIR_G(prompt_str) = &retval; in cli_get_prompt()
203 smart_str_appendc(&retval, *prompt_spec); in cli_get_prompt()
206 smart_str_0(&retval); in cli_get_prompt()
207 return retval.s; in cli_get_prompt()
434 char *retval, *tmp; in cli_completion_generator_var() local
437 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, symbol_table, NULL); in cli_completion_generator_var()
438 if (retval) { in cli_completion_generator_var()
439 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_var()
440 retval[0] = '$'; in cli_completion_generator_var()
441 strcpy(&retval[1], tmp); in cli_completion_generator_var()
444 return retval; in cli_completion_generator_var()
449 char *retval, *tmp; in cli_completion_generator_ini() local
451 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(ini_directives), NULL); in cli_completion_generator_ini()
452 if (retval) { in cli_completion_generator_ini()
453 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_ini()
454 retval[0] = '#'; in cli_completion_generator_ini()
455 strcpy(&retval[1], tmp); in cli_completion_generator_ini()
458 return retval; in cli_completion_generator_ini()
464 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func() local
465 if (retval) { in cli_completion_generator_func()
467 retval = strdup(ZSTR_VAL(func->common.function_name)); in cli_completion_generator_func()
470 return retval; in cli_completion_generator_func()
476 char *retval = cli_completion_generator_ht(text, textlen, state, EG(class_table), (void**)&ce); in cli_completion_generator_class() local
477 if (retval) { in cli_completion_generator_class()
479 retval = strdup(ZSTR_VAL(ce->name)); in cli_completion_generator_class()
482 return retval; in cli_completion_generator_class()
488 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&pce); in cli_completion_generator_define() local
489 if (retval) { in cli_completion_generator_define()
491 retval = strdup(retval); in cli_completion_generator_define()
494 return retval; in cli_completion_generator_define()
510 char *retval = NULL; in cli_completion_generator() local
517 retval = cli_completion_generator_var(text, textlen, &cli_completion_state); in cli_completion_generator()
519 retval = cli_completion_generator_ini(text, textlen, &cli_completion_state); in cli_completion_generator()
544 …retval = cli_completion_generator_func(lc_text, textlen, &cli_completion_state, ce ? &ce->function… in cli_completion_generator()
545 if (retval) { in cli_completion_generator()
550 …retval = cli_completion_generator_define(text, textlen, &cli_completion_state, ce ? &ce->constants… in cli_completion_generator()
551 if (retval || ce) { in cli_completion_generator()
556 retval = cli_completion_generator_class(lc_text, textlen, &cli_completion_state); in cli_completion_generator()
565 if (ce && retval) { in cli_completion_generator()
566 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator()
569 snprintf(tmp, len, "%s::%s", ZSTR_VAL(ce->name), retval); in cli_completion_generator()
570 free(retval); in cli_completion_generator()
571 retval = tmp; in cli_completion_generator()
575 return retval; in cli_completion_generator()