chiark / gitweb /
*** empty log message ***
[sympathy.git] / src / history.h
1 /*
2  * history.h:
3  *
4  * Copyright (c) 2008 James McKenzie <james@fishsoup.dhs.org>,
5  * All rights reserved.
6  *
7  */
8
9 /*
10  * $Id$
11  */
12
13 /*
14  * $Log$
15  * Revision 1.3  2008/02/13 16:57:29  james
16  * *** empty log message ***
17  *
18  * Revision 1.2  2008/02/12 22:36:46  james
19  * *** empty log message ***
20  *
21  * Revision 1.1  2008/02/08 15:06:42  james
22  * *** empty log message ***
23  *
24  */
25
26 #ifndef __HISTORY_H__
27 #define __HISTORY_H__
28
29 typedef struct
30 {
31   int valid;
32   time_t t;
33   CRT_CA line[CRT_COLS];
34 } History_ent;
35
36 typedef struct
37 {
38   History_ent *lines;
39   int nlines;
40   int wptr;
41 } History;
42
43 #define HISTORY_INC(h,a) do { (a)++; if ((a)==((h)->nlines)) { (a)=0; }; } while (0)
44
45 #endif /* __HISTORY_H__ */