| 492 | #ifdef CHRONICLE |
| 493 | |
| 494 | void |
| 495 | gamelog_add(long glflags, long gltime, const char *str) |
| 496 | { |
| 497 | struct gamelog_line *tmp; |
| 498 | struct gamelog_line *lst = gg.gamelog; |
| 499 | |
| 500 | tmp = (struct gamelog_line *) alloc(sizeof (struct gamelog_line)); |
| 501 | tmp->turn = gltime; |
| 502 | tmp->flags = glflags; |
| 503 | tmp->text = dupstr(str); |
| 504 | tmp->next = NULL; |
| 505 | while (lst && lst->next) |
| 506 | lst = lst->next; |
| 507 | if (!lst) |
| 508 | gg.gamelog = tmp; |
| 509 | else |
| 510 | lst->next = tmp; |
| 511 | } |
| 512 | |
| 513 | void |
| 514 | livelog_printf(long ll_type, const char *line, ...) |
no test coverage detected