~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unireg.h

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; either version 2 of the License, or
9
 
 *  (at your option) any later version.
10
 
 *
11
 
 *  This program is distributed in the hope that it will be useful,
12
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 *  GNU General Public License for more details.
15
 
 *
16
 
 *  You should have received a copy of the GNU General Public License
17
 
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 
 */
 
1
/* Copyright (C) 2000-2006 MySQL AB
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
20
16
 
21
17
/*  Extra functions used by unireg library */
22
18
 
23
19
#ifndef _unireg_h
24
20
 
 
21
#include <libdrizzle/gettext.h>
 
22
 
25
23
#ifndef NO_ALARM_LOOP
26
24
#define NO_ALARM_LOOP           /* lib5 and popen can't use alarm */
27
25
#endif
28
26
 
29
 
 
 
27
#define ER(X) _(drizzled_error_messages[(X) - ER_ERROR_FIRST])
 
28
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : _("Invalid error code"))
 
29
 
 
30
 
 
31
#define ERRMAPP 1                               /* Errormap f|r my_error */
30
32
#define LIBLEN FN_REFLEN-FN_LEN                 /* Max l{ngd p} dev */
31
33
/* extra 4+4 bytes for slave tmp tables */
32
34
#define MAX_DBKEY_LENGTH (NAME_LEN*2+1+1+4+4)
144
146
#define TE_INFO_LENGTH 3
145
147
#define MTYP_NOEMPTY_BIT 128
146
148
 
147
 
 
 
149
#define FRM_VER_TRUE_VARCHAR (FRM_VER+4) /* 10 */
148
150
#define DRIZZLE_VERSION_TABLESPACE_IN_FRM_CGE 50120
149
151
#define DRIZZLE_VERSION_TABLESPACE_IN_FRM 50205
150
152
#define DRIZZLE_VERSION_TABLESPACE_IN_FRM_STR "50205"
172
174
 
173
175
/* Include prototypes for unireg */
174
176
 
 
177
#include <drizzled/error.h>
175
178
#include "structs.h"                            /* All structs we need */
176
179
 
177
180
#endif