Use #if, not #ifdef
This commit was SVN r764.
Этот коммит содержится в:
родитель
be15a10142
Коммит
95c41a1a3d
@ -175,7 +175,7 @@ lam_list_item_t *lam_list_remove_first(lam_list_t *list)
|
||||
/* reset the head next pointer */
|
||||
list->lam_list_head.lam_list_next=item->lam_list_next;
|
||||
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
/* debug code */
|
||||
item->lam_list_prev=(lam_list_item_t *)NULL;
|
||||
item->lam_list_next=(lam_list_item_t *)NULL;
|
||||
@ -207,7 +207,7 @@ lam_list_item_t *lam_list_remove_last(lam_list_t *list)
|
||||
/* reset tail's previous pointer */
|
||||
list->lam_list_tail.lam_list_prev=item->lam_list_prev;
|
||||
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
/* debug code */
|
||||
item->lam_list_next = item->lam_list_prev = (lam_list_item_t *)NULL;
|
||||
#endif
|
||||
|
@ -120,16 +120,16 @@ static inline lam_list_item_t* lam_list_get_end(lam_list_t* list)
|
||||
static inline lam_list_item_t *lam_list_remove_item
|
||||
(lam_list_t *list, lam_list_item_t *item)
|
||||
{
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
lam_list_item_t *item_ptr;
|
||||
bool found;
|
||||
#endif
|
||||
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
found = false;
|
||||
#endif
|
||||
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
/* check to see that the item is in the list */
|
||||
for (item_ptr = lam_list_get_first(list);
|
||||
item_ptr != lam_list_get_end(list);
|
||||
|
@ -50,7 +50,7 @@ static inline lam_communicator_t *lam_comm_lookup(uint32_t cid)
|
||||
{
|
||||
/* array of pointers to communicators, indexed by context ID */
|
||||
extern lam_communicator_t **lam_mpi_comm_array;
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
extern uint32_t lam_mpi_comm_array_size;
|
||||
if (cid >= lam_mpi_comm_array_size) {
|
||||
lam_output(0, "lam_comm_lookup: invalid communicator index (%d)", cid);
|
||||
@ -62,7 +62,7 @@ static inline lam_communicator_t *lam_comm_lookup(uint32_t cid)
|
||||
|
||||
static inline lam_proc_t* lam_comm_lookup_peer(lam_communicator_t* comm, size_t peer_id)
|
||||
{
|
||||
#ifdef LAM_ENABLE_DEBUG
|
||||
#if LAM_ENABLE_DEBUG
|
||||
if(peer_id >= comm->c_remote_group->grp_proc_count) {
|
||||
lam_output(0, "lam_comm_lookup_peer: invalid peer index (%d)", peer_id);
|
||||
return (lam_proc_t *) NULL;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user