mirror of
https://github.com/0intro/wmii
synced 2024-11-25 15:20:15 +03:00
16 lines
241 B
C
16 lines
241 B
C
/* Written by Kris Maglione <maglione.k at Gmail> */
|
|
/* Public domain */
|
|
#include "util.h"
|
|
|
|
void*
|
|
freelater(void *p) {
|
|
static char* obj[16];
|
|
static long nobj;
|
|
int id;
|
|
|
|
id = nobj++ % nelem(obj);
|
|
free(obj[id]);
|
|
obj[id] = p;
|
|
return p;
|
|
}
|