projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add function prototypes
[bertos.git]
/
compiler.h
diff --git
a/compiler.h
b/compiler.h
index bf96ecb57d014ee6068de798094643ba5d2cefa6..8f4a849a7740bc3363899d48d5e7531982e8dbce 100755
(executable)
--- a/
compiler.h
+++ b/
compiler.h
@@
-3,7
+3,7
@@
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* Copyright 2001,2002,2003 Bernardo Innocenti <bernie@codewiz.org>
* <!--
* Copyright 2003,2004 Develer S.r.l. (http://www.develer.com/)
* Copyright 2001,2002,2003 Bernardo Innocenti <bernie@codewiz.org>
- *
All Rights Reserved
.
+ *
This file is part of DevLib - See devlib/README for information
.
* -->
*
* \version $Id$
* -->
*
* \version $Id$
@@
-15,6
+15,12
@@
/*
* $Log$
/*
* $Log$
+ * Revision 1.3 2004/06/06 18:00:39 bernie
+ * PP_CAT(): New macro.
+ *
+ * Revision 1.2 2004/06/03 11:27:09 bernie
+ * Add dual-license information.
+ *
* Revision 1.1 2004/05/23 17:48:35 bernie
* Add top-level files.
*
* Revision 1.1 2004/05/23 17:48:35 bernie
* Add top-level files.
*
@@
-238,6
+244,10
@@
#define UINT32_LOG2(x) \
((x < 65536UL) ? UINT16_LOG2(x) : UINT16_LOG2((x) >> 16) + 16)
#define UINT32_LOG2(x) \
((x < 65536UL) ? UINT16_LOG2(x) : UINT16_LOG2((x) >> 16) + 16)
+/*! Concatenate two different preprocessor tokens (allowing macros to expand) */
+#define PP_CAT(x,y) PP_CAT__(x,y)
+#define PP_CAT__(x,y) x ## y
+
/* Type definitions - should go in <sys/types.h> */
#if !(defined(size_t) || defined(_SIZE_T_DEFINED))
#define size_t unsigned int
/* Type definitions - should go in <sys/types.h> */
#if !(defined(size_t) || defined(_SIZE_T_DEFINED))
#define size_t unsigned int