-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract header qmalloc.h from qglobal.h
Definitions of qMallocAligned()/qReallocAligned()/qFreeAligned() were already in qmalloc.cpp, so add qmalloc.h for declarations. Task-number: QTBUG-99313 Change-Id: I8028402a2c48dede855ad7de35d7b77e9911c761 Reviewed-by: Thiago Macieira <[email protected]>
- Loading branch information
Sona Kurazyan
committed
Aug 25, 2022
1 parent
d954439
commit 48aa320
Showing
4 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (C) 2022 The Qt Company Ltd. | ||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | ||
|
||
#ifndef QMALLOC_H | ||
#define QMALLOC_H | ||
|
||
#include <QtCore/qglobal.h> | ||
|
||
#if 0 | ||
#pragma qt_class(QtMalloc) | ||
#pragma qt_sync_stop_processing | ||
#endif | ||
|
||
QT_BEGIN_NAMESPACE | ||
|
||
Q_CORE_EXPORT void *qMallocAligned(size_t size, size_t alignment) Q_ALLOC_SIZE(1); | ||
Q_CORE_EXPORT void *qReallocAligned(void *ptr, size_t size, size_t oldsize, size_t alignment) Q_ALLOC_SIZE(2); | ||
Q_CORE_EXPORT void qFreeAligned(void *ptr); | ||
|
||
QT_END_NAMESPACE | ||
|
||
#endif // QMALLOC_H |