# HG changeset patch # User jwe # Date 949489823 0 # Node ID 2dbaadac8f8685d666f246cd23a386248feb0067 # Parent 19d6fea99ba105659df08a9e293669f92bbf0f09 [project @ 2000-02-02 11:10:23 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2000-02-02 John W. Eaton + * Map.cc (index_to_CHptr): Now a macro. + * defun-int.h (UNDERSCORIFY): New macro. (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. diff --git a/src/Map.cc b/src/Map.cc --- a/src/Map.cc +++ b/src/Map.cc @@ -119,12 +119,7 @@ return (((X_CAST (unsigned, t)) & 1) == 0); } -template -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 unsigned int