~ubuntu-branches/ubuntu/gutsy/plotutils/gutsy

« back to all changes in this revision

Viewing changes to libplot/t_tek_vec.c

  • Committer: Bazaar Package Importer
  • Author(s): Floris Bruynooghe
  • Date: 2007-05-10 19:48:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070510194854-mrr3lgwzpxd8hovo
Tags: 2.5-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file contains the low-level _tek_vector() method, which takes two
2
 
   integer arguments and writes them, in the format used by a Tektronix
 
1
/* This file is part of the GNU plotutils package.  Copyright (C) 1995,
 
2
   1996, 1997, 1998, 1999, 2000, 2005, Free Software Foundation, Inc.
 
3
 
 
4
   The GNU plotutils package is free software.  You may redistribute it
 
5
   and/or modify it under the terms of the GNU General Public License as
 
6
   published by the Free Software foundation; either version 2, or (at your
 
7
   option) any later version.
 
8
 
 
9
   The GNU plotutils package is distributed in the hope that it will be
 
10
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
   General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License along
 
15
   with the GNU plotutils package; see the file COPYING.  If not, write to
 
16
   the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
 
17
   Boston, MA 02110-1301, USA. */
 
18
 
 
19
/* This file contains the low-level _pl_t_tek_vector() method, which takes
 
20
   two integer arguments and writes them, in the format used by a Tektronix
3
21
   4014 terminal for addresses while in vector or point-plot mode, to a
4
22
   specified output stream.  It is called by several TekPlotter methods.
5
23
   
41
59
#define TWOBITS 0x03            /* a dollar and six bits for a haircut... */
42
60
 
43
61
void
44
 
#ifdef _HAVE_PROTOS
45
 
_tek_vector (R___(Plotter *_plotter) int xx, int yy)
46
 
#else
47
 
_tek_vector (R___(_plotter) xx, yy)
48
 
     S___(Plotter *_plotter;)
49
 
     int xx, yy;
50
 
#endif
 
62
_pl_t_tek_vector (R___(Plotter *_plotter) int xx, int yy)
51
63
{
52
64
  unsigned char xx_high, yy_high;
53
65
  unsigned char xx_low, yy_low;
102
114
   length. */
103
115
 
104
116
void
105
 
#ifdef _HAVE_PROTOS
106
 
_tek_vector_compressed (R___(Plotter *_plotter) int xx, int yy, int oldxx, int oldyy, bool force)
107
 
#else
108
 
_tek_vector_compressed (R___(_plotter) xx, yy, oldxx, oldyy, force)
109
 
     S___(Plotter *_plotter;) 
110
 
     int xx, yy, oldxx, oldyy;
111
 
     bool force;
112
 
#endif
 
117
_pl_t_tek_vector_compressed (R___(Plotter *_plotter) int xx, int yy, int oldxx, int oldyy, bool force)
113
118
{
114
119
  unsigned char xx_high, yy_high, oldxx_high, oldyy_high;
115
120
  unsigned char xx_low, yy_low, oldyy_low;