diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-02-16 17:23:38 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-02-16 17:23:38 -0600 |
commit | 2706f30ee0790628769e996041df687819c4d42e (patch) | |
tree | e8266fb61388f40075dbd3ba4ff6134374641e76 /keximdb/src/mdbtools/libmdb/mem.c | |
download | keximdb-2706f30ee0790628769e996041df687819c4d42e.tar.gz keximdb-2706f30ee0790628769e996041df687819c4d42e.zip |
Initial import
Diffstat (limited to 'keximdb/src/mdbtools/libmdb/mem.c')
-rw-r--r-- | keximdb/src/mdbtools/libmdb/mem.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/keximdb/src/mdbtools/libmdb/mem.c b/keximdb/src/mdbtools/libmdb/mem.c new file mode 100644 index 0000000..9a542aa --- /dev/null +++ b/keximdb/src/mdbtools/libmdb/mem.c @@ -0,0 +1,56 @@ +/* MDB Tools - A library for reading MS Access database files + * Copyright (C) 2000 Brian Bruns + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ +#ifdef JAVA +#include "javadefines.h" +#else +#include "mdbtools.h" +#include <locale.h> + +#ifdef DMALLOC +#include "dmalloc.h" +#endif +#endif /* JAVA */ +/** + * mdb_init: + * + * Initializes the LibMDB library. This function should be called exactly once + * by calling program and prior to any other function. + * + **/ +/* METHOD */ void mdb_init() +{ +#if !MDB_NO_BACKENDS + mdb_init_backends(); +#endif +} + +/** + * mdb_exit: + * + * Cleans up the LibMDB library. This function should be called exactly once + * by the calling program prior to exiting (or prior to final use of LibMDB + * functions). + * + **/ +/* METHOD */ void mdb_exit() +{ +#if !MDB_NO_BACKENDS + mdb_remove_backends(); +#endif +} |