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.c; in cli_get_prompt()
441 char *retval, *tmp; in cli_completion_generator_var() local
443 …tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(active_symbol_table), … in cli_completion_generator_var()
444 if (retval) { in cli_completion_generator_var()
445 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_var()
446 retval[0] = '$'; in cli_completion_generator_var()
447 strcpy(&retval[1], tmp); in cli_completion_generator_var()
450 return retval; in cli_completion_generator_var()
455 char *retval, *tmp; in cli_completion_generator_ini() local
457 …tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(ini_directives), NULL … in cli_completion_generator_ini()
458 if (retval) { in cli_completion_generator_ini()
459 retval = malloc(strlen(tmp) + 2); in cli_completion_generator_ini()
460 retval[0] = '#'; in cli_completion_generator_ini()
461 strcpy(&retval[1], tmp); in cli_completion_generator_ini()
464 return retval; in cli_completion_generator_ini()
470 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func TSRMLS_CC); in cli_completion_generator_func() local
471 if (retval) { in cli_completion_generator_func()
473 retval = strdup(func->common.function_name); in cli_completion_generator_func()
476 return retval; in cli_completion_generator_func()
482 …char *retval = cli_completion_generator_ht(text, textlen, state, EG(class_table), (void**)&pce TSR… in cli_completion_generator_class() local
483 if (retval) { in cli_completion_generator_class()
485 retval = strdup((*pce)->name); in cli_completion_generator_class()
488 return retval; in cli_completion_generator_class()
494 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&pce TSRMLS_CC); in cli_completion_generator_define() local
495 if (retval) { in cli_completion_generator_define()
497 retval = strdup(retval); in cli_completion_generator_define()
500 return retval; in cli_completion_generator_define()
516 char *retval = NULL; in cli_completion_generator() local
524 retval = cli_completion_generator_var(text, textlen, &cli_completion_state TSRMLS_CC); in cli_completion_generator()
526 retval = cli_completion_generator_ini(text, textlen, &cli_completion_state TSRMLS_CC); in cli_completion_generator()
550 …retval = cli_completion_generator_func(lc_text, textlen, &cli_completion_state, pce ? &(*pce)->fun… in cli_completion_generator()
551 if (retval) { in cli_completion_generator()
556 …retval = cli_completion_generator_define(text, textlen, &cli_completion_state, pce ? &(*pce)->cons… in cli_completion_generator()
557 if (retval || pce) { in cli_completion_generator()
562 retval = cli_completion_generator_class(lc_text, textlen, &cli_completion_state TSRMLS_CC); in cli_completion_generator()
571 if (pce && retval) { in cli_completion_generator()
572 int len = class_name_len + 2 + strlen(retval) + 1; in cli_completion_generator()
575 snprintf(tmp, len, "%s::%s", (*pce)->name, retval); in cli_completion_generator()
576 free(retval); in cli_completion_generator()
577 retval = tmp; in cli_completion_generator()
581 return retval; in cli_completion_generator()