Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

killer.h File Reference

#include "mcw_malloc.h"

Go to the source code of this file.


Data Structures

struct  KILL_list

Defines

#define KILL_INC   32
#define INIT_KILL(kl)   ((kl).num=0, (kl).nalloc=0, (kl).kill=NULL)
#define ADDTO_KILL(kl, p)
#define SINGLE_KILL(kl, p)
#define REMOVEFROM_KILL(kl, p)
#define REPLACE_KILL(kl, pold, pnew)
#define KILL_KILL(kl)

Define Documentation

#define ADDTO_KILL kl,
p   
 

Value:

{  if( (kl).num == (kl).nalloc ){                                 \
       (kl).nalloc += KILL_INC ;                                   \
       (kl).kill    = (char **) XtRealloc( (char *) (kl).kill ,    \
                                  sizeof(char *) * (kl).nalloc ) ; \
    }                                                              \
    (kl).kill[(kl).num++] = (char *) p ;                           \
 }
add a pointer to be killed *

Definition at line 35 of file killer.h.

Referenced by adwarp_follower_dataset(), AFNI_copy_statistics(), AFNI_dataset_slice(), AFNI_follower_dataset(), AFNI_init_warp(), AFNI_make_widgets(), duplicate_dataset(), EDIT_empty_copy(), EDIT_empty_datablock(), r_fill_resampled_data_brick(), TAG_save_CB(), THD_3dim_from_block(), THD_copy_dset_subs(), THD_datablock_apply_atr(), THD_init_one_datablock(), THD_load_statistics(), THD_read_all_atr(), THD_set_atr(), THD_update_one_bstat(), and THD_update_statistics().

#define INIT_KILL kl       ((kl).num=0, (kl).nalloc=0, (kl).kill=NULL)
 

initialize a new kill list *

Definition at line 31 of file killer.h.

Referenced by adwarp_follower_dataset(), AFNI_follower_dataset(), AFNI_init_warp(), AFNI_read_images(), duplicate_dataset(), EDIT_empty_copy(), EDIT_empty_datablock(), T3D_read_images(), THD_3dim_from_block(), and THD_init_one_datablock().

#define KILL_INC   32
 

Definition at line 27 of file killer.h.

#define KILL_KILL kl   
 

Value:

{                                                    \
      int qwer ;                                                           \
      for( qwer=0 ; qwer < (kl).num ; qwer++ ) myXtFree((kl).kill[qwer]) ; \
      myXtFree( (kl).kill) ;                                               \
      INIT_KILL(kl) ;                                                      \
   }
kill all the data in the kill list! *

Definition at line 83 of file killer.h.

Referenced by THD_delete_3dim_dataset(), and THD_delete_datablock().

#define REMOVEFROM_KILL kl,
p   
 

Value:

{  char * cp = (char *) (p) ;               \
      int qwer ;                               \
      for( qwer=0 ; qwer < (kl).num ; qwer++ ) \
         if( cp == (kl).kill[qwer] ){          \
            (kl).kill[qwer] = NULL ; break ;   \
         }                                     \
   }
remove a pointer from the kill list, without deleting its data *

Definition at line 58 of file killer.h.

Referenced by main().

#define REPLACE_KILL kl,
pold,
pnew   
 

Value:

{  char * cpold = (char *) (pold) ;               \
      char * cpnew = (char *) (pnew) ;               \
      int qwer ;                                     \
      for( qwer=0 ; qwer < (kl).num ; qwer++ )       \
         if( cpold == (kl).kill[qwer] ){             \
            (kl).kill[qwer] = cpnew ; break ;        \
         }                                           \
      if( qwer == (kl).num ) ADDTO_KILL((kl),pnew) ; \
   }
replace a pointer in the kill list (perhaps it was XtRealloc-ed). If it doesn't exist, add it to the kill list. *

Definition at line 70 of file killer.h.

Referenced by THD_load_statistics(), THD_setup_mastery(), THD_update_one_bstat(), and THD_update_statistics().

#define SINGLE_KILL kl,
p   
 

Value:

{  char * cp = (char *) (p) ;                            \
      int qwer ;                                            \
      for( qwer=0 ; qwer < (kl).num ; qwer++ )              \
         if( cp == (kl).kill[qwer] ){                       \
            myXtFree(cp) ; (kl).kill[qwer] = NULL ; break ; \
         }                                                  \
   }
kill the data in a single pointer in the kill list, but keep the rest of the data in the list intact *

Definition at line 47 of file killer.h.

Referenced by AFNI_marks_transform_CB(), THD_erase_all_atr(), THD_erase_one_atr(), and THD_set_atr().

 

Powered by Plone

This site conforms to the following standards: