-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 62141279429a6e337a2ad3aa370dd8e8cc148d15:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 62141279429a6e337a2ad3aa370dd8e8cc148d15
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Fri Dec 14 11:11:31 2007 +0000

    Move MOD macro to rxvtutil.h.

diff --git a/src/rxvt.h b/src/rxvt.h

index 400798719b28699874cb5c826097ea67b4568e3a..

index ..fc154747ac3fe3a23b745e03ea1a378edcfa660e 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -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)]

diff --git a/src/rxvtutil.h b/src/rxvtutil.h

index 64ff670a06e45d330e99a28c03b4267c5857e4dd..

index ..43f48fa04aa64fee3234f0c34af8ab1ea345c142 100644

--- a/src/rxvtutil.h
+++ b/src/rxvtutil.h
@@ -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);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 11:08:40 2024