swm

sigma window manager
git clone git://wolog.xyz/swm
Log | Files | Refs | README | LICENSE

util.h (701B)


      1 /*
      2  * Copyright (C) Raymond Cole <rc@wolog.xyz>
      3  *
      4  * Licensed under the GNU General Public License; either version 3 of
      5  * the License, or (at your option) any later version.  See the LICENSE
      6  * file for details.
      7  *
      8  * Portions of the code originally belong to dwm as developed by Anselm
      9  * R. Garbe et al.  See LICENSE-dwm for the copyright and license details
     10  * of those portions.
     11  */
     12 
     13 #define MAX(A, B)         ((A) > (B) ? (A) : (B))
     14 #define MIN(A, B)         ((A) < (B) ? (A) : (B))
     15 #define BETWEEN(X, A, B)  ((A) <= (X) && (X) <= (B))
     16 
     17 #ifdef va_arg
     18 void vwarn(const char *fmt, va_list ap);
     19 #endif
     20 void warn(const char *fmt, ...);
     21 void die(const char *fmt, ...);
     22 
     23 extern const char *progname;