mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-18 08:17:38 +00:00
Use #include "..." for our own headers, <...> for others
Tracked down with an ugly, brittle and probably buggy Perl script. Also move includes converted to <...> up so they get included before ours where that's obviously okay. Backports commit a9c94277f07d19d3eb14f199c3e93491aa3eae0e from qemu
This commit is contained in:
parent
f6f843b4d4
commit
60e8836b74
|
@ -35,7 +35,7 @@
|
||||||
#include "exec/memory.h"
|
#include "exec/memory.h"
|
||||||
#include "exec/address-spaces.h"
|
#include "exec/address-spaces.h"
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
#include <qemu.h>
|
#include "qemu.h"
|
||||||
#endif
|
#endif
|
||||||
#include "exec/cpu-all.h"
|
#include "exec/cpu-all.h"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef HELPER_GEN_H
|
#ifndef HELPER_GEN_H
|
||||||
#define HELPER_GEN_H 1
|
#define HELPER_GEN_H 1
|
||||||
|
|
||||||
#include <exec/helper-head.h>
|
#include "exec/helper-head.h"
|
||||||
|
|
||||||
#define DEF_HELPER_FLAGS_0(name, flags, ret) \
|
#define DEF_HELPER_FLAGS_0(name, flags, ret) \
|
||||||
static inline void glue(gen_helper_, name)(TCGContext *tcg_ctx, dh_retvar_decl0(ret)) \
|
static inline void glue(gen_helper_, name)(TCGContext *tcg_ctx, dh_retvar_decl0(ret)) \
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef HELPER_PROTO_H
|
#ifndef HELPER_PROTO_H
|
||||||
#define HELPER_PROTO_H 1
|
#define HELPER_PROTO_H 1
|
||||||
|
|
||||||
#include <exec/helper-head.h>
|
#include "exec/helper-head.h"
|
||||||
|
|
||||||
#define DEF_HELPER_FLAGS_0(name, flags, ret) \
|
#define DEF_HELPER_FLAGS_0(name, flags, ret) \
|
||||||
dh_ctype(ret) HELPER(name) (void);
|
dh_ctype(ret) HELPER(name) (void);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef HELPER_TCG_H
|
#ifndef HELPER_TCG_H
|
||||||
#define HELPER_TCG_H 1
|
#define HELPER_TCG_H 1
|
||||||
|
|
||||||
#include <exec/helper-head.h>
|
#include "exec/helper-head.h"
|
||||||
|
|
||||||
#define DEF_HELPER_FLAGS_0(NAME, FLAGS, ret) \
|
#define DEF_HELPER_FLAGS_0(NAME, FLAGS, ret) \
|
||||||
{ HELPER(NAME), #NAME, FLAGS, \
|
{ HELPER(NAME), #NAME, FLAGS, \
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#ifndef EXEC_TB_HASH_XX
|
#ifndef EXEC_TB_HASH_XX
|
||||||
#define EXEC_TB_HASH_XX
|
#define EXEC_TB_HASH_XX
|
||||||
|
|
||||||
#include <qemu/bitops.h>
|
#include "qemu/bitops.h"
|
||||||
|
|
||||||
#define PRIME32_1 2654435761U
|
#define PRIME32_1 2654435761U
|
||||||
#define PRIME32_2 2246822519U
|
#define PRIME32_2 2246822519U
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef __QEMU_THREAD_POSIX_H
|
#ifndef __QEMU_THREAD_POSIX_H
|
||||||
#define __QEMU_THREAD_POSIX_H 1
|
#define __QEMU_THREAD_POSIX_H 1
|
||||||
#include "pthread.h"
|
|
||||||
|
#include <pthread.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
|
|
||||||
struct QemuThread {
|
struct QemuThread {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef __QEMU_THREAD_WIN32_H
|
#ifndef __QEMU_THREAD_WIN32_H
|
||||||
#define __QEMU_THREAD_WIN32_H 1
|
#define __QEMU_THREAD_WIN32_H 1
|
||||||
#include "windows.h"
|
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
typedef struct QemuThreadData QemuThreadData;
|
typedef struct QemuThreadData QemuThreadData;
|
||||||
struct QemuThread {
|
struct QemuThread {
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include <cpu.h>
|
#include "cpu.h"
|
||||||
#include <cpu-qom.h>
|
#include "cpu-qom.h"
|
||||||
#include <exec/helper-proto.h>
|
#include "exec/helper-proto.h"
|
||||||
#include <kvm-consts.h>
|
#include "kvm-consts.h"
|
||||||
#include <sysemu/sysemu.h>
|
#include "sysemu/sysemu.h"
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
#include "exec/exec-all.h"
|
#include "exec/exec-all.h"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include <qemu/mmap-alloc.h>
|
#include "qemu/mmap-alloc.h"
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
void *qemu_ram_mmap(int fd, size_t size, size_t align, bool shared)
|
void *qemu_ram_mmap(int fd, size_t size, size_t align, bool shared)
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <qemu/mmap-alloc.h>
|
#include "qemu/mmap-alloc.h"
|
||||||
|
|
||||||
void *qemu_oom_check(void *ptr)
|
void *qemu_oom_check(void *ptr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue