Marsyas  0.6.0-alpha
Defines | Typedefs | Functions
/usr/src/RPM/BUILD/marsyas-0.6.0/src/marsyas/vmblock.cpp File Reference
#include <marsyas/common_source.h>
#include <malloc.h>
#include <marsyas/basis.h>
#include "vmblock.h"

Go to the source code of this file.

Defines

#define LISTE   ((vmltyp *)vmblock) /* for abbreviation */
#define MAGIC   410 /* used to mark a */
#define matmalloc(mat, m, n, typ, umat)
#define VMALLOC   (vmltyp *)malloc(sizeof(vmltyp)) /* allocate memory */

Typedefs

typedef struct VML vmltyp

Functions

void * vmalloc (void *vmblock, int typ, size_t zeilen, size_t spalten)
bool vmcomplete (void *vmblock)
void vmfree (void *vmblock)
void * vminit (void)

Define Documentation

#define LISTE   ((vmltyp *)vmblock) /* for abbreviation */

Definition at line 152 of file vmblock.cpp.

#define MAGIC   410 /* used to mark a */

Definition at line 154 of file vmblock.cpp.

#define matmalloc (   mat,
  m,
  n,
  typ,
  umat 
)
Value:
/*.IX{matmalloc}*/                                                     \
                                                                       \
{                                                                      \
  size_t j,                               /* current row index     */  \
         k;                               /* elements in row j     */  \
                                                                       \
  if ((mat = (typ **)calloc((m), sizeof(typ *))) != NULL)              \
    for (j = 0; j < (m); j++)                                          \
    {                                                                  \
      k = (umat) ? (j + 1) : (n);                                      \
      if ((((typ **)mat)[j] = (typ *)calloc(k, sizeof(typ))) == NULL)  \
      {                                                                \
        matfree((void **)(mat), j);                                    \
        mat = NULL;                                                    \
        break;                                                         \
      }                                                                \
    }                                                                  \
}

Definition at line 270 of file vmblock.cpp.

#define VMALLOC   (vmltyp *)malloc(sizeof(vmltyp)) /* allocate memory */

Definition at line 146 of file vmblock.cpp.


Typedef Documentation

typedef struct VML vmltyp

Function Documentation

void* vmalloc ( void *  vmblock,
int  typ,
size_t  zeilen,
size_t  spalten 
)

Definition at line 400 of file vmblock.cpp.

bool vmcomplete ( void *  vmblock)

Definition at line 504 of file vmblock.cpp.

void vmfree ( void *  vmblock)

Definition at line 527 of file vmblock.cpp.

void* vminit ( void  )

Definition at line 165 of file vmblock.cpp.