mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
cr: collect short integer aliases in the single place
This patch moves the files arch/$ARCH/include/asm/int.h to
include/asm-generic/int.h and makes the types {u,s}{8,16,32}
be aliases of the fixed sized integer types [u]int{8,16,32}_t.
This makes it possible to use single set of integer typedefs
in all architectural ports.
Signed-off-by: Alexander Kartashov <alekskartashov@parallels.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
33a50cfdc8
commit
a75d39613f
4 changed files with 23 additions and 27 deletions
|
|
@ -1,15 +1,6 @@
|
|||
#ifndef __CR_INT_H__
|
||||
#define __CR_INT_H__
|
||||
#ifndef __CR_ASM_INT_H__
|
||||
#define __CR_ASM_INT_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "asm-generic/int.h"
|
||||
|
||||
typedef uint64_t u64;
|
||||
typedef int64_t s64;
|
||||
typedef unsigned int u32;
|
||||
typedef signed int s32;
|
||||
typedef unsigned short u16;
|
||||
typedef signed short s16;
|
||||
typedef unsigned char u8;
|
||||
typedef signed char s8;
|
||||
|
||||
#endif /* __CR_INT_H__ */
|
||||
#endif /* __CR_ASM_INT_H__ */
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef __CR_ASM_TYPES_H__
|
||||
#define __CR_ASM_TYPES_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <signal.h>
|
||||
#include "protobuf/core.pb-c.h"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,6 @@
|
|||
#ifndef __CR_INT_H__
|
||||
#define __CR_INT_H__
|
||||
#ifndef __CR_ASM_INT_H__
|
||||
#define __CR_ASM_INT_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include "asm-generic/int.h"
|
||||
|
||||
typedef uint64_t u64;
|
||||
typedef int64_t s64;
|
||||
typedef unsigned int u32;
|
||||
typedef signed int s32;
|
||||
typedef unsigned short u16;
|
||||
typedef signed short s16;
|
||||
typedef unsigned char u8;
|
||||
typedef signed char s8;
|
||||
|
||||
#endif /* __CR_INT_H__ */
|
||||
#endif /* __CR_ASM_INT_H__ */
|
||||
|
|
|
|||
15
include/asm-generic/int.h
Normal file
15
include/asm-generic/int.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef __CR_INT_H__
|
||||
#define __CR_INT_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef uint64_t u64;
|
||||
typedef int64_t s64;
|
||||
typedef uint32_t u32;
|
||||
typedef int32_t s32;
|
||||
typedef uint16_t u16;
|
||||
typedef int16_t s16;
|
||||
typedef uint8_t u8;
|
||||
typedef int8_t s8;
|
||||
|
||||
#endif /* __CR_INT_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue