• R/O
  • SSH
  • HTTPS

yash: 提交


Commit MetaInfo

修訂4098 (tree)
時間2020-10-04 22:45:11
作者magicant

Log Message

Remove fixed parameter from expand_single_with_glob

Change Summary

差異

--- yash/trunk/expand.c (revision 4097)
+++ yash/trunk/expand.c (revision 4098)
@@ -329,9 +329,9 @@
329329 * If successful, the resulting word is returned as a newly malloced string.
330330 * On error, an error message is printed and NULL is returned.
331331 * On error in a non-interactive shell, the shell exits. */
332-char *expand_single_with_glob(const wordunit_T *arg, tildetype_T tilde)
332+char *expand_single_with_glob(const wordunit_T *arg)
333333 {
334- wchar_t *exp = expand_single(arg, tilde, Q_WORD, ES_QUOTED_HARD);
334+ wchar_t *exp = expand_single(arg, TT_SINGLE, Q_WORD, ES_QUOTED_HARD);
335335 char *result;
336336
337337 if (exp == NULL)
--- yash/trunk/expand.h (revision 4097)
+++ yash/trunk/expand.h (revision 4098)
@@ -99,8 +99,7 @@
9999 const struct wordunit_T *w,
100100 tildetype_T tilde, quoting_T quoting, escaping_T escaping)
101101 __attribute__((malloc,warn_unused_result));
102-extern char *expand_single_with_glob(
103- const struct wordunit_T *arg, tildetype_T tilde)
102+extern char *expand_single_with_glob(const struct wordunit_T *arg)
104103 __attribute__((malloc,warn_unused_result));
105104
106105 extern wchar_t *extract_fields(
--- yash/trunk/redir.c (revision 4097)
+++ yash/trunk/redir.c (revision 4098)
@@ -446,7 +446,7 @@
446446 char *expand_redir_filename(const struct wordunit_T *filename)
447447 {
448448 if (is_interactive) {
449- return expand_single_with_glob(filename, TT_SINGLE);
449+ return expand_single_with_glob(filename);
450450 } else {
451451 wchar_t *result = expand_single(filename, TT_SINGLE, Q_WORD, ES_NONE);
452452 if (result == NULL)
Show on old repository browser