summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/debug.h103
-rw-r--r--src/decoder.cc2
-rw-r--r--src/frame.cc2
-rw-r--r--src/img_encoder.cc2
-rw-r--r--src/miav.cc1
-rw-r--r--src/miavd.cc3
-rw-r--r--src/mov_encoder.cc1
7 files changed, 0 insertions, 114 deletions
diff --git a/src/debug.h b/src/debug.h
deleted file mode 100644
index 48c0830..0000000
--- a/src/debug.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
-/***************************************************************************
- * debug.h
- *
- * Tue Apr 12 14:34:20 CEST 2005
- * Copyright 2005 Bent Bisballe
- * deva@aasimon.org
- ****************************************************************************/
-
-/*
- * This file is part of MIaV.
- *
- * MIaV is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MIaV 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with MIaV; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-#include "config.h"
-#ifndef __MIAV_DEBUG_H__
-#define __MIAV_DEBUG_H__
-
-//#define DEBUG_ALLOC
-
-#ifdef DEBUG_ALLOC
-typedef struct _A_{
- struct _A_* prev;
- struct _A_* next;
- char name[32];
- void *addr;
-} __debug__;
-
-__debug__ *debug_first = NULL;
-
-inline void debugAlloc(void *p, char* name)
-{
- __debug__ *d = debug_first;
-
- fprintf(stderr, "Adding %d - %s\n", p, name);
-
- debug_first = (__debug__*)malloc(sizeof(__debug__));
- debug_first->prev = NULL;
- debug_first->next = d;
- if(d) d->prev = debug_first;
- debug_first->addr = p;
- strcpy(debug_first->name, name);
-}
-
-inline void debugFree(void *p)
-{
- __debug__ *d = debug_first;
-
- while(d && d->addr != p) {
- d = d->next;
- }
-
- if(!d) {
- fprintf(stderr, "ERROR: memory address not found %d - perhaps already freed!\n", p);
- exit(1);
- }
-
- fprintf(stderr, "Removing %d - %s\n", p, d->name);
- __debug__ *next = d->next;
- __debug__ *prev = d->prev;
- if(prev) prev->next = d->next;
- if(next) next->prev = d->prev;
- if(debug_first == d) debug_first = next;
- free(d);
-}
-
-inline void debugPrint()
-{
- __debug__ *d = debug_first;
-
- fprintf(stderr, "Alloc List:\n");
-
- while(d) {
- fprintf(stderr, "\t[%d] %s\n", d->addr, d->name);
- d = d->next;
- }
-}
-
-#define FREE(x) debugFree(x)
-#define ALLOC(x, y) debugAlloc(x, y)
-#define PRINT() debugPrint()
-
-#else/*DEBUG_ALLOC*/
-
-#define FREE(x) {}
-#define ALLOC(x, y) {}
-#define PRINT() {}
-
-#endif/*DEBUG_ALLOC*/
-
-#endif/*__MIAV_DEBUG_H__*/
diff --git a/src/decoder.cc b/src/decoder.cc
index ac039f9..f32c18a 100644
--- a/src/decoder.cc
+++ b/src/decoder.cc
@@ -49,8 +49,6 @@
#include "dvfile.h"
#include "dv1394.h"
-#include "debug.h"
-
Decoder::Decoder(Info *ginfo,
sem_t *gencode_sem,
sem_t *gplayer_sem,
diff --git a/src/frame.cc b/src/frame.cc
index a274d89..568c46b 100644
--- a/src/frame.cc
+++ b/src/frame.cc
@@ -27,8 +27,6 @@
#include <config.h>
#include "frame.h"
-#include "debug.h"
-
#include <memory.h>
#include <stdlib.h>
diff --git a/src/img_encoder.cc b/src/img_encoder.cc
index 1d4a706..28702cf 100644
--- a/src/img_encoder.cc
+++ b/src/img_encoder.cc
@@ -37,8 +37,6 @@
#include "miav_config.h"
-#include "debug.h"
-
extern "C" {
#include <jpeglib.h>
}
diff --git a/src/miav.cc b/src/miav.cc
index 2217809..efdf448 100644
--- a/src/miav.cc
+++ b/src/miav.cc
@@ -32,7 +32,6 @@
#include "mainwindow.h"
#include "miav_config.h"
#include "info_gui.h"
-#include "debug.h"
int main(int argc, char *argv[])
{
diff --git a/src/miavd.cc b/src/miavd.cc
index 1c0d63f..9aba61c 100644
--- a/src/miavd.cc
+++ b/src/miavd.cc
@@ -30,9 +30,6 @@
#include "miav_config.h"
-//#include "info_console.h"
-#include "debug.h"
-
#include <stdio.h>
#include <string.h>
diff --git a/src/mov_encoder.cc b/src/mov_encoder.cc
index 4794561..640239d 100644
--- a/src/mov_encoder.cc
+++ b/src/mov_encoder.cc
@@ -41,7 +41,6 @@
#include "miav_config.h"
-#include "debug.h"
#include "libfame_wrapper.h"
MovEncoder::MovEncoder(volatile bool *r, sem_t *r_sem,