()
| 1153 | } |
| 1154 | |
| 1155 | protected void pushHistory() { |
| 1156 | if (historyCount > 0 && location.equals(history[historyCount - 1].loc)) |
| 1157 | { |
| 1158 | return; |
| 1159 | } |
| 1160 | |
| 1161 | if (historyCount + 1 >= history.length) { |
| 1162 | for (int i = 0; i < history.length - 1; i++) |
| 1163 | history[i] = history[i + 1]; |
| 1164 | history[historyCount] = saveMark(); |
| 1165 | } else { |
| 1166 | history[historyCount++] = saveMark(); |
| 1167 | } |
| 1168 | } |
| 1169 | |
| 1170 | protected void pushFuture() { |
| 1171 | if (futureCount + 1 >= future.length) { |