Commit eca7c8c8 authored by jm's avatar jm
Browse files

Renamed ti/user_misc.h -> ti/os_support_custom.h (from Jim Crichton)

git-svn-id: 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent 280bcc4b
/* Copyright (C) 2005 Psi Systems, Inc.
/* Copyright (C) 2007 Psi Systems, Inc.
Author: Jean-Marc Valin
File: user_misc.h
File: os_support_custom.h
Memory Allocation overrides to allow user control rather than C alloc/free.
Redistribution and use in source and binary forms, with or without
......@@ -51,9 +51,10 @@ extern char *spxGlobalScratchPtr, *spxGlobalScratchEnd;
/* Make sure that all structures are aligned to largest type */
#define BLOCK_MASK (sizeof(long double)-1)
extern inline void speex_warning(const char *str);
void *speex_alloc (int size)
static inline void *speex_alloc (int size)
void *ptr;
......@@ -77,7 +78,7 @@ void *speex_alloc (int size)
void *speex_alloc_scratch (int size)
static inline void *speex_alloc_scratch (int size)
void *ptr;
......@@ -101,7 +102,7 @@ void *speex_alloc_scratch (int size)
void *speex_realloc (void *ptr, int size)
static inline void *speex_realloc (void *ptr, int size)
speex_warning("realloc attempted, not allowed");
......@@ -110,14 +111,14 @@ void *speex_realloc (void *ptr, int size)
void speex_free (void *ptr)
static inline void speex_free (void *ptr)
speex_warning("at speex_free");
void speex_free_scratch (void *ptr)
static inline void speex_free_scratch (void *ptr)
speex_warning("at speex_free_scratch");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment