NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
data_types.h
1/******************************************************************************
2 *
3 * NOTICE OF CHANGES
4 * 2024/03/25:
5 * - Move from ulinux/ to platform/
6 * - Add #include for RVL types (include/types.h)
7 *
8 * Compile with REVOLUTION defined to include these changes.
9 *
10 ******************************************************************************/
11
12
13
14/******************************************************************************
15 *
16 * Copyright (C) 1999-2012 Broadcom Corporation
17 *
18 * Licensed under the Apache License, Version 2.0 (the "License");
19 * you may not use this file except in compliance with the License.
20 * You may obtain a copy of the License at:
21 *
22 * http://www.apache.org/licenses/LICENSE-2.0
23 *
24 * Unless required by applicable law or agreed to in writing, software
25 * distributed under the License is distributed on an "AS IS" BASIS,
26 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27 * See the License for the specific language governing permissions and
28 * limitations under the License.
29 *
30 ******************************************************************************/
31
32#ifndef DATA_TYPES_H
33#define DATA_TYPES_H
34
35#ifdef REVOLUTION
36#include <types.h>
37#endif
38
39#ifndef REVOLUTION
40#ifndef NULL
41#define NULL 0
42#endif
43
44#ifndef FALSE
45#define FALSE 0
46#endif
47#endif
48
49typedef unsigned char UINT8;
50typedef unsigned short UINT16;
51typedef unsigned long UINT32;
52typedef signed long INT32;
53typedef signed char INT8;
54typedef signed short INT16;
55typedef unsigned char BOOLEAN;
56
57
58typedef UINT32 TIME_STAMP;
59
60#ifndef TRUE
61#define TRUE (!FALSE)
62#endif
63
64typedef unsigned char UBYTE;
65
66#ifdef __arm
67#define PACKED __packed
68#define INLINE __inline
69#else
70#define PACKED
71#define INLINE
72#endif
73
74#ifndef BIG_ENDIAN
75#define BIG_ENDIAN FALSE
76#endif
77
78#define UINT16_LOW_BYTE(x) ((x) & 0xff)
79#define UINT16_HI_BYTE(x) ((x) >> 8)
80
81
82#define BCM_STRCAT_S(x1,x2,x3) strcat((x1),(x3))
83#define BCM_STRNCAT_S(x1,x2,x3,x4) strncat((x1),(x3),(x4))
84#define BCM_STRCPY_S(x1,x2,x3) strcpy((x1),(x3))
85#define BCM_STRNCPY_S(x1,x2,x3,x4) strncpy((x1),(x3),(x4))
86
87
88
89#endif