~ubuntu-branches/ubuntu/precise/pcb/precise

« back to all changes in this revision

Viewing changes to src/mymem.h

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-02-20 13:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050220131400-pfz66g5vhx0azl8f
Tags: 1.99j+20050127-2
* Improved package description: (closes: #295405)
* Fixed dependency: tk84 -> tk8.4 (closes: #295404)
* Updated README.debian (closes: #269578)
* Applied patch to src/djopt.c to allow compilation with gcc-4.0
  (closes: #294319), thanks to Andreas Jochens for the patch.
* Prevent example files from being compressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 *  Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany
23
23
 *  Thomas.Nau@rz.uni-ulm.de
24
24
 *
25
 
 *  RCS: $Id: mymem.h,v 1.1 1998/02/19 18:06:34 sync Exp $
 
25
 *  RCS: $Id: mymem.h,v 1.2 2004/02/15 18:04:04 haceaton Exp $
26
26
 */
27
27
 
28
28
/* prototypes for memory routines
37
37
/* ---------------------------------------------------------------------------
38
38
 * number of additional objects that are allocated with one system call
39
39
 */
40
 
#define STEP_VIA                        500             /* block size for realloc() calls */
 
40
#define STEP_VIA                        2000            /* block size for realloc() calls */
41
41
#define STEP_PIN                        20
42
42
#define STEP_PAD                        20
43
 
#define STEP_LINE                       500
44
 
#define STEP_ARC                        40
 
43
#define STEP_LINE                       10000
 
44
#define STEP_ARC                        1000
45
45
#define STEP_ELEMENTLINE        10
46
46
#define STEP_ELEMENTARC         5
47
47
#define STEP_TEXT                       50
57
57
#define STEP_LIBRARYMENU        10
58
58
#define STEP_LIBRARYENTRY       20
59
59
#define STEP_RUBBERBAND         100
60
 
#define STEP_RAT                200
 
60
#define STEP_RAT                2000
61
61
 
62
62
/* ---------------------------------------------------------------------------
63
63
 * some memory types
79
79
PolygonTypePtr          GetPolygonMemory(LayerTypePtr);
80
80
PointTypePtr            GetPointMemoryInPolygon(PolygonTypePtr);
81
81
ElementTypePtr          GetElementMemory(DataTypePtr);
 
82
BoxTypePtr              GetBoxMemory(BoxListTypePtr);
82
83
ConnectionTypePtr       GetConnectionMemory(NetTypePtr);
83
84
NetTypePtr              GetNetMemory(NetListTypePtr);
 
85
NetListTypePtr          GetNetListMemory(NetListListTypePtr);
84
86
LibraryMenuTypePtr      GetLibraryMenuMemory(LibraryTypePtr);
85
87
LibraryEntryTypePtr     GetLibraryEntryMemory(LibraryMenuTypePtr);
86
88
ElementTypeHandle       GetDrillElementMemory(DrillTypePtr);
94
96
void                            FreePolygonMemory(PolygonTypePtr);
95
97
void                            FreeElementMemory(ElementTypePtr);
96
98
void                            FreePCBMemory(PCBTypePtr);
 
99
void                            FreeBoxListMemory(BoxListTypePtr);
 
100
void                            FreeNetListListMemory(NetListListTypePtr);
97
101
void                            FreeNetListMemory(NetListTypePtr);
98
102
void                            FreeNetMemory(NetTypePtr);
99
103
void                            FreeDataMemory(DataTypePtr);