Merge pull request #33 from evanmiller/remove-dmalloc

Remove references to dmalloc
This commit is contained in:
Evan Miller 2020-08-20 15:22:17 -04:00 committed by GitHub
commit 0f017883f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 0 additions and 97 deletions

View File

@ -18,10 +18,6 @@
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
char *
mdb_get_objtype_string(int obj_type)
{

View File

@ -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);

View File

@ -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];

View File

@ -19,10 +19,6 @@
#include <inttypes.h>
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
/*
typedef struct {
int pg_size;

View File

@ -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

View File

@ -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);

View File

@ -20,10 +20,6 @@
#include <string.h>
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
/**
* mdb_like_cmp
* @s: String to search within.

View File

@ -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)
{

View File

@ -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
/*

View File

@ -22,10 +22,6 @@
#include <stdlib.h>
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
#define DEBUG 1
static unsigned long opts;

View File

@ -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)

View File

@ -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.

View File

@ -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)

View File

@ -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"

View File

@ -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);

View File

@ -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>

View File

@ -21,10 +21,6 @@
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
int
main (int argc, char **argv)
{

View File

@ -18,10 +18,6 @@
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
#undef MDB_BIND_SIZE
#define MDB_BIND_SIZE 200000

View File

@ -22,10 +22,6 @@
#include <string.h>
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
void copy_header (FILE *f)
{
fprintf (f, "/******************************************************************/\n");

View File

@ -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

View File

@ -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)
{

View File

@ -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);

View File

@ -20,10 +20,6 @@
#include "mdbtools.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
struct type_struct {
char *name;
int value;

View File

@ -21,10 +21,6 @@
#include "mdbver.h"
#include "mdbprivate.h"
#ifdef DMALLOC
#include "dmalloc.h"
#endif
int
main(int argc, char **argv)
{