Beispiel #1
0
void le_init_task(le_task *task, const real dt, const le_vec2 h, const le_material mat, const le_point2 n, const int stype)
{
	task->dt  = dt;
	task->h   = h;
	task->mat = mat;
	task->n   = n;
	task->grid = (real*)sse_malloc(sizeof(le_node) * n.x * n.y);
	task->stype = stype;
	memset(task->grid, 0, sizeof(le_node) * n.x * n.y);
}
Beispiel #2
0
SSESList *
sse_slist_new(void)
{
  SSESList *list;

  list = sse_malloc(sizeof(SSESList));
  if (list == NULL ) {
    return NULL ;
  }
  list->data = NULL;
  list->next = NULL;
  return list;
}
Beispiel #3
0
SSEQueue *
sse_queue_new(void)
{
  SSEQueue *q = NULL;

  q = sse_malloc(sizeof(SSEQueue));
  if (q == NULL) {
    return NULL;
  }
  q->head = NULL;
  q->tail = NULL;
  q->length = 0;
  return q;
}
Beispiel #4
0
MoatObject *
moat_object_new(void)
{
  return (MoatObject*)sse_malloc(100); // dummy object
  //return SSE_E_OK;
}