Lines Matching refs:end_of_history
57 static struct history *end_of_history; /* �ҥ��ȥ�κǸ� */ variable
85 hist = beginning_of_history = end_of_history = add_history = (struct history *) area_pter; in init_history()
116 end_of_history->num = 0;
118 if (end_of_history->hbuffer == NULL)
119 end_of_history->hbuffer = (w_char *) malloc (sizeof (w_char));
121 …end_of_history->hbuffer = (w_char *) realloc (end_of_history->hbuffer, (end_of_history->num + 1) *…
122 Strncpy (end_of_history->hbuffer + end_of_history->num, wstr, 1);
123 if (++(end_of_history->num) >= maxchg)
132 if (end_of_history->num == n && Strncmp (end_of_history->hbuffer, wstr, n) == 0)
139 if (end_of_history->hbuffer != NULL)
140 free (end_of_history->hbuffer);
141 end_of_history->hbuffer = (w_char *) malloc (n * sizeof (w_char));
142 Strncpy (end_of_history->hbuffer, wstr, n);
143 end_of_history->num = n;
152 if (add_history == beginning_of_history && end_of_history != beginning_of_history) in set_up_history()
154 end_of_history = add_history; in set_up_history()
169 current_history = end_of_history;
188 Strncpy (wbuf, end_of_history->hbuffer, end_of_history->num);
189 *(wbuf + end_of_history->num) = 0;
211 if (!history_cunt || current_history == end_of_history || current_history == NULL)