• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 
12 /****************************************************************************
13 *
14 *   Module Title :     type_aliases.h
15 *
16 *   Description  :     Standard type aliases
17 *
18 ****************************************************************************/
19 #ifndef __INC_TYPE_ALIASES_H
20 #define __INC_TYPE_ALIASES_H
21 
22 /****************************************************************************
23 * Macros
24 ****************************************************************************/
25 #define EXPORT
26 #define IMPORT          extern      /* Used to declare imported data & routines */
27 #define PRIVATE         static      /* Used to declare & define module-local data */
28 #define LOCAL           static      /* Used to define all persistent routine-local data */
29 #define STD_IN_PATH     0           /* Standard input path */
30 #define STD_OUT_PATH    1           /* Standard output path */
31 #define STD_ERR_PATH    2           /* Standard error path */
32 #define STD_IN_FILE     stdin       /* Standard input file pointer */
33 #define STD_OUT_FILE    stdout      /* Standard output file pointer */
34 #define STD_ERR_FILE    stderr      /* Standard error file pointer */
35 #define max_int         0x7FFFFFFF
36 
37 #define __export
38 #define _export
39 
40 #define CCONV
41 
42 #ifndef NULL
43 #ifdef __cplusplus
44 #define NULL    0
45 #else
46 #define NULL    ((void *)0)
47 #endif
48 #endif
49 
50 #ifndef FALSE
51 #define FALSE   0
52 #endif
53 
54 #ifndef TRUE
55 #define TRUE    1
56 #endif
57 
58 /****************************************************************************
59 * Typedefs
60 ****************************************************************************/
61 #ifndef TYPE_INT8
62 #define TYPE_INT8
63 typedef signed char     INT8;
64 #endif
65 
66 #ifndef TYPE_INT16
67 /*#define TYPE_INT16*/
68 typedef signed short    INT16;
69 #endif
70 
71 #ifndef TYPE_INT32
72 /*#define TYPE_INT32*/
73 typedef signed int      INT32;
74 #endif
75 
76 #ifndef TYPE_UINT8
77 /*#define TYPE_UINT8*/
78 typedef unsigned char   UINT8;
79 #endif
80 
81 #ifndef TYPE_UINT32
82 /*#define TYPE_UINT32*/
83 typedef unsigned int    UINT32;
84 #endif
85 
86 #ifndef TYPE_UINT16
87 /*#define TYPE_UINT16*/
88 typedef unsigned short  UINT16;
89 #endif
90 
91 #ifndef TYPE_BOOL
92 /*#define TYPE_BOOL*/
93 typedef int             BOOL;
94 #endif
95 
96 typedef unsigned char   BOOLEAN;
97 
98 #ifdef _MSC_VER
99 typedef __int64 INT64;
100 #else
101 
102 #ifndef TYPE_INT64
103 #ifdef _TMS320C6X
104 /* for now we only have 40bits */
105 typedef long INT64;
106 #else
107 typedef long long INT64;
108 #endif
109 #endif
110 
111 #endif
112 
113 /* Floating point */
114 typedef  double         FLOAT64;
115 typedef  float          FLOAT32;
116 
117 #endif
118