X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Futil%2Fcommon.h;h=09a95a83eb539754fe5e7f20fc41e4d6536c29f2;hb=2930680396e47d66f7690e7ff92d5bcccbbf996c;hp=313a3b71528792a03ffbc1ee01da4f5eed94f55f;hpb=ccc5459cbbd1d69224104d82d45b3b1d767bd1b2;p=chaz%2Ftint2 diff --git a/src/util/common.h b/src/util/common.h index 313a3b7..09a95a8 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -14,6 +14,22 @@ // taskbar table : convert 2 dimension in 1 dimension #define index(i, j) ((i * panel.nb_monitor) + j) +/* +void fxfree(void** ptr){ + if(*ptr){ + free(*ptr); + *ptr=NULL; + } + } +FXint fxmalloc(void** ptr,unsigned long size){ + *ptr=NULL; + if(size!=0){ + if((*ptr=malloc(size))==NULL) return FALSE; + } + return TRUE; + } +*/ + // mouse actions enum { NONE=0, CLOSE, TOGGLE, ICONIFY, SHADE, TOGGLE_ICONIFY };