~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/korr.h

  • Committer: Patrick Galbraith
  • Date: 2010-10-03 13:40:30 UTC
  • mto: (1812.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1813.
  • Revision ID: patg@patg-desktop-20101003134030-j13wf1e79za77jtf
Added license to start_mc.sh.in to clear up ambiguity

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
42
42
                                    ((uint32_t) (unsigned char) (A)[0])))
43
43
#define sint4korr(A)    (*((long *) (A)))
44
44
#define uint2korr(A)    (*((uint16_t *) (A)))
45
 
#if defined(HAVE_VALGRIND)
 
45
#if defined(HAVE_purify)
46
46
#define uint3korr(A)    (uint32_t) (((uint32_t) ((unsigned char) (A)[0])) +\
47
47
                                  (((uint32_t) ((unsigned char) (A)[1])) << 8) +\
48
48
                                  (((uint32_t) ((unsigned char) (A)[2])) << 16))
54
54
    It means, that you have to provide enough allocated space !
55
55
*/
56
56
#define uint3korr(A)    (long) (*((unsigned int *) (A)) & 0xFFFFFF)
57
 
#endif /* HAVE_VALGRIND */
 
57
#endif /* HAVE_purify */
58
58
#define uint4korr(A)    (*((uint32_t *) (A)))
59
59
#define uint8korr(A)    (*((uint64_t *) (A)))
60
60
#define sint8korr(A)    (*((int64_t *) (A)))