| 1 | /* |
|---|
| 2 | * TransFig: Facility for Translating Fig code |
|---|
| 3 | * Copyright (c) 1985 Supoj Sutantavibul |
|---|
| 4 | * Copyright (c) 1991 Micah Beck |
|---|
| 5 | * |
|---|
| 6 | * Permission to use, copy, modify, distribute, and sell this software and its |
|---|
| 7 | * documentation for any purpose is hereby granted without fee, provided that |
|---|
| 8 | * the above copyright notice appear in all copies and that both that |
|---|
| 9 | * copyright notice and this permission notice appear in supporting |
|---|
| 10 | * documentation. The authors make no representations about the suitability |
|---|
| 11 | * of this software for any purpose. It is provided "as is" without express |
|---|
| 12 | * or implied warranty. |
|---|
| 13 | * |
|---|
| 14 | * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
|---|
| 15 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
|---|
| 16 | * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
|---|
| 17 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, |
|---|
| 18 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
|---|
| 19 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
|---|
| 20 | * PERFORMANCE OF THIS SOFTWARE. |
|---|
| 21 | * |
|---|
| 22 | */ |
|---|
| 23 | |
|---|
| 24 | extern char *malloc(); |
|---|
| 25 | extern char *calloc(); |
|---|
| 26 | |
|---|
| 27 | #define Line_malloc(z) z = (F_line*)malloc(LINOBJ_SIZE) |
|---|
| 28 | #define Eps_malloc(z) z = (F_eps*)malloc(EPS_SIZE) |
|---|
| 29 | #define Spline_malloc(z) z = (F_spline*)malloc(SPLOBJ_SIZE) |
|---|
| 30 | #define Ellipse_malloc(z) z = (F_ellipse*)malloc(ELLOBJ_SIZE) |
|---|
| 31 | #define Arc_malloc(z) z = (F_arc*)malloc(ARCOBJ_SIZE) |
|---|
| 32 | #define Compound_malloc(z) z = (F_compound*)malloc(COMOBJ_SIZE) |
|---|
| 33 | #define Text_malloc(z) z = (F_text*)malloc(TEXOBJ_SIZE) |
|---|
| 34 | #define Point_malloc(z) z = (F_point*)malloc(POINT_SIZE) |
|---|
| 35 | #define Control_malloc(z) z = (F_control*)malloc(CONTROL_SIZE) |
|---|
| 36 | #define Arrow_malloc(z) z = (F_arrow*)malloc(ARROW_SIZE) |
|---|
| 37 | |
|---|
| 38 | extern char Err_mem[]; |
|---|
| 39 | extern char Err_incomp[]; |
|---|