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 /* ----------------------------------------------------------------------- */
sgtnxv_(integer * n,real * vpx,real * vpy,integer * itpat,integer * icolor)21 /* Subroutine */ int sgtnxv_(integer *n, real *vpx, real *vpy, integer *itpat,
22 	 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 *), sztncl_(void), swstcl_(integer *), sztnop_(integer *),
28 	     sztnzv_(integer *, real *, real *);
29 
30     /* Parameter adjustments */
31     --vpy;
32     --vpx;
33 
34     /* Function Body */
35     swqfcc_(&lfcatr);
36     if (! lfcatr) {
37 	msgdmp_("M", "SGTNXV", "FULL COLOR MODE IS NOT SUPPORTED.", (ftnlen)1,
38 		 (ftnlen)6, (ftnlen)33);
39     }
40     if (*n < 3) {
41 	msgdmp_("E", "SGTNXV", "NUMBER OF POINTS IS LESS THAN 3.", (ftnlen)1,
42 		(ftnlen)6, (ftnlen)32);
43     }
44     if (*itpat == 0) {
45 	msgdmp_("M", "SGTNXV", "TONE PAT. INDEX IS 0 / DO NOTHING.", (ftnlen)
46 		1, (ftnlen)6, (ftnlen)34);
47 	return 0;
48     }
49     if (*itpat < 0) {
50 	msgdmp_("E", "SGTNXV", "TONE PAT. INDEX IS LESS THAN 0.", (ftnlen)1, (
51 		ftnlen)6, (ftnlen)31);
52     }
53     swsfcm_(&c_true);
54     swstcl_(icolor);
55     swslcl_(icolor);
56     sztnop_(itpat);
57     sztnzv_(n, &vpx[1], &vpy[1]);
58     sztncl_();
59     swsfcm_(&c_false);
60     return 0;
61 } /* sgtnxv_ */
62 
63