~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/debug/sysv-heap.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Inkscape::Debug::SysVHeap - malloc() statistics via System V interface
 
3
 *
 
4
 * Authors:
 
5
 *   MenTaLguY <mental@rydia.net>
 
6
 *
 
7
 * Copyright (C) 2005 MenTaLguY
 
8
 *
 
9
 * Released under GNU GPL, read the file 'COPYING' for more information
 
10
 */
 
11
 
 
12
#ifndef SEEN_INKSCAPE_DEBUG_SYSV_HEAP_H
 
13
#define SEEN_INKSCAPE_DEBUG_SYSV_HEAP_H
 
14
 
 
15
#include "debug/heap.h"
 
16
 
 
17
namespace Inkscape {
 
18
namespace Debug {
 
19
 
 
20
class SysVHeap : public Heap {
 
21
public:
 
22
    SysVHeap() {}
 
23
    
 
24
    int features() const;
 
25
 
 
26
    Util::ptr_shared<char> name() const {
 
27
        return Util::share_static_string("standard malloc()");
 
28
    }
 
29
    Stats stats() const;
 
30
    void force_collect() {}
 
31
};
 
32
 
 
33
}
 
34
}
 
35
 
 
36
#endif
 
37
 
 
38
/*
 
39
  Local Variables:
 
40
  mode:c++
 
41
  c-file-style:"stroustrup"
 
42
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
43
  indent-tabs-mode:nil
 
44
  fill-column:99
 
45
  End:
 
46
*/
 
47
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :