chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix distribution stuff.
[mLib]
/
macros.h
diff --git
a/macros.h
b/macros.h
index b8ea4dfbb118215e1a449450a8e545322c5d4fdb..4dd6901fa0d3626f8c7cfdbaeeaaa184137bc1a3 100644
(file)
--- a/
macros.h
+++ b/
macros.h
@@
-1,5
+1,8
@@
/* -*-c-*-
/* -*-c-*-
- Handy macrosose]]
+ *
+ * $Id$
+ *
+ * Handy macros
*
* (c) 2003 Straylight/Edgeware
*/
*
* (c) 2003 Straylight/Edgeware
*/
@@
-24,14
+27,6
@@
* MA 02111-1307, USA.
*/
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: macros.h,v $
- * Revision 1.1 2003/12/13 20:37:59 mdw
- * Add adns support in background resolver.
- *
- */
-
#ifndef MLIB_MACROS_H
#define MLIB_MACROS_H
#ifndef MLIB_MACROS_H
#define MLIB_MACROS_H
@@
-43,6
+38,12
@@
#define N(v) (sizeof(v)/sizeof(*v))
#define N(v) (sizeof(v)/sizeof(*v))
+#define MLIB__STR(x) #x
+#define STR(x) MLIB__STR(x)
+
+#define MLIB__GLUE(x, y) x##y
+#define GLUE(x, y) MLIB__GLUE(x, y)
+
/*----- That's all, folks -------------------------------------------------*/
#ifdef __cplusplus
/*----- That's all, folks -------------------------------------------------*/
#ifdef __cplusplus