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 /* ----------------------------------------------------------------------- */
sgplxu_(integer * n,real * upx,real * upy,integer * itype,integer * index,integer * icolor)21 /* Subroutine */ int sgplxu_(integer *n, real *upx, real *upy, integer *itype,
22 integer *index, integer *icolor)
23 {
24 static logical lfcatr;
25 extern /* Subroutine */ int swqfcc_(logical *), msgdmp_(char *, char *,
26 char *, ftnlen, ftnlen, ftnlen), swsfcm_(logical *), swslcl_(
27 integer *), szplcl_(void), szplop_(integer *, integer *), szplzu_(
28 integer *, real *, real *);
29
30 /* Parameter adjustments */
31 --upy;
32 --upx;
33
34 /* Function Body */
35 swqfcc_(&lfcatr);
36 if (! lfcatr) {
37 msgdmp_("M", "SGPLXU", "FULL COLOR MODE IS NOT SUPPORTED.", (ftnlen)1,
38 (ftnlen)6, (ftnlen)33);
39 }
40 if (*n < 2) {
41 msgdmp_("E", "SGPLXU", "NUMBER OF POINTS IS LESS THAN 2.", (ftnlen)1,
42 (ftnlen)6, (ftnlen)32);
43 }
44 if (*itype == 0) {
45 msgdmp_("M", "SGPLXU", "LINETYPE IS 0 / DO NOTHING.", (ftnlen)1, (
46 ftnlen)6, (ftnlen)27);
47 return 0;
48 }
49 if (*index == 0) {
50 msgdmp_("M", "SGPLXU", "POLYLINE INDEX IS 0 / DO NOTHING.", (ftnlen)1,
51 (ftnlen)6, (ftnlen)33);
52 return 0;
53 }
54 if (*index < 0) {
55 msgdmp_("E", "SGPLXU", "POLYLINE INDEX IS LESS THAN 0.", (ftnlen)1, (
56 ftnlen)6, (ftnlen)30);
57 }
58 swsfcm_(&c_true);
59 swslcl_(icolor);
60 szplop_(itype, index);
61 szplzu_(n, &upx[1], &upy[1]);
62 szplcl_();
63 swsfcm_(&c_false);
64 return 0;
65 } /* sgplxu_ */
66
67