[project @ 2000-02-02 11:10:23 by jwe]
author |
jwe |
date |
Wed, 02 Feb 2000 11:10:23 +0000 |
parents |
19d6fea99ba1 |
children |
7a23cbae0393 |
files |
src/ChangeLog src/Map.cc |
diffstat |
2 files changed, 3 insertions(+), 6 deletions(-)
[+]
|
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu>
+ * Map.cc (index_to_CHptr): Now a macro.
+
* defun-int.h (UNDERSCORIFY): New macro.
(DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it.
--- a/src/Map.cc
+++ b/src/Map.cc
@@ -119,12 +119,7 @@
return (((X_CAST (unsigned, t)) & 1) == 0);
}
-template <class C>
-void *
-index_to_CHptr (int i)
-{
- return X_CAST (void *, (i << 1) + 1);
-}
+#define index_to_CHptr(i) (X_CAST (void *, (i << 1) + 1))
template <class C>
unsigned int