Searched refs:_history_length (Results 1 – 2 of 2) sorted by relevance
219 static int _history_length = -1; /* do not truncate history by default */ variable245 if (!err && _history_length >= 0) in write_history_file()246 history_truncate_file(filename, _history_length); in write_history_file()281 if (!err && _history_length >= 0) in append_history_file()282 history_truncate_file(filename, _history_length); in append_history_file()302 int length = _history_length; in set_history_length()305 _history_length = length; in set_history_length()321 return PyLong_FromLong(_history_length); in get_history_length()
137 static int _history_length = -1; /* do not truncate history by default */ variable153 if (!errno && _history_length >= 0) in write_history_file()154 history_truncate_file(s, _history_length); in write_history_file()171 int length = _history_length; in set_history_length()174 _history_length = length; in set_history_length()190 return PyInt_FromLong(_history_length); in get_history_length()