Lines Matching refs:history
351 struct history_item history[MAX_HISTORY];
357 memset(history, 0, sizeof(history));
397 if (history[i].kfse == NULL) {
404 // at and one of the events in the history table are for the
408 if (history[i].kfse->str == kfse->str) {
412 history[i].kfse->flags |= KFSE_RECYCLED_EVENT;
413 return history[i].kfse;
417 if (i < MAX_HISTORY && history[i].kfse == NULL) {
418 history[i].kfse = kfse;
419 history[i].counter = 1;
421 qsort(history, MAX_HISTORY, sizeof(struct history_item), compare_history_items);
424 if (history[MAX_HISTORY-1].counter == 1) {
425 history[MAX_HISTORY-1].kfse = kfse;