chiark
/
gitweb
/
~ianmdlvl
/
sympathy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[sympathy.git]
/
src
/
history.h
diff --git
a/src/history.h
b/src/history.h
index 79661afd674496ec131e949193ac4d0c56f7fb9a..5c5dd52cd0bb8530581fceff5d0654236ca2dbef 100644
(file)
--- a/
src/history.h
+++ b/
src/history.h
@@
-12,6
+12,9
@@
/*
* $Log$
/*
* $Log$
+ * 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.2 2008/02/12 22:36:46 james
* *** empty log message ***
*
@@
-37,4
+40,6
@@
typedef struct
int wptr;
} History;
int wptr;
} History;
+#define HISTORY_INC(h,a) do { (a)++; if ((a)==((h)->nlines)) { (a)=0; }; } while (0)
+
#endif /* __HISTORY_H__ */
#endif /* __HISTORY_H__ */