8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-31 04:03:03 +01:00
firebird-mirror/src/gpre/movg.cpp

67 lines
2.0 KiB
C++
Raw Normal View History

2001-05-23 15:26:42 +02:00
//____________________________________________________________
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// PROGRAM: Gpre support
// MODULE: movg.cpp
// DESCRIPTION: Data mover and converter and comparator, etc.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// The contents of this file are subject to the Interbase Public
// License Version 1.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy
// of the License at http://www.Inprise.com/IPL.html
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// Software distributed under the License is distributed on an
// "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
// or implied. See the License for the specific language governing
// rights and limitations under the License.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// The Original Code was created by Inprise Corporation
// and its predecessors. Portions created by Inprise Corporation are
// Copyright (C) Inprise Corporation.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// All Rights Reserved.
// Contributor(s): ______________________________________.
// TMN (Mike Nordell) 11.APR.2001 - Reduce compiler warnings
//____________________________________________________________
//
//
#include "firebird.h"
2001-05-23 15:26:42 +02:00
#include "../jrd/common.h"
#include <stdarg.h>
#include "../jrd/dsc.h"
#include "../gpre/movg_proto.h"
// TMN: Unfortunately we need to include gpre.h before gpre_proto.h since
2001-05-23 15:26:42 +02:00
// the latter references a macro from the former, and doesn't include that
// header file itself. We need to include gpre_proto.h since we use gpre
// functions.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
#include "../gpre/gpre.h"
#include "../gpre/gpre_proto.h"
#include "../common/cvt.h"
2001-05-23 15:26:42 +02:00
static void post_error(const Firebird::Arg::StatusVector&);
2001-05-23 15:26:42 +02:00
//____________________________________________________________
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// Move (and possible convert) something to something else.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
2003-10-05 08:56:48 +02:00
void MOVG_move(const dsc* from, dsc* to)
2001-05-23 15:26:42 +02:00
{
CVT_move(from, to, post_error);
2001-05-23 15:26:42 +02:00
}
//____________________________________________________________
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
// A conversion error occurred. Complain.
2008-12-05 02:20:14 +01:00
//
2001-05-23 15:26:42 +02:00
static void post_error(const Firebird::Arg::StatusVector&)
2001-05-23 15:26:42 +02:00
{
CPR_error("conversion error: illegal string literal");
CPR_abort();
}