HbbTv  17.9.0
Open source HBBTV engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
techtype.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
26 #ifndef _TECHTYPE_H
27 #define _TECHTYPE_H
28 
29 /****************************************************************************
30  * System MACRO Definitions
31  ****************************************************************************/
32 
33 /* MACRO TO PREVENT "parameter not used" WARNING */
34 /* In some cases, function parameter lists are pre-defined and cannot be */
35 /* changed, even though the parameters are not used. Such cases produce */
36 /* numerous unnecessary warnings which make it difficult to spot important */
37 /* warnings. This macro can be used in such circumstances to fool the */
38 /* compiler into thinking the function parameter is used without creating */
39 /* unwanted code. */
40 #define USE_UNWANTED_PARAM(param) param = param
41 
42 
43 /****************************************************************************
44  * Remove CONSTANT Definitions
45  ****************************************************************************/
46 
47 #undef FALSE
48 #undef TRUE
49 #undef loop
50 #undef NULL
51 #undef NULL_PTR
52 
53 
54 /****************************************************************************
55  * System CONSTANT Definitions
56  ****************************************************************************/
57 
58 #define FALSE 0
59 #define TRUE 1
60 
61 /* Generic NULL Definition */
62 #define NULL 0
63 #define NULL_PTR ((void *)NULL)
64 
65 
66 /****************************************************************************
67  * System DATA TYPE SIZE Definitions
68  ****************************************************************************/
69 
70 typedef unsigned char U8BIT;
71 typedef unsigned short U16BIT;
72 
73 typedef signed char S8BIT;
74 typedef signed short S16BIT;
75 typedef unsigned long U32BIT;
76 typedef signed long S32BIT;
77 typedef U8BIT BOOLEAN; /* BOOLEAN as 1 byte */
78 
79 /* The correct language pointer definitions should always match */
80 /* the type of data being used. For example, 'char*' for text */
81 /* strings and 'unsigned char*' for data byte arrays. */
82 
83 #endif /* _TECHTYPE_H */