Lines Matching refs:expansion
1 /* tilde.c -- tilde expansion code (~/foo := $HOME/foo).
46 which is the expansion, or a NULL pointer if there is no expansion. */
59 /* Find the start of a tilde expansion in STRING, and return the index of
60 the tilde which starts the expansion. Place the length of the text
91 /* Find the end of a tilde expansion in STRING, and return the index of
129 char *tilde_word, *expansion;
132 /* Make START point to the tilde which starts the expansion. */
159 expansion = tilde_expand_word (tilde_word);
162 len = strlen (expansion);
166 strcpy (result + result_index, expansion);
168 free (expansion);
176 /* Do the work of tilde expansion on FILENAME. FILENAME starts with a
177 tilde. If there is no expansion, call tilde_expansion_failure_hook. */
232 expansion, then let them try. */
235 char *expansion = (*tilde_expansion_failure_hook) (username);
237 if (expansion)
239 temp_name = xmalloc (1 + strlen (expansion)
241 strcpy (temp_name, expansion);
243 free (expansion);