head	1.2;
access;
symbols
	RPM_4_2_1:1.1.1.4
	RPM_4_2:1.1.1.4
	RPM_4_1_1:1.1.1.4
	RPM_4_1:1.1.1.3
	RPM_4_0_5:1.1.1.2
	RPM_4_0_4:1.1.1.1
	RPM:1.1.1;
locks; strict;
comment	@// @;


1.2
date	2008.01.02.09.51.40;	author rse;	state dead;
branches;
next	1.1;
commitid	z4cpSiAhOCXk5PLs;

1.1
date	2002.01.07.22.29.55;	author rse;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.01.07.22.29.55;	author rse;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2003.01.18.13.48.49;	author rse;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2001.10.15.03.47.21;	author rse;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2003.01.18.14.04.50;	author rse;	state Exp;
branches;
next	;


desc
@@


1.2
log
@remove the ancient RPM 4.2.1 source tree copy
@
text
@/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 1997-2001
 *	Sleepycat Software.  All rights reserved.
 */

#include "db_config.h"

#ifndef lint
static const char revid[] = "Id: cxx_dbt.cpp,v 11.49 2001/07/28 20:01:18 dda Exp ";
#endif /* not lint */

#include <errno.h>
#include <string.h>

#include "db_cxx.h"
#include "cxx_int.h"

#include "db_int.h"
#include "db_page.h"
#include "db_auto.h"
#include "crdel_auto.h"
#include "db_ext.h"
#include "common_ext.h"

Dbt::Dbt()
{
	DBT *dbt = this;
	memset(dbt, 0, sizeof(DBT));
}

Dbt::Dbt(void *data_arg, size_t size_arg)
{
	DBT *dbt = this;
	memset(dbt, 0, sizeof(DBT));
	set_data(data_arg);
	set_size(size_arg);
}

Dbt::~Dbt()
{
}

Dbt::Dbt(const Dbt &that)
{
	const DBT *from = &that;
	DBT *to = this;
	memcpy(to, from, sizeof(DBT));
}

Dbt &Dbt::operator = (const Dbt &that)
{
	if (this != &that) {
		const DBT *from = &that;
		DBT *to = this;
		memcpy(to, from, sizeof(DBT));
	}
	return (*this);
}
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Import: RPM 4.0.4
@
text
@@


1.1.1.2
log
@Import: RPM 4.0.5
@
text
@d4 1
a4 1
 * Copyright (c) 1997-2002
d11 1
a11 1
static const char revid[] = "Id: cxx_dbt.cpp,v 11.53 2002/03/27 04:31:14 bostic Exp ";
d18 1
a18 1
#include "dbinc/cxx_int.h"
d21 5
a25 6
#include "dbinc/db_page.h"
#include "dbinc_auto/db_auto.h"
#include "dbinc_auto/crdel_auto.h"
#include "dbinc/db_dispatch.h"
#include "dbinc_auto/db_ext.h"
#include "dbinc_auto/common_ext.h"
d33 1
a33 1
Dbt::Dbt(void *data_arg, u_int32_t size_arg)
@


1.1.1.3
log
@Import: RPM 4.1
@
text
@d4 1
a4 1
 * Copyright (c) 1997-2001
d11 1
a11 1
static const char revid[] = "Id: cxx_dbt.cpp,v 11.49 2001/07/28 20:01:18 dda Exp ";
d18 1
a18 1
#include "cxx_int.h"
d21 6
a26 5
#include "db_page.h"
#include "db_auto.h"
#include "crdel_auto.h"
#include "db_ext.h"
#include "common_ext.h"
d34 1
a34 1
Dbt::Dbt(void *data_arg, size_t size_arg)
@


1.1.1.4
log
@Import: RPM 4.1.1
@
text
@d4 1
a4 1
 * Copyright (c) 1997-2002
d11 1
a11 1
static const char revid[] = "Id: cxx_dbt.cpp,v 11.53 2002/03/27 04:31:14 bostic Exp ";
d18 1
a18 1
#include "dbinc/cxx_int.h"
d21 5
a25 6
#include "dbinc/db_page.h"
#include "dbinc_auto/db_auto.h"
#include "dbinc_auto/crdel_auto.h"
#include "dbinc/db_dispatch.h"
#include "dbinc_auto/db_ext.h"
#include "dbinc_auto/common_ext.h"
d33 1
a33 1
Dbt::Dbt(void *data_arg, u_int32_t size_arg)
@


