media/libogg/src/ogg_alloc.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /********************************************************************
     2  *                                                                  *
     3  * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE.   *
     4  * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
     5  * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
     6  * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
     7  *                                                                  *
     8  * THE OggVorbis SOURCE CODE IS (C) COPYRIGHT 1994-2002             *
     9  * by the Xiph.Org Foundation http://www.xiph.org/                  *
    10  *                                                                  *
    11  *********************************************************************/
    13 #include <stdlib.h>
    14 #include "ogg/os_types.h"
    16 ogg_malloc_function_type *ogg_malloc_func = malloc;
    17 ogg_calloc_function_type *ogg_calloc_func = calloc;
    18 ogg_realloc_function_type *ogg_realloc_func = realloc;
    19 ogg_free_function_type *ogg_free_func = free;
    21 void
    22 ogg_set_mem_functions(ogg_malloc_function_type *malloc_func,
    23                       ogg_calloc_function_type *calloc_func,
    24                       ogg_realloc_function_type *realloc_func,
    25                       ogg_free_function_type *free_func)
    26 {
    27   ogg_malloc_func = malloc_func;
    28   ogg_calloc_func = calloc_func;
    29   ogg_realloc_func = realloc_func;
    30   ogg_free_func = free_func;
    31 }

mercurial