mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Merge pull request #33 from evanmiller/remove-dmalloc
Remove references to dmalloc
This commit is contained in:
commit
0f017883f6
@ -18,10 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
char *
|
||||
mdb_get_objtype_string(int obj_type)
|
||||
{
|
||||
|
@ -21,10 +21,6 @@
|
||||
#include <math.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#define OFFSET_MASK 0x1fff
|
||||
|
||||
char *mdb_money_to_string(MdbHandle *mdb, int start);
|
||||
|
@ -21,10 +21,6 @@
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
void mdb_buffer_dump(const void* buf, off_t start, size_t len)
|
||||
{
|
||||
char asc[20];
|
||||
|
@ -19,10 +19,6 @@
|
||||
#include <inttypes.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
typedef struct {
|
||||
int pg_size;
|
||||
|
@ -19,10 +19,6 @@
|
||||
#include <errno.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) (a>b ? b : a)
|
||||
#endif
|
||||
|
@ -21,10 +21,6 @@
|
||||
#include <mswstr/mswstr.h>
|
||||
#endif
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
MdbIndexPage *mdb_index_read_bottom_pg(MdbHandle *mdb, MdbIndex *idx, MdbIndexChain *chain);
|
||||
MdbIndexPage *mdb_chain_add_page(MdbHandle *mdb, MdbIndexChain *chain, guint32 pg);
|
||||
|
||||
|
@ -20,10 +20,6 @@
|
||||
#include <string.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* mdb_like_cmp
|
||||
* @s: String to search within.
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
static gint32
|
||||
mdb_map_find_next0(MdbHandle *mdb, unsigned char *map, unsigned int map_sz, guint32 start_pg)
|
||||
{
|
||||
|
@ -19,10 +19,6 @@
|
||||
#include <stdio.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#define MAX_MONEY_PRECISION 20
|
||||
#define MAX_NUMERIC_PRECISION 40
|
||||
/*
|
||||
|
@ -22,10 +22,6 @@
|
||||
#include <stdlib.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG 1
|
||||
|
||||
static unsigned long opts;
|
||||
|
@ -29,9 +29,6 @@
|
||||
|
||||
#include <time.h>
|
||||
#include "mdbtools.h"
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
void
|
||||
mdb_sql_walk_tree(MdbSargNode *node, MdbSargTreeFunc func, gpointer data)
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* mdb_stats_on:
|
||||
* @mdb: Handle to the (open) MDB file to collect stats on.
|
||||
|
@ -18,11 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
|
||||
static gint mdb_col_comparer(MdbColumn **a, MdbColumn **b)
|
||||
{
|
||||
if ((*a)->col_num > (*b)->col_num)
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Temp table routines. These are currently used to generate mock results for
|
||||
* commands like "list tables" and "describe table"
|
||||
|
@ -21,11 +21,6 @@
|
||||
#include <inttypes.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
|
||||
//static int mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg);
|
||||
static int mdb_add_row_to_leaf_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg, MdbField *idx_fields, guint32 pgnum, guint16 rownum);
|
||||
|
||||
|
@ -20,10 +20,6 @@
|
||||
#define _XOPEN_SOURCE
|
||||
#include "mdbsql.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WORDEXP_H
|
||||
#define HAVE_WORDEXP
|
||||
#include <wordexp.h>
|
||||
|
@ -21,10 +21,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -18,10 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#undef MDB_BIND_SIZE
|
||||
#define MDB_BIND_SIZE 200000
|
||||
|
||||
|
@ -22,10 +22,6 @@
|
||||
#include <string.h>
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
void copy_header (FILE *f)
|
||||
{
|
||||
fprintf (f, "/******************************************************************/\n");
|
||||
|
@ -24,10 +24,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
#define FILENAMESIZE 128
|
||||
#define BUFFERSIZE 4096
|
||||
#define LF 10
|
||||
|
@ -19,10 +19,6 @@
|
||||
/* this utility dumps the schema for an existing database */
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -47,10 +47,6 @@ extern void clear_history ();
|
||||
#include <string.h>
|
||||
#include "mdbsql.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
void dump_results(FILE *out, MdbSQL *sql, char *delimiter);
|
||||
void dump_results_pp(FILE *out, MdbSQL *sql);
|
||||
|
||||
|
@ -20,10 +20,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
struct type_struct {
|
||||
char *name;
|
||||
int value;
|
||||
|
@ -21,10 +21,6 @@
|
||||
#include "mdbver.h"
|
||||
#include "mdbprivate.h"
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include "dmalloc.h"
|
||||
#endif
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user