Navigation

Operators and Keywords

Function List:

C++ API

malloca.h File Reference

#include <alloca.h>
#include <stddef.h>
#include <stdlib.h>
Include dependency graph for malloca.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define safe_alloca(N)   ((void) (N), NULL)
#define malloca(N)   mmalloca (N)
#define freea   free
#define nmalloca(n, s)
#define sa_alignof(type)   offsetof (struct { char __slot1; type __slot2; }, __slot2)

Enumerations

enum  {
  sa_alignment_long = sa_alignof (long), sa_alignment_double = sa_alignof (double), sa_alignment_longdouble = sa_alignof (long double), sa_alignment_max,
  sa_increment = ((sizeof (int) + sa_alignment_max - 1) / sa_alignment_max) * sa_alignment_max
}

Functions

void * mmalloca (size_t n)

Define Documentation

#define freea   free
#define malloca (   N  )     mmalloca (N)
#define nmalloca (   n,
  s 
)
Value:
((n) > (size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) \
     ? NULL \
     : malloca ((n) * (s)))
#define sa_alignof (   type  )     offsetof (struct { char __slot1; type __slot2; }, __slot2)
#define safe_alloca (   N  )     ((void) (N), NULL)

Enumeration Type Documentation

anonymous enum
Enumerator:
sa_alignment_long 
sa_alignment_double 
sa_alignment_longdouble 
sa_alignment_max 
sa_increment 

Function Documentation

void* mmalloca ( size_t  n  ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines