/** @file
* @brief Wrapper for Boehm GC
*/
/* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2004 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_INKSCAPE_GC_CORE_H
#define SEEN_INKSCAPE_GC_CORE_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <new>
#include <cstdlib>
#include <cstddef>
#ifdef HAVE_GC_GC_H
#else
# include <gc.h>
#endif
enum ScanPolicy {
};
enum CollectionPolicy {
AUTO,
};
enum Delete {
};
struct Ops {
void (*do_init)();
void **old_data);
void const *base);
void (*gcollect)();
void (*enable)();
void (*disable)();
};
struct Core {
static void init();
}
}
}
}
}
void *data,
void **old_data)
{
}
void *base)
{
}
}
return _ops.get_heap_size();
}
return _ops.get_free_bytes();
}
static inline void gcollect() {
}
static inline void enable() {
}
static inline void disable() {
}
}
};
inline void init() {
}
void request_early_collection();
}
}
{
void *mem;
} else {
}
} else {
} else {
}
}
if (!mem) {
}
if (cleanup) {
}
return mem;
}
{
}
{
}
{
}
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :