X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.h;h=e1b5057aba826ba19fe926d1f241fe97a8231be2;hb=58950754c6cfa7231f0f8774c40183d5a09b8ee3;hp=3d351b69ea3746bf80de58a1ce1a2b2a4dc30ba5;hpb=a2a704492b9f4d2408d180f7aeeacf4c789a1d67;p=st.git diff --git a/st.h b/st.h index 3d351b6..e1b5057 100644 --- a/st.h +++ b/st.h @@ -8,6 +8,7 @@ #define MAX(a, b) ((a) < (b) ? (b) : (a)) #define LEN(a) (sizeof(a) / sizeof(a)[0]) #define BETWEEN(x, a, b) ((a) <= (x) && (x) <= (b)) +#define OUT(x, a, b) ((a) <= (x) || (x) <= (b)) #define DIVCEIL(n, d) (((n) + ((d) - 1)) / (d)) #define DEFAULT(a, b) (a) = (a) ? (a) : (b) #define LIMIT(x, a, b) (x) = (x) < (a) ? (a) : (x) > (b) ? (b) : (x) @@ -81,6 +82,7 @@ void die(const char *, ...); void redraw(void); void draw(void); +void newterm(const Arg *); void printscreen(const Arg *); void printsel(const Arg *); void sendbreak(const Arg *); @@ -111,6 +113,8 @@ void *xmalloc(size_t); void *xrealloc(void *, size_t); char *xstrdup(char *); +int subprocwd(char *); + /* config.h globals */ extern char *utmp; extern char *scroll;