The R Project SVN R

Rev

Rev 60844 | Rev 87879 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 60844 Rev 63171
Line 2... Line 2...
2
 * Source code from Xfig 3.2.4 modified to work with arrays of doubles
2
 * Source code from Xfig 3.2.4 modified to work with arrays of doubles
3
 * instead linked lists of F_points and to remove some globals(!)
3
 * instead linked lists of F_points and to remove some globals(!)
4
 * See copyright etc below.
4
 * See copyright etc below.
5
 *
5
 *
6
 * #included from engine.c
6
 * #included from engine.c
-
 
7
 * That manages the R_alloc stack.
7
 */
8
 */
8
 
9
 
9
/*
10
/*
10
 * From w_drawprim.h
11
 * From w_drawprim.h
11
 */
12
 */
Line 43... Line 44...
43
static double *xpoints;
44
static double *xpoints;
44
static double *ypoints;
45
static double *ypoints;
45
 
46
 
46
/************* Code begins here *************/
47
/************* Code begins here *************/
47
 
48
 
-
 
49
/* R_allocs or mallocs global arrays */
48
static Rboolean
50
static Rboolean
49
add_point(double x, double y, pGEDevDesc dd)
51
add_point(double x, double y, pGEDevDesc dd)
50
{
52
{
51
    if (npoints >= max_points) {
53
    if (npoints >= max_points) {
52
	int tmp_n;
54
	int tmp_n;