47 #define MHEG5FALSE (0)
48 #define MHEG5TRUE (-1)
51 #define MHEG5strncmp(a, b, n) strncmp((char *)a, (char *)b, n)
55 #define MHEG5strcmp(a, b) strcmp((char *)a, (char *)b)
58 #define INVALID_GRP_REF 0
269 #define MHEG5stringCopy(s) MHEG5stringCopyFunc(s, __LINE__)
333 TCHAR* StrToUnicode(
char *
string);
334 char* StrFromUnicode(TCHAR *
string);
341 void MHEG5classPrint(
MHEG5Final class,
char *out);
342 void MHEG5indent(
char *out);
343 int MHEG5setIndent(
int i);
344 void MHEG5incIndent(
void);
345 void MHEG5decIndent(
void);
346 void MHEG5newLine(
char *out);
348 #define MHEG_PRINT(out, str) STB_DebugLogPrintf(str)
349 #define MHEG5intPrint(i, out) STB_DebugLogPrintf("%ld", i)
350 #define MHEG5hexPrint(i, out) STB_DebugLogPrintf("%#x", i)
353 #if defined(MHEG5LOG) || defined(MH5PRINTOUT)
357 void MHEG5boolPrint(
MHEG5Bool b,
char *out);
361 void MHEG5cListPrint(
MHEG5GList *l,
char *out);
362 void MHEG5sdListPrint(
MHEG5GList *l,
char *out);
363 void MHEG5clrListPrint(
MHEG5GList *l,
char *out);
367 extern int extra_trace_param;
Definition: mh5base.h:222
Definition: mh5base.h:138
Definition: mh5base.h:211
Definition: mh5base.h:118
Definition: mh5base.h:189
unsigned long MHEG5random(void)
Calculate and return a psuedo random number.
Definition: mh5base.c:1139
Definition: mh5base.h:124
Definition: mh5base.h:137
void MHEG5genericInit(MHEG5Generic *item)
Initialize an empty MHEG5Generic.
Definition: mh5base.c:832
Definition: mh5base.h:193
Definition: mh5base.h:136
Definition: mh5base.h:201
MHEG5GList * MHEG5gListCopy(MHEG5GList *list)
Copy a list of MHEG5Generic objects.
Definition: mh5base.c:966
void MHEG5colourDestruct(MHEG5Colour *item)
Destruct a MHEG5Colour object.
Definition: mh5base.c:1046
short MHEG5Short
Definition: mh5base.h:68
MH5GroupRef gref
Definition: mh5base.h:106
Definition: mh5base.h:192
MHEG5Bool referenced
Definition: mh5base.h:238
Definition: mh5base.h:229
Definition: mh5base.h:124
Definition: mh5base.h:138
Definition: mh5base.h:116
MH5GroupPtr group
Definition: mh5base.h:99
MHEG5IntPair p
Definition: mh5base.h:154
Definition: mh5base.h:227
MHEG5Bool MHEG5stringEqual(MHEG5String *s1, MHEG5String *s2)
Compare two Strings (case sensitive!)
Definition: mh5base.c:708
Definition: mh5base.h:193
struct sMHEG5String MHEG5String
Definition: mh5base.h:201
Definition: mh5base.h:220
MHEG5ObjectReference o
Definition: mh5base.h:155
void MHEG5colourInit(MHEG5Colour *item, MHEG5Int initialValue)
Initialize a MHEG5Colour with the initial value MHEG5Int.
Definition: mh5base.c:1035
MHEG5GList * params
Definition: mh5base.h:178
MHEG5String included
Definition: mh5base.h:241
Definition: mh5base.h:226
Definition: mh5base.h:114
Definition: mh5base.h:136
Definition: mh5base.h:117
void MHEG5genericSet(MHEG5Generic *item, MHEG5Int initialValue)
Set a MHEG5Generic to the MHEG5Int value.
Definition: mh5base.c:994
Definition: mh5base.h:206
Definition: mh5base.h:121
struct sMHEG5Group * MH5GroupPtr
Definition: mh5base.h:91
Definition: mh5base.h:211
Definition: mh5base.h:193
Definition: mh5group.h:47
MHEG5Int len
Definition: mh5base.h:95
U8BIT isfirst
Definition: mh5base.h:146
MHEG5Int MH5GroupId
Definition: mh5base.h:88
MHEG5Int total
Definition: mh5base.h:177
Definition: mh5base.h:230
Definition: mh5base.h:193
struct SMHEG5IntPair MHEG5IntPair
Definition: mh5base.h:190
Definition: mh5base.h:201
void MHEG5genericCopy(MHEG5Generic *dest, MHEG5Generic *src)
Copy a MHEG5Generic.
Definition: mh5base.c:876
Definition: mh5base.h:118
Definition: mh5base.h:224
MHEG5Int MHEG5strToInt(MHEG5String string)
Convert a MHEG5String to a MHEG5Integer.
Definition: mh5base.c:737
MHEG5Final
Definition: mh5base.h:186
MHEG5Bool MHEG5genericEqual(MHEG5Generic *g1, MHEG5Generic *g2)
Compare two generic Variables.
Definition: mh5base.c:904
Definition: mh5base.h:122
MHEG5String MHEG5stringCopy(MHEG5String source)
<Function description>="">
Definition: mh5base.c:572
MHEG5EventType
Definition: mh5base.h:110
char * MHEG5safeStrcat(char *dest, size_t destLength, const char *source)
Perform a standard strcat restricted to the length of the destination. The dest string will always be...
Definition: mh5base.c:1171
Definition: mh5base.h:232
void MHEG5stringDestruct(MHEG5String *item)
Destruct a MHEG5String.
Definition: mh5base.c:684
Definition: mh5base.h:122
Definition: mh5base.h:206
MHEG5SliderStyle
Definition: mh5base.h:204
U8BIT indirect
Definition: mh5base.h:145
Definition: mh5base.h:137
Definition: mh5base.h:136
uint8_t U8BIT
Definition: techtype.h:93
long MHEG5Int
Definition: mh5base.h:69
MHEG5Orientation
Definition: mh5base.h:199
Definition: mh5base.h:123
MHEG5EventType e
Definition: mh5base.h:153
Definition: mh5base.h:121
Definition: mh5base.h:122
Definition: mh5base.h:190
Definition: mh5base.h:114
Definition: mh5base.h:115
Definition: mh5base.h:191
void MHEG5gListDestruct(MHEG5GList *item)
Destruct a list of MHEG5Generic objects.
Definition: mh5base.c:948
Definition: mh5base.h:192
Definition: mh5base.h:112
Definition: mh5base.h:189
Definition: mh5base.h:194
Definition: mh5base.h:114
Definition: mh5base.h:236
Definition: mh5base.h:192
Definition: mh5base.h:253
Definition: mh5base.h:206
Definition: mh5base.h:127
Definition: mh5base.h:103
MHEG5Generic MHEG5Colour
Definition: mh5base.h:173
Definition: mh5base.h:165
Definition: mh5base.h:120
Definition: mh5base.h:120
MHEG5Int id
Definition: mh5base.h:105
MHEG5Int id
Definition: mh5base.h:244
MH5GroupRef grp
Definition: mh5base.h:245
Definition: mh5base.h:175
Definition: mh5base.h:117
MHEG5Byte * name
Definition: mh5base.h:98
Definition: mh5base.h:194
Definition: mh5base.h:136
short MHEG5Bool
Definition: mh5base.h:67
MHEG5ErrorCode
Definition: mh5base.h:218
unsigned char MHEG5Byte
Definition: mh5base.h:70
struct sMHEG5ObjectReference MHEG5ObjectReference
struct sMH5GroupRef MH5GroupRef
Definition: mh5base.h:189
struct sParamList ParamList
Definition: mh5base.h:115
Definition: mh5base.h:254
Definition: mh5base.h:193
MHEG5String MHEG5stringCat(MHEG5String string1, MHEG5String string2)
Concatenate two MHEG5Strings.
Definition: mh5base.c:646
Definition: mh5base.h:137
Definition: mh5base.h:116
MHEG5SceneRatio_t
Definition: mh5base.h:251
MHEG5Bool b
Definition: mh5base.h:151
Definition: mh5base.h:188
MHEG5String MHEG5intToStr(MHEG5Int i)
Convert MHEG5Int to MHEG5String.
Definition: mh5base.c:785
MHEG5Int len
Definition: mh5base.h:80
Definition: mh5base.h:194
Definition: mh5base.h:231
Definition: mh5base.h:225
Definition: mh5base.h:125
struct sMHEG5GList MHEG5GList
Definition: mh5base.h:171
MHEG5Int i
Definition: mh5base.h:150
Definition: mh5base.h:125
void MHEG5genericDestruct(MHEG5Generic *item)
Destruct a MHEG5Generic.
Definition: mh5base.c:845
Definition: mh5base.h:255
MHEG5PushbuttonStyle
Definition: mh5base.h:209
void MHEG5genericBSet(MHEG5Generic *item, MHEG5Bool initialValue)
Set a MHEG5Generic to the MHEG5Bool value.
Definition: mh5base.c:1009
Definition: mh5base.h:143
#define MHEG5strncmp(a, b, n)
Definition: mh5base.h:51
uint16_t U16BIT
Definition: techtype.h:95
Definition: mh5base.h:194
MHEG5Int y
Definition: mh5base.h:75
System Wide Global Technical Data Type Definitions.
void MHEG5genericSSet(MHEG5Generic *item, char *initialValue)
Definition: mh5base.c:1017
MHEG5Bool MHEG5Boolean
Definition: mh5base.h:141
Definition: mh5base.h:228
Definition: mh5base.h:193
MHEG5String s
Definition: mh5base.h:152
MHEG5String MHEG5stringCopyChr(const char *source)
Copy the C-String source to a MHEG5String.
Definition: mh5base.c:610
Definition: mh5base.h:123
Definition: mh5base.h:221
Definition: mh5base.h:121
Definition: mh5base.h:137
Definition: mh5base.h:211
Definition: mh5base.h:195
struct sMHEG5FontBody MHEG5FontBody
Definition: mh5base.h:192
MHEG5Byte * data
Definition: mh5base.h:81
Definition: mh5base.h:124
union sMH5GroupRef::@4 ptr
Definition: mh5base.h:189
Definition: mh5base.h:188
Definition: mh5base.h:201
Definition: mh5base.h:138
Definition: mh5base.h:191
Definition: mh5base.h:114
Definition: mh5base.h:188
Definition: mh5base.h:188
Definition: mh5base.h:118
Definition: mh5base.h:233
Definition: mh5base.h:115
Definition: mh5base.h:191
Definition: mh5base.h:116
E_ParamTypes
Definition: mh5base.h:134
Definition: mh5base.h:138
struct sMHEG5GList * next
Definition: mh5base.h:168
Definition: mh5base.h:120
Definition: mh5base.h:192
Definition: mh5base.h:115
#define MHEG5strcmp(a, b)
Definition: mh5base.h:55
MHEG5Int x
Definition: mh5base.h:74
Definition: mh5base.h:188
Definition: mh5base.h:117
Definition: mh5base.h:194
Definition: mh5base.h:223
Definition: mh5base.h:136
Definition: mh5base.h:138
U16BIT type
Definition: mh5base.h:147