~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/ut/ut0byte.c

Removing global errbuff and cleaning up two remaining instances that referenced it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 
 
3
Copyright (c) 1994, 2009, Innobase Oy. All Rights Reserved.
 
4
 
 
5
This program is free software; you can redistribute it and/or modify it under
 
6
the terms of the GNU General Public License as published by the Free Software
 
7
Foundation; version 2 of the License.
 
8
 
 
9
This program is distributed in the hope that it will be useful, but WITHOUT
 
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
12
 
 
13
You should have received a copy of the GNU General Public License along with
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
 
19
/*******************************************************************
 
20
Byte utilities
 
21
 
 
22
Created 5/11/1994 Heikki Tuuri
 
23
********************************************************************/
 
24
 
 
25
#include "ut0byte.h"
 
26
 
 
27
#ifdef UNIV_NONINL
 
28
#include "ut0byte.ic"
 
29
#endif
 
30
 
 
31
/* Zero value for a dulint */
 
32
UNIV_INTERN const dulint        ut_dulint_zero  = {0, 0};
 
33
 
 
34
/* Maximum value for a dulint */
 
35
UNIV_INTERN const dulint        ut_dulint_max   = {0xFFFFFFFFUL, 0xFFFFFFFFUL};
 
36
 
 
37
#ifdef notdefined /* unused code */
 
38
#include "ut0sort.h"
 
39
 
 
40
/****************************************************************
 
41
Sort function for dulint arrays. */
 
42
UNIV_INTERN
 
43
void
 
44
ut_dulint_sort(dulint* arr, dulint* aux_arr, ulint low, ulint high)
 
45
/*===============================================================*/
 
46
{
 
47
        UT_SORT_FUNCTION_BODY(ut_dulint_sort, arr, aux_arr, low, high,
 
48
                              ut_dulint_cmp);
 
49
}
 
50
#endif /* notdefined */