rllib  1
rldefine.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                           rldefine.h  -  description
00003                              -------------------
00004     begin                : Wed Dec 04 2002
00005     copyright            : (C) 2001 by Rainer Lehrig
00006     email                : lehrig@t-online.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as        *
00013  *   published by the Free Software Foundation                             *
00014  *                                                                         *
00015  ***************************************************************************/
00019 #ifndef _RL_DEFINE_H_
00020 #define _RL_DEFINE_H_
00021 
00022 // we always use this and are very lazy
00023 #include <stdio.h>
00024 #include <stdlib.h>
00025 #include <string.h>
00026 
00027 // define unix if not already defined
00028 #ifdef __unix__
00029 #ifndef unix
00030 #define unix
00031 #endif
00032 #endif
00033 #ifdef unix
00034 #define RLUNIX
00035 #endif
00036 
00037 // define WIN
00038 #ifdef _WIN32
00039 #define RLWIN32
00040 #endif
00041 
00042 #define rl_PRINTF_LENGTH             4096
00043 #define rl_PRINTF_LENGTH_SPREADSHEET 4096
00044 
00045 #define BIT0  1
00046 #define BIT1  2
00047 #define BIT2  4
00048 #define BIT3  8
00049 #define BIT4  16
00050 #define BIT5  32
00051 #define BIT6  64
00052 #define BIT7  128
00053 #define BIT8  256*1
00054 #define BIT9  256*2
00055 #define BIT10 256*4
00056 #define BIT11 256*8
00057 #define BIT12 256*16
00058 #define BIT13 256*32
00059 #define BIT14 256*64
00060 #define BIT15 256*128
00061 #define BIT16 256*256*1
00062 #define BIT17 256*256*2
00063 #define BIT18 256*256*4
00064 #define BIT19 256*256*8
00065 #define BIT20 256*256*16
00066 #define BIT21 256*256*32
00067 #define BIT22 256*256*64
00068 #define BIT23 256*256*128
00069 #define BIT24 256*256*256*1
00070 #define BIT25 256*256*256*2
00071 #define BIT26 256*256*256*4
00072 #define BIT27 256*256*256*8
00073 #define BIT28 256*256*256*16
00074 #define BIT29 256*256*256*32
00075 #define BIT30 256*256*256*64
00076 #define BIT31 256*256*256*128
00077 
00078 #endif