• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revision3851 (tree)
Time2018-09-15 00:57:05
Authormagicant

Log Message

Revise comments

Change Summary

Incremental Difference

--- yash/trunk/input.c (revision 3850)
+++ yash/trunk/input.c (revision 3851)
@@ -117,7 +117,7 @@
117117 assert(false);
118118 case W_INTERRUPTED:
119119 // Ignore interruption and continue reading, because:
120- // 1) POSIX does not require to do so, and
120+ // 1) POSIX does not require to handle interruption, and
121121 // 2) the buffer for canonical-mode editing cannot be
122122 // controlled from the shell.
123123 goto read_input;
--- yash/trunk/input.h (revision 3850)
+++ yash/trunk/input.h (revision 3851)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* input.h: functions for input of command line */
3-/* (C) 2007-2011 magicant */
3+/* (C) 2007-2018 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -64,6 +64,9 @@
6464 * Input is done line-wise: the buffer contents are always terminated by a
6565 * newline character (L'\n') except when the end of file is reached and the last
6666 * line does not have a newline.
67+ * An input function should not read more than one line at a time, as commands
68+ * (which may contain alias definitions) should be executed as soon as possible,
69+ * before the next line is parsed.
6770 * The result is indicated by a value of the `inputresult_T' type. If the return
6871 * value is other than INPUT_OK, the buffer is unchanged.
6972 * The input function may be called even after it returned a value other than
--- yash/trunk/parser.c (revision 3850)
+++ yash/trunk/parser.c (revision 3851)
@@ -1,6 +1,6 @@
11 /* Yash: yet another shell */
22 /* parser.c: syntax parser */
3-/* (C) 2007-2017 magicant */
3+/* (C) 2007-2018 magicant */
44
55 /* This program is free software: you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
@@ -388,7 +388,7 @@
388388 struct aliaslist_T *aliases;
389389 } parsestate_T;
390390 /* info: contains parameter that affect the behavior of parsing.
391- * error: set to true when an parsing error occurs.
391+ * error: set to true when a parsing error occurs.
392392 * src: a buffer that contains the source code to parse.
393393 * index: the index to the string in `src'.
394394 * indicates the character position that is being parsed.
Show on old repository browser