1 /*  -- translated by f2c (version 20100827).
2    You must link the resulting object file with libf2c:
3 	on Microsoft Windows system, link with libf2c.lib;
4 	on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 	or, if you install libf2c.a in a standard place, with -lf2c -lm
6 	-- in that order, at the end of the command line, as in
7 		cc *.o -lf2c -lm
8 	Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9 
10 		http://www.netlib.org/f2c/libf2c.zip
11 */
12 
13 #include "libtinyf2c.h"
14 
15 /* Table of constant values */
16 
17 static logical c_true = TRUE_;
18 static logical c_false = FALSE_;
19 
20 /* ----------------------------------------------------------------------- */
sgpmxv_(integer * n,real * vpx,real * vpy,integer * itype,integer * index,integer * icolor,real * rsize)21 /* Subroutine */ int sgpmxv_(integer *n, real *vpx, real *vpy, integer *itype,
22 	 integer *index, integer *icolor, real *rsize)
23 {
24     static logical lfcatr;
25     extern /* Subroutine */ int swqfcc_(logical *), msgdmp_(char *, char *,
26 	    char *, ftnlen, ftnlen, ftnlen), swsfcm_(logical *), swslcl_(
27 	    integer *), szpmcl_(void), szpmop_(integer *, integer *, real *),
28 	    szpmzv_(integer *, real *, real *);
29 
30     /* Parameter adjustments */
31     --vpy;
32     --vpx;
33 
34     /* Function Body */
35     swqfcc_(&lfcatr);
36     if (! lfcatr) {
37 	msgdmp_("M", "SGPMXV", "FULL COLOR MODE IS NOT SUPPORTED.", (ftnlen)1,
38 		 (ftnlen)6, (ftnlen)33);
39     }
40     if (*n < 1) {
41 	msgdmp_("E", "SGPMXV", "NUMBER OF POINTS IS LESS THAN 1.", (ftnlen)1,
42 		(ftnlen)6, (ftnlen)32);
43     }
44     if (*itype == 0) {
45 	msgdmp_("M", "SGPMXV", "MARKER TYPE IS 0 / DO NOTHING.", (ftnlen)1, (
46 		ftnlen)6, (ftnlen)30);
47 	return 0;
48     }
49     if (*index == 0) {
50 	msgdmp_("M", "SGPMXV", "POLYMARKER INDEX IS 0 / DO NOTHING.", (ftnlen)
51 		1, (ftnlen)6, (ftnlen)35);
52 	return 0;
53     }
54     if (*index < 0) {
55 	msgdmp_("E", "SGPMXV", "POLYMARKER INDEX IS LESS THAN 0.", (ftnlen)1,
56 		(ftnlen)6, (ftnlen)32);
57     }
58     if (*rsize == 0.f) {
59 	msgdmp_("M", "SGPMXV", "MARKER SIZE IS 0 / DO NOTHING.", (ftnlen)1, (
60 		ftnlen)6, (ftnlen)30);
61 	return 0;
62     }
63     if (*rsize < 0.f) {
64 	msgdmp_("E", "SGPMXV", "MARKER SIZE IS LESS THAN ZERO.", (ftnlen)1, (
65 		ftnlen)6, (ftnlen)30);
66     }
67     swsfcm_(&c_true);
68     swslcl_(icolor);
69     szpmop_(itype, index, rsize);
70     szpmzv_(n, &vpx[1], &vpy[1]);
71     szpmcl_();
72     swsfcm_(&c_false);
73     return 0;
74 } /* sgpmxv_ */
75 
76