aboutsummaryrefslogtreecommitdiffstats
path: root/src/history.h
diff options
context:
space:
mode:
authorjames <>2008-02-13 16:57:29 +0000
committerjames <>2008-02-13 16:57:29 +0000
commite32ce0cfdccf5240ae29ef06a13078ae37ee521a (patch)
treef036688b6831dd6fd288df03023950597987c031 /src/history.h
parent23dc931ca671e938da071d24d8e9b6052e49923a (diff)
downloadsympathy-e32ce0cfdccf5240ae29ef06a13078ae37ee521a.tar.gz
sympathy-e32ce0cfdccf5240ae29ef06a13078ae37ee521a.tar.bz2
sympathy-e32ce0cfdccf5240ae29ef06a13078ae37ee521a.zip
*** empty log message ***
Diffstat (limited to 'src/history.h')
-rw-r--r--src/history.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/history.h b/src/history.h
index 79661af..5c5dd52 100644
--- a/src/history.h
+++ b/src/history.h
@@ -12,6 +12,9 @@
/*
* $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 ***
*
@@ -37,4 +40,6 @@ typedef struct
int wptr;
} History;
+#define HISTORY_INC(h,a) do { (a)++; if ((a)==((h)->nlines)) { (a)=0; }; } while (0)
+
#endif /* __HISTORY_H__ */