~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/lock0priv.ic

  • Committer: Monty Taylor
  • Date: 2008-07-26 16:22:28 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080726162228-atatk41l6w4np70m
Added gettext calls in to my_getopt.c and drizzle.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 2007, 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., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/lock0priv.ic
21
 
Lock module internal inline methods.
22
 
 
23
 
Created July 16, 2007 Vasil Dimov
24
 
*******************************************************/
25
 
 
26
 
/* This file contains only methods which are used in
27
 
lock/lock0* files, other than lock/lock0lock.c.
28
 
I.e. lock/lock0lock.c contains more internal inline
29
 
methods but they are used only in that file. */
30
 
 
31
 
#ifndef LOCK_MODULE_IMPLEMENTATION
32
 
#error Do not include lock0priv.ic outside of the lock/ module
33
 
#endif
34
 
 
35
 
/*********************************************************************//**
36
 
Gets the type of a lock.
37
 
@return LOCK_TABLE or LOCK_REC */
38
 
UNIV_INLINE
39
 
ulint
40
 
lock_get_type_low(
41
 
/*==============*/
42
 
        const lock_t*   lock)   /*!< in: lock */
43
 
{
44
 
        ut_ad(lock);
45
 
 
46
 
        return(lock->type_mode & LOCK_TYPE_MASK);
47
 
}
48
 
 
49
 
/* vim: set filetype=c: */