Skip to content

Commit b7a25e6

Browse files
committed
Add license headers to allocator, utils and vector files.
1 parent cd33c77 commit b7a25e6

File tree

9 files changed

+25
-2
lines changed

9 files changed

+25
-2
lines changed

src/mono/mono/eventpipe/test/dn-ptr-vector-tests.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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>

src/mono/mono/eventpipe/test/dn-vector-tests.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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>

src/native/containers/dn-allocator.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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
175178
fixed_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

185188
static inline bool

src/native/containers/dn-allocator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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__

src/native/containers/dn-malloc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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__

src/native/containers/dn-ptr-vector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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__

src/native/containers/dn-utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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

src/native/containers/dn-vector.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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 { \

src/native/containers/dn-vector.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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__

0 commit comments

Comments
 (0)