blob: 596ccd31e0c486fcd59bf5aa1ca0a8a079946a72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* tclAllocNative.c --
*
* This is the basic native allocator for Tcl, using zippy's per-thread
* free obj lists.
*
* Copyright (c) 2013 by Miguel Sofer. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
#define OBJQ_ONLY 1
#include "tclAllocZippy.c"
char *
TclpAlloc(
unsigned int reqSize)
{
return malloc(reqSize);
}
char *
TclpRealloc(
char *ptr,
unsigned int reqSize)
{
return realloc(ptr, reqSize);
}
void
TclpFree(
char *ptr)
{
free(ptr);
}
|