LMMS
Loading...
Searching...
No Matches
misc.c File Reference
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "vorbis/codec.h"
#include "misc.h"
#include <sys/time.h>

Classes

struct  head

Macros

#define HEAD_ALIGN   32
#define MISC_C

Functions

static void_insert (void *ptr, long bytes, char *file, long line)
static void _ripremove (void *ptr)
void _VDBG_dump (void)
void_VDBG_malloc (void *ptr, long bytes, char *file, long line)
void _VDBG_free (void *ptr, char *file, long line)

Variables

static pthread_mutex_t memlock =PTHREAD_MUTEX_INITIALIZER
static void ** pointers =NULL
static long * insertlist =NULL
static char ** files =NULL
static long * file_bytes =NULL
static int filecount =0
static int ptop =0
static int palloced =0
static int pinsert =0
long global_bytes =0
long start_time =-1

Macro Definition Documentation

◆ HEAD_ALIGN

#define HEAD_ALIGN   32

◆ MISC_C

#define MISC_C

Function Documentation

◆ _insert()

void * _insert ( void * ptr,
long bytes,
char * file,
long line )
static

◆ _ripremove()

void _ripremove ( void * ptr)
static

◆ _VDBG_dump()

void _VDBG_dump ( void )

◆ _VDBG_free()

void _VDBG_free ( void * ptr,
char * file,
long line )

◆ _VDBG_malloc()

void * _VDBG_malloc ( void * ptr,
long bytes,
char * file,
long line )

Variable Documentation

◆ file_bytes

long* file_bytes =NULL
static

◆ filecount

int filecount =0
static

◆ files

char** files =NULL
static

◆ global_bytes

long global_bytes =0

◆ insertlist

long* insertlist =NULL
static

◆ memlock

pthread_mutex_t memlock =PTHREAD_MUTEX_INITIALIZER
static

◆ palloced

int palloced =0
static

◆ pinsert

int pinsert =0
static

◆ pointers

void** pointers =NULL
static

◆ ptop

int ptop =0
static

◆ start_time

long start_time =-1