X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=st.c;h=46cf2da6999592dd9f807b41d803cbf5c453f339;hb=30ec9a3dc354ab1a561c9edd808046bdf5dfd392;hp=65a0cb61197400aa7dbb79a4ff42a261bad1423f;hpb=8b8255ac0e188445f6904ff16272e9e93093cbde;p=st.git diff --git a/st.c b/st.c index 65a0cb6..46cf2da 100644 --- a/st.c +++ b/st.c @@ -38,15 +38,11 @@ /* macros */ #define IS_SET(flag) ((term.mode & (flag)) != 0) -#define NUMMAXLEN(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) #define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) == '\177') #define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f)) #define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c)) #define ISDELIM(u) (utf8strchr(worddelimiters, u) != NULL) -/* constants */ -#define ISO14755CMD "dmenu -w \"$WINDOWID\" -p codepoint: 7) - return; - if ((utf32 = strtoul(us, &e, 16)) == ULONG_MAX || - (*e != '\n' && *e != '\0')) - return; - - ttywrite(uc, utf8encode(utf32, uc), 1); -} - void toggleprinter(const Arg *arg) {