Move MOD macro to rxvtutil.h.
authorayin <ayin>
Fri, 14 Dec 2007 11:11:31 +0000 (11:11 +0000)
committerayin <ayin>
Fri, 14 Dec 2007 11:11:31 +0000 (11:11 +0000)
src/rxvt.h
src/rxvtutil.h

index 400798719b28699874cb5c826097ea67b4568e3a..fc154747ac3fe3a23b745e03ea1a378edcfa660e 100644 (file)
@@ -657,9 +657,6 @@ typedef struct _mwmhints {
 #define Width2Pixel(n)          ((int32_t)(n) * (int32_t)fwidth)
 #define Height2Pixel(n)         ((int32_t)(n) * (int32_t)fheight)
 
-// for m >= -n, ensure remainder lies between 0..n-1
-#define MOD(m,n) (((m) + (n)) % (n))
-
 #define LINENO(n) MOD (term_start + int(n), total_rows)
 #define ROW(n) row_buf [LINENO (n)]
 
index 64ff670a06e45d330e99a28c03b4267c5857e4dd..43f48fa04aa64fee3234f0c34af8ab1ea345c142 100644 (file)
@@ -101,6 +101,9 @@ int popcount (unsigned int x) CONST;
 #define IN_RANGE_EXC(val,beg,end) \
   ((unsigned int)(val) - (unsigned int)(beg) <  (unsigned int)(end) - (unsigned int)(beg))
 
+// for m >= -n, ensure remainder lies between 0..n-1
+#define MOD(m,n) (((m) + (n)) % (n))
+
 // makes dynamically allocated objects zero-initialised
 struct zero_initialized {
   void *operator new (size_t s);