~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/cslib/CSDefs.h

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2008 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2008 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
 *
19
19
 * Original author: Paul McCullagh (H&G2JCtL)
20
20
 * Continued development: Barry Leslie
35
35
// Use standard portable data types
36
36
#include <stdint.h>
37
37
 
38
 
/* Those compilers that support the function
39
 
 * macro (in particular the "pretty" function
40
 
 * macro must be defined here.
41
 
 */
42
 
#ifdef OS_WINDOWS
43
 
#define __FUNC__                                __FUNCTION__
44
 
#elif defined(OS_SOLARIS)
45
 
#define __FUNC__                                "__func__"
46
 
#else
47
 
#define __FUNC__                                __PRETTY_FUNCTION__
48
 
#endif
49
 
 
50
38
/*
51
39
 * An unsigned integer, 1 byte long:
52
40
 */
59
47
 */
60
48
#define s_char                  unsigned char
61
49
 
62
 
/* We assumes that off_t is 8 bytes so to ensure this always use  off64_t*/
 
50
/* PBMS assumes that off_t is 8 bytes so to ensure this always use  off64_t*/
63
51
#define off64_t                 uint64_t
64
52
 
65
53
 
83
71
#define CS_DIR_DELIM            "\\"
84
72
#define IS_DIR_CHAR(ch)         ((ch) == CS_DIR_CHAR || (ch) == '/')
85
73
 
86
 
#ifndef PATH_MAX
87
 
#define PATH_MAX                MAX_PATH
88
 
#endif
89
 
 
90
 
#ifndef NAME_MAX
91
 
#define NAME_MAX                MAX_PATH
92
 
#endif
93
 
 
94
74
#else
95
75
 
96
76
#define CS_DEFAULT_EOL          "\n"
104
84
#define CS_RELEASE_STACK_SIZE   200
105
85
#define CS_JUMP_STACK_SIZE              20
106
86
 
 
87
/* Fixed length types */
 
88
 
 
89
#ifdef CS_WIN
 
90
 
 
91
#ifndef PATH_MAX
 
92
#define PATH_MAX                MAX_PATH
 
93
#endif
 
94
 
 
95
#ifndef NAME_MAX
 
96
#define NAME_MAX                MAX_PATH
 
97
#endif
 
98
 
 
99
#endif // CS_WIN
 
100
 
107
101
/* C string display width sizes including space for a null terminator and possible sign. */
108
102
#define CS_WIDTH_INT_8  5
109
103
#define CS_WIDTH_INT_16 7
305
299
                char *rec_chars;
306
300
                CSIntPtr int_val;
307
301
} CSDiskData;
308
 
 
309
 
#define CHECKSUM_VALUE_SIZE                     16
310
 
typedef struct {
311
 
        u_char val[CHECKSUM_VALUE_SIZE];
312
 
} Md5Digest;
313
 
 
314
302
        
315
303
#endif