-- 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:
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
--- 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
--- 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