rllib  1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
rldefine.h
Go to the documentation of this file.
1 /***************************************************************************
2  rldefine.h - description
3  -------------------
4  begin : Wed Dec 04 2002
5  copyright : (C) 2001 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
19 #ifndef _RL_DEFINE_H_
20 #define _RL_DEFINE_H_
21 
22 // we always use this and are very lazy
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 
27 // define unix if not already defined
28 #ifdef __unix__
29 #ifndef unix
30 #define unix
31 #endif
32 #endif
33 #ifdef unix
34 #define RLUNIX
35 #endif
36 
37 // define WIN
38 #ifdef _WIN32
39 #define RLWIN32
40 #endif
41 
42 #define rl_PRINTF_LENGTH 4096
43 #define rl_PRINTF_LENGTH_SPREADSHEET 4096
44 
45 #define BIT0 1
46 #define BIT1 2
47 #define BIT2 4
48 #define BIT3 8
49 #define BIT4 16
50 #define BIT5 32
51 #define BIT6 64
52 #define BIT7 128
53 #define BIT8 256*1
54 #define BIT9 256*2
55 #define BIT10 256*4
56 #define BIT11 256*8
57 #define BIT12 256*16
58 #define BIT13 256*32
59 #define BIT14 256*64
60 #define BIT15 256*128
61 #define BIT16 256*256*1
62 #define BIT17 256*256*2
63 #define BIT18 256*256*4
64 #define BIT19 256*256*8
65 #define BIT20 256*256*16
66 #define BIT21 256*256*32
67 #define BIT22 256*256*64
68 #define BIT23 256*256*128
69 #define BIT24 256*256*256*1
70 #define BIT25 256*256*256*2
71 #define BIT26 256*256*256*4
72 #define BIT27 256*256*256*8
73 #define BIT28 256*256*256*16
74 #define BIT29 256*256*256*32
75 #define BIT30 256*256*256*64
76 #define BIT31 256*256*256*128
77 
78 #endif