File tree Expand file tree Collapse file tree 9 files changed +25
-2
lines changed
Expand file tree Collapse file tree 9 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+
14#if defined(_MSC_VER ) && defined(_DEBUG )
25#define _CRTDBG_MAP_ALLOC
36#include <stdlib.h>
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+
14#if defined(_MSC_VER ) && defined(_DEBUG )
25#define _CRTDBG_MAP_ALLOC
36#include <stdlib.h>
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+
14#include "dn-allocator.h"
25#include "dn-malloc.h"
36
@@ -171,15 +174,15 @@ fixed_realloc (
171174 return (uint8_t * )ptr + DN_ALLOCATOR_MEM_ALIGN8 ;
172175}
173176
174- static inline void
177+ static void
175178fixed_free (
176179 dn_allocator_fixed_data_t * data ,
177180 void * block )
178181{
179182 DN_UNREFERENCED_PARAMETER (data );
180183 DN_UNREFERENCED_PARAMETER (block );
181184
182- // Sttaic buffer doesn't support free.
185+ // Fixed buffer doesn't support free.
183186}
184187
185188static inline bool
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
13
24#ifndef __DN_ALLOCATOR_H__
35#define __DN_ALLOCATOR_H__
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
13
24#ifndef __DN_MALLOC_H__
35#define __DN_MALLOC_H__
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
13
24#ifndef __DN_PTR_VECTOR_H__
35#define __DN_PTR_VECTOR_H__
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+
14#ifndef __DN_UTILS_H__
25#define __DN_UTILS_H__
36
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
3+
14#include "dn-vector.h"
25
36#define CHECK_VERSION_RETURN_VALUE (vector ,return_value ) do { \
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the MIT license.
13
24#ifndef __DN_VECTOR_H__
35#define __DN_VECTOR_H__
You can’t perform that action at this time.
0 commit comments