Mescal
Loading...
Searching...
No Matches
type_basic.h
Go to the documentation of this file.
1
6
7#ifndef TYPES_H
8#define TYPES_H
9
10 /* ____ _ _____ */
11 /* | __ ) __ _ ___(_) ___ |_ _| _ _ __ ___ ___ */
12 /* | _ \ / _` / __| |/ __| | || | | | '_ \ / _ \/ __| */
13 /* | |_) | (_| \__ \ | (__ | || |_| | |_) | __/\__ \ */
14 /* |____/ \__,_|___/_|\___| |_| \__, | .__/ \___||___/ */
15 /* |___/|_| */
16
17#include "string.h"
18
19typedef unsigned char uchar;
20typedef unsigned short ushort;
21typedef unsigned int uint;
22typedef unsigned long ulong;
23
24typedef enum {
25 BA_ST,
26 BA_MOD,
27 BA_AMT,
28 BA_GR
29} basis;
30
31#ifndef max
32#define max(a, b) (((a) > (b)) ? (a) : (b))
33#endif
34
35#ifndef min
36#define min(a, b) (((a) < (b)) ? (a) : (b))
37#endif
38
39#endif