X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fhistory.h;h=af98222e4b10723faf25f9ed0788fa55239b51f1;hb=refs%2Fheads%2Fmaster;hp=6c1bdbad0ea9b1316a3ebc7774de59cc3d0f7f9c;hpb=cb8fb02869f855c49227af8f4ea52016b316134b;p=sympathy.git diff --git a/src/history.h b/src/history.h index 6c1bdba..af98222 100644 --- a/src/history.h +++ b/src/history.h @@ -1,17 +1,35 @@ -/* +/* * history.h: * - * Copyright (c) 2008 James McKenzie , + * Copyright (c) 2008 James McKenzie , * All rights reserved. * */ -/* - * $Id$ +/* + * $Id: history.h,v 1.7 2008/03/10 11:49:33 james Exp $ */ -/* - * $Log$ +/* + * $Log: history.h,v $ + * Revision 1.7 2008/03/10 11:49:33 james + * *** empty log message *** + * + * Revision 1.6 2008/03/07 12:37:04 james + * *** empty log message *** + * + * Revision 1.5 2008/03/03 06:04:42 james + * *** empty log message *** + * + * Revision 1.4 2008/03/02 10:37:56 james + * *** empty log message *** + * + * Revision 1.3 2008/02/13 16:57:29 james + * *** empty log message *** + * + * Revision 1.2 2008/02/12 22:36:46 james + * *** empty log message *** + * * Revision 1.1 2008/02/08 15:06:42 james * *** empty log message *** * @@ -21,15 +39,17 @@ #define __HISTORY_H__ typedef struct { -int valid; -time_t t; -CRT_CA line[CRT_COLS]; + int valid; + time_t t; + CRT_CA line[CRT_COLS]; } History_ent; typedef struct { -History_ent *lines; -int nlines; -int wptr; + History_ent *lines; + int nlines; + int wptr; } History; +#define HISTORY_INC(h,a) do { (a)++; if ((a)==((h)->nlines)) { (a)=0; }; } while (0) + #endif /* __HISTORY_H__ */