Searched refs:_history_length (Results 1 – 2 of 2) sorted by relevance
220 static int _history_length = -1; /* do not truncate history by default */ variable246 if (!err && _history_length >= 0) in write_history_file()247 history_truncate_file(filename, _history_length); in write_history_file()282 if (!err && _history_length >= 0) in append_history_file()283 history_truncate_file(filename, _history_length); in append_history_file()303 int length = _history_length; in set_history_length()306 _history_length = length; in set_history_length()322 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()