home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume14 / vplot / part03 < prev    next >
Encoding:
Internet Message Format  |  1988-03-31  |  55.0 KB

  1. Path: uunet!husc6!bbn!bbn.com!rsalz
  2. From: rsalz@uunet.uu.net (Rich Salz)
  3. Newsgroups: comp.sources.unix
  4. Subject: v14i008:  Device-independant graphics system, with drivers
  5. Message-ID: <553@fig.bbn.com>
  6. Date: 28 Mar 88 15:23:25 GMT
  7. Organization: BBN Laboratories Inc., Cambridge MA
  8. Lines: 2049
  9. Approved: rsalz@uunet.UU.NET
  10.  
  11. Submitted-by: Joe Dellinger <joe@hanauma.STANFORD.EDU>
  12. Posting-number: Volume 14, Issue 8
  13. Archive-name: vplot/part03
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then unpack
  17. # it by saving it into a file and typing "sh file".  To overwrite existing
  18. # files, type "sh file -c".  You can also feed this as standard input via
  19. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  20. # will see the following message at the end:
  21. #        "End of archive 3 (of 24)."
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. if test -f 'Envision_device/README' -a "${1}" != "-c" ; then 
  24.   echo shar: Will not clobber existing file \"'Envision_device/README'\"
  25. else
  26. echo shar: Extracting \"'Envision_device/README'\" \(619 characters\)
  27. sed "s/^X//" >'Envision_device/README' <<'END_OF_FILE'
  28. Comments on this device-dependent Vplot code distribution:
  29. X
  30. X    This distribution won't do you much good unless you have the Vplot
  31. Kernel Distribution first. If you don't have it, don't bother with this yet!
  32. X
  33. X    Now that I know you have the Vplot device-independent code ---
  34. X
  35. X    The directory given in this distribution contains the device-dependent
  36. vplot source code for some device (or group of related devices). Place the
  37. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  38. support for this device to your Vplot source. You'll then need to re-run
  39. X"MakeMake" again.
  40. X
  41. X    - Joe Dellinger, Feb 15 1988
  42. END_OF_FILE
  43. if test 619 -ne `wc -c <'Envision_device/README'`; then
  44.     echo shar: \"'Envision_device/README'\" unpacked with wrong size!
  45. fi
  46. # end of 'Envision_device/README'
  47. fi
  48. if test -f 'Envision_device/envilib/envidoc.h' -a "${1}" != "-c" ; then 
  49.   echo shar: Will not clobber existing file \"'Envision_device/envilib/envidoc.h'\"
  50. else
  51. echo shar: Extracting \"'Envision_device/envilib/envidoc.h'\" \(708 characters\)
  52. sed "s/^X//" >'Envision_device/envilib/envidoc.h' <<'END_OF_FILE'
  53. char *documentation[] = {
  54. X" ",
  55. X"NAME",
  56. X#ifdef SEP
  57. X"    Envipen - SEPlib vplot filter for Envision 220 and 215",
  58. X#else
  59. X"    envipen - vplot filter for Envision 220 and 215",
  60. X#endif
  61. X" ",
  62. X"SYNOPSIS",
  63. X#ifdef SEP
  64. X"    E[nvi]pen [options] in=vplot-inputfile OR headerfile on standard in",
  65. X#else 
  66. X"    e[nvi]pen [options] [inputfiles]",
  67. X#endif
  68. X" ",
  69. X"OPTIONS",
  70. X#ifdef SEP
  71. X"    Envipen-specific options:",
  72. X#else
  73. X"    envipen-specific options:",
  74. X#endif
  75. X"          bell=[y,n]      inform you the plot is done with a beep.",
  76. X"          wstype=[envi220,envi215] Pick envision 220 or 215.",
  77. X#include "../include/gendoc.h"
  78. X" ",
  79. X"SEE ALSO",
  80. X"    man pen"
  81. X};
  82. int    doclength = { sizeof documentation/sizeof documentation[0] };
  83. END_OF_FILE
  84. if test 708 -ne `wc -c <'Envision_device/envilib/envidoc.h'`; then
  85.     echo shar: \"'Envision_device/envilib/envidoc.h'\" unpacked with wrong size!
  86. fi
  87. # end of 'Envision_device/envilib/envidoc.h'
  88. fi
  89. if test -f 'Imagen_device/README' -a "${1}" != "-c" ; then 
  90.   echo shar: Will not clobber existing file \"'Imagen_device/README'\"
  91. else
  92. echo shar: Extracting \"'Imagen_device/README'\" \(619 characters\)
  93. sed "s/^X//" >'Imagen_device/README' <<'END_OF_FILE'
  94. Comments on this device-dependent Vplot code distribution:
  95. X
  96. X    This distribution won't do you much good unless you have the Vplot
  97. Kernel Distribution first. If you don't have it, don't bother with this yet!
  98. X
  99. X    Now that I know you have the Vplot device-independent code ---
  100. X
  101. X    The directory given in this distribution contains the device-dependent
  102. vplot source code for some device (or group of related devices). Place the
  103. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  104. support for this device to your Vplot source. You'll then need to re-run
  105. X"MakeMake" again.
  106. X
  107. X    - Joe Dellinger, Feb 15 1988
  108. END_OF_FILE
  109. if test 619 -ne `wc -c <'Imagen_device/README'`; then
  110.     echo shar: \"'Imagen_device/README'\" unpacked with wrong size!
  111. fi
  112. # end of 'Imagen_device/README'
  113. fi
  114. if test -f 'Masscomp_device/README' -a "${1}" != "-c" ; then 
  115.   echo shar: Will not clobber existing file \"'Masscomp_device/README'\"
  116. else
  117. echo shar: Extracting \"'Masscomp_device/README'\" \(619 characters\)
  118. sed "s/^X//" >'Masscomp_device/README' <<'END_OF_FILE'
  119. Comments on this device-dependent Vplot code distribution:
  120. X
  121. X    This distribution won't do you much good unless you have the Vplot
  122. Kernel Distribution first. If you don't have it, don't bother with this yet!
  123. X
  124. X    Now that I know you have the Vplot device-independent code ---
  125. X
  126. X    The directory given in this distribution contains the device-dependent
  127. vplot source code for some device (or group of related devices). Place the
  128. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  129. support for this device to your Vplot source. You'll then need to re-run
  130. X"MakeMake" again.
  131. X
  132. X    - Joe Dellinger, Feb 15 1988
  133. END_OF_FILE
  134. if test 619 -ne `wc -c <'Masscomp_device/README'`; then
  135.     echo shar: \"'Masscomp_device/README'\" unpacked with wrong size!
  136. fi
  137. # end of 'Masscomp_device/README'
  138. fi
  139. if test -f 'Masscomp_device/gpslib/gpsreset.c' -a "${1}" != "-c" ; then 
  140.   echo shar: Will not clobber existing file \"'Masscomp_device/gpslib/gpsreset.c'\"
  141. else
  142. echo shar: Extracting \"'Masscomp_device/gpslib/gpsreset.c'\" \(830 characters\)
  143. sed "s/^X//" >'Masscomp_device/gpslib/gpsreset.c' <<'END_OF_FILE'
  144. X/*
  145. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  146. X * University. Official permission to use this software is included in
  147. X * the documentation. It authorizes you to use this file for any
  148. X * non-commercial purpose, provided that this copyright notice is not
  149. X * removed and that any modifications made to this file are commented
  150. X * and dated in the style of my example below.
  151. X */
  152. X
  153. X/*
  154. X *
  155. X *  source file:   ./filters/gpslib/gpsreset.c
  156. X *
  157. X * Stewart A. Levin (SEP), July 3 1987
  158. X *    Cribbed rasreset.c for gps filter
  159. X */
  160. X
  161. X#include <stdio.h>
  162. X#include "gpspen.h"
  163. X#include "../include/extern.h"
  164. X#include "../include/params.h"
  165. X
  166. gpsreset ()
  167. X{
  168. X    gps_region (13);        /* center of gps coordinate universe */
  169. X    set_window ((float) dev_xmin, (float) dev_ymin,
  170. X        (float) dev_xmax, (float) dev_ymax);
  171. X    line_style (20);
  172. X}
  173. END_OF_FILE
  174. if test 830 -ne `wc -c <'Masscomp_device/gpslib/gpsreset.c'`; then
  175.     echo shar: \"'Masscomp_device/gpslib/gpsreset.c'\" unpacked with wrong size!
  176. fi
  177. # end of 'Masscomp_device/gpslib/gpsreset.c'
  178. fi
  179. if test -f 'Printronix_device/README' -a "${1}" != "-c" ; then 
  180.   echo shar: Will not clobber existing file \"'Printronix_device/README'\"
  181. else
  182. echo shar: Extracting \"'Printronix_device/README'\" \(619 characters\)
  183. sed "s/^X//" >'Printronix_device/README' <<'END_OF_FILE'
  184. Comments on this device-dependent Vplot code distribution:
  185. X
  186. X    This distribution won't do you much good unless you have the Vplot
  187. Kernel Distribution first. If you don't have it, don't bother with this yet!
  188. X
  189. X    Now that I know you have the Vplot device-independent code ---
  190. X
  191. X    The directory given in this distribution contains the device-dependent
  192. vplot source code for some device (or group of related devices). Place the
  193. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  194. support for this device to your Vplot source. You'll then need to re-run
  195. X"MakeMake" again.
  196. X
  197. X    - Joe Dellinger, Feb 15 1988
  198. END_OF_FILE
  199. if test 619 -ne `wc -c <'Printronix_device/README'`; then
  200.     echo shar: \"'Printronix_device/README'\" unpacked with wrong size!
  201. fi
  202. # end of 'Printronix_device/README'
  203. fi
  204. if test -f 'RasterTek_device/README' -a "${1}" != "-c" ; then 
  205.   echo shar: Will not clobber existing file \"'RasterTek_device/README'\"
  206. else
  207. echo shar: Extracting \"'RasterTek_device/README'\" \(619 characters\)
  208. sed "s/^X//" >'RasterTek_device/README' <<'END_OF_FILE'
  209. Comments on this device-dependent Vplot code distribution:
  210. X
  211. X    This distribution won't do you much good unless you have the Vplot
  212. Kernel Distribution first. If you don't have it, don't bother with this yet!
  213. X
  214. X    Now that I know you have the Vplot device-independent code ---
  215. X
  216. X    The directory given in this distribution contains the device-dependent
  217. vplot source code for some device (or group of related devices). Place the
  218. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  219. support for this device to your Vplot source. You'll then need to re-run
  220. X"MakeMake" again.
  221. X
  222. X    - Joe Dellinger, Feb 15 1988
  223. END_OF_FILE
  224. if test 619 -ne `wc -c <'RasterTek_device/README'`; then
  225.     echo shar: \"'RasterTek_device/README'\" unpacked with wrong size!
  226. fi
  227. # end of 'RasterTek_device/README'
  228. fi
  229. if test -f 'RasterTek_device/rteklib/rtekpen.h' -a "${1}" != "-c" ; then 
  230.   echo shar: Will not clobber existing file \"'RasterTek_device/rteklib/rtekpen.h'\"
  231. else
  232. echo shar: Extracting \"'RasterTek_device/rteklib/rtekpen.h'\" \(836 characters\)
  233. sed "s/^X//" >'RasterTek_device/rteklib/rtekpen.h' <<'END_OF_FILE'
  234. X#include <stdio.h>
  235. X#include "../include/enum.h"
  236. X#include "../include/err.h"
  237. X#include "../include/extern.h"
  238. X
  239. X#define RTEKDEV        "/dev/dm0"
  240. X
  241. X/* global variables */
  242. extern FILE *rtekfd;
  243. extern int dev_xmin, dev_xmax;
  244. extern int dev_ymin, dev_ymax;
  245. extern int color;
  246. X
  247. X/* Raster Tech - stdio macro */
  248. X#define CHKLEN(cmdlen)    (((rtekfd->_cnt) < (cmdlen)) ? rtek_flsbuf(cmdlen) : 0 )
  249. X
  250. X
  251. X/* Raster Tech command codes */
  252. X#define CLOAD        160
  253. X#define CMOVE        161
  254. X#define    DRWABS        129
  255. X#define    FLOOD        7
  256. X#define    GRAPHICS    4
  257. X#define    LUT8        28
  258. X#define MODDIS        44
  259. X#define    MOVABS        1
  260. X#define    NOP        0
  261. X#define    PIXEL8        41
  262. X#define PIXFUN        59
  263. X#define    PIXMOV        187
  264. X#define    POINT        136
  265. X#define    POLYGN        18
  266. X#define    PRMFIL        31
  267. X#define    QUIT        255
  268. X#define    RDMODE        211
  269. X#define    READCR        152
  270. X#define    SCRORG        54
  271. X#define    VAL8        134
  272. X#define    WINDOW        58
  273. X#define    WMSK16        68
  274. X#define    ZOOM        52
  275. END_OF_FILE
  276. if test 836 -ne `wc -c <'RasterTek_device/rteklib/rtekpen.h'`; then
  277.     echo shar: \"'RasterTek_device/rteklib/rtekpen.h'\" unpacked with wrong size!
  278. fi
  279. # end of 'RasterTek_device/rteklib/rtekpen.h'
  280. fi
  281. if test -f 'RasterTek_device/rteklib/rtekplot.c' -a "${1}" != "-c" ; then 
  282.   echo shar: Will not clobber existing file \"'RasterTek_device/rteklib/rtekplot.c'\"
  283. else
  284. echo shar: Extracting \"'RasterTek_device/rteklib/rtekplot.c'\" \(838 characters\)
  285. sed "s/^X//" >'RasterTek_device/rteklib/rtekplot.c' <<'END_OF_FILE'
  286. X/*
  287. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  288. X * University. Official permission to use this software is included in
  289. X * the documentation. It authorizes you to use this file for any
  290. X * non-commercial purpose, provided that this copyright notice is not
  291. X * removed and that any modifications made to this file are commented
  292. X * and dated in the style of my example below.
  293. X */
  294. X
  295. X/*
  296. X *
  297. X *  source file:   ./filters/rteklib/rtekplot.c
  298. X *
  299. X * Joe Dellinger (SEP), June 11 1987
  300. X *    Inserted this sample edit history entry.
  301. X *    Please log any further modifications made to this file:
  302. X */
  303. X
  304. X#include "rtekpen.h"
  305. X
  306. int             lost = YES;
  307. X
  308. rtekplot (x, y, draw)
  309. X    int             draw;
  310. X{
  311. X    CHKLEN (5);
  312. X    if (draw)
  313. X    byte (DRWABS);        /* cmdlen = 5 */
  314. X    else
  315. X    byte (MOVABS);
  316. X    word (x);
  317. X    word (y);
  318. X    lost = NO;
  319. X}
  320. END_OF_FILE
  321. if test 838 -ne `wc -c <'RasterTek_device/rteklib/rtekplot.c'`; then
  322.     echo shar: \"'RasterTek_device/rteklib/rtekplot.c'\" unpacked with wrong size!
  323. fi
  324. # end of 'RasterTek_device/rteklib/rtekplot.c'
  325. fi
  326. if test -f 'RasterTek_device/rteklib/rtekpoint.c' -a "${1}" != "-c" ; then 
  327.   echo shar: Will not clobber existing file \"'RasterTek_device/rteklib/rtekpoint.c'\"
  328. else
  329. echo shar: Extracting \"'RasterTek_device/rteklib/rtekpoint.c'\" \(750 characters\)
  330. sed "s/^X//" >'RasterTek_device/rteklib/rtekpoint.c' <<'END_OF_FILE'
  331. X/*
  332. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  333. X * University. Official permission to use this software is included in
  334. X * the documentation. It authorizes you to use this file for any
  335. X * non-commercial purpose, provided that this copyright notice is not
  336. X * removed and that any modifications made to this file are commented
  337. X * and dated in the style of my example below.
  338. X */
  339. X
  340. X/*
  341. X *
  342. X *  source file:   ./filters/rteklib/rtekpoint.c
  343. X *
  344. X * Joe Dellinger (SEP), June 11 1987
  345. X *    Inserted this sample edit history entry.
  346. X *    Please log any further modifications made to this file:
  347. X */
  348. X
  349. X#include "rtekpen.h"
  350. X
  351. rtekpoint (x, y)
  352. X    int             x, y;
  353. X{
  354. X
  355. X    rtekplot (x, y, 0);
  356. X    CHKLEN (1);
  357. X    byte (POINT);        /* cmdlen = 1 */
  358. X}
  359. END_OF_FILE
  360. if test 750 -ne `wc -c <'RasterTek_device/rteklib/rtekpoint.c'`; then
  361.     echo shar: \"'RasterTek_device/rteklib/rtekpoint.c'\" unpacked with wrong size!
  362. fi
  363. # end of 'RasterTek_device/rteklib/rtekpoint.c'
  364. fi
  365. if test -f 'Tek_device/cteklib/ctekdoc.h' -a "${1}" != "-c" ; then 
  366.   echo shar: Will not clobber existing file \"'Tek_device/cteklib/ctekdoc.h'\"
  367. else
  368. echo shar: Extracting \"'Tek_device/cteklib/ctekdoc.h'\" \(652 characters\)
  369. sed "s/^X//" >'Tek_device/cteklib/ctekdoc.h' <<'END_OF_FILE'
  370. char *documentation[] = {
  371. X" ",
  372. X"NAME",
  373. X#ifdef SEP
  374. X"    Ctekpen - SEPlib vplot filter for Tektronix 4105 terminals",
  375. X#else
  376. X"    ctekpen - vplot filter for Tektronix 4105 terminals",
  377. X#endif
  378. X" ",
  379. X"SYNOPSIS",
  380. X#ifdef SEP
  381. X"    Ctek[pen] [options] in=vplot-inputfile OR headerfile on standard in",
  382. X#else 
  383. X"    ctek[pen] [options] [inputfiles]",
  384. X#endif
  385. X" ",
  386. X"OPTIONS",
  387. X#ifdef SEP
  388. X"    Ctekpen-specific options:",
  389. X#else
  390. X"    ctekpen-specific options:",
  391. X#endif
  392. X"          bell=[y,n]      inform you the plot is done with a beep.",
  393. X#include "../include/gendoc.h"
  394. X" ",
  395. X"SEE ALSO",
  396. X"    man pen"
  397. X};
  398. int    doclength = { sizeof documentation/sizeof documentation[0] };
  399. END_OF_FILE
  400. if test 652 -ne `wc -c <'Tek_device/cteklib/ctekdoc.h'`; then
  401.     echo shar: \"'Tek_device/cteklib/ctekdoc.h'\" unpacked with wrong size!
  402. fi
  403. # end of 'Tek_device/cteklib/ctekdoc.h'
  404. fi
  405. if test -f 'Tek_device/cteklib/known_bugs' -a "${1}" != "-c" ; then 
  406.   echo shar: Will not clobber existing file \"'Tek_device/cteklib/known_bugs'\"
  407. else
  408. echo shar: Extracting \"'Tek_device/cteklib/known_bugs'\" \(692 characters\)
  409. sed "s/^X//" >'Tek_device/cteklib/known_bugs' <<'END_OF_FILE'
  410. In my opinion, all pen programs should reset the device's colors to standard
  411. before starting.
  412. I was unable to convince the people who wrote "ctekpen" of this point of
  413. view. As a result, if you run any of the demo files that fiddle with the
  414. color table all of your plots after that will be messed up.
  415. X
  416. The reason to have it the way it is is so that you can change the shades
  417. of the primary colors beforehand to "customize" your plot.
  418. X
  419. The routine for mapping RGB notation to what the Tek wants doesn't work
  420. very well.
  421. X
  422. This code assumes that you have the "raster option". If you don't,
  423. ctekraster won't work.
  424. X
  425. Authors: Jeff Thorson, Glenn Kroeger, Michele Debiche
  426. X
  427. X- comments by Joe Dellinger
  428. END_OF_FILE
  429. if test 692 -ne `wc -c <'Tek_device/cteklib/known_bugs'`; then
  430.     echo shar: \"'Tek_device/cteklib/known_bugs'\" unpacked with wrong size!
  431. fi
  432. # end of 'Tek_device/cteklib/known_bugs'
  433. fi
  434. if test -f 'Tek_device/teklib/tekpoint.c' -a "${1}" != "-c" ; then 
  435.   echo shar: Will not clobber existing file \"'Tek_device/teklib/tekpoint.c'\"
  436. else
  437. echo shar: Extracting \"'Tek_device/teklib/tekpoint.c'\" \(733 characters\)
  438. sed "s/^X//" >'Tek_device/teklib/tekpoint.c' <<'END_OF_FILE'
  439. X/*
  440. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  441. X * University. Official permission to use this software is included in
  442. X * the documentation. It authorizes you to use this file for any
  443. X * non-commercial purpose, provided that this copyright notice is not
  444. X * removed and that any modifications made to this file are commented
  445. X * and dated in the style of my example below.
  446. X */
  447. X
  448. X/*
  449. X *
  450. X *  source file:   ./filters/teklib/tekpoint.c
  451. X *
  452. X * Joe Dellinger (SEP), June 11 1987
  453. X *    Inserted this sample edit history entry.
  454. X *    Please log any further modifications made to this file:
  455. X */
  456. X
  457. X/*
  458. X * Turn on point (x,y).
  459. X */
  460. X#include    <stdio.h>
  461. X#include    "tek.h"
  462. X
  463. tekpoint (x, y)
  464. X{
  465. X    setmode (POINT);
  466. X    tekxypack (x, y);
  467. X}
  468. END_OF_FILE
  469. if test 733 -ne `wc -c <'Tek_device/teklib/tekpoint.c'`; then
  470.     echo shar: \"'Tek_device/teklib/tekpoint.c'\" unpacked with wrong size!
  471. fi
  472. # end of 'Tek_device/teklib/tekpoint.c'
  473. fi
  474. if test -f 'Virtual_device/README' -a "${1}" != "-c" ; then 
  475.   echo shar: Will not clobber existing file \"'Virtual_device/README'\"
  476. else
  477. echo shar: Extracting \"'Virtual_device/README'\" \(619 characters\)
  478. sed "s/^X//" >'Virtual_device/README' <<'END_OF_FILE'
  479. Comments on this device-dependent Vplot code distribution:
  480. X
  481. X    This distribution won't do you much good unless you have the Vplot
  482. Kernel Distribution first. If you don't have it, don't bother with this yet!
  483. X
  484. X    Now that I know you have the Vplot device-independent code ---
  485. X
  486. X    The directory given in this distribution contains the device-dependent
  487. vplot source code for some device (or group of related devices). Place the
  488. directory "*lib" into /...site-dependent path.../vplot/filters in order to add
  489. support for this device to your Vplot source. You'll then need to re-run
  490. X"MakeMake" again.
  491. X
  492. X    - Joe Dellinger, Feb 15 1988
  493. END_OF_FILE
  494. if test 619 -ne `wc -c <'Virtual_device/README'`; then
  495.     echo shar: \"'Virtual_device/README'\" unpacked with wrong size!
  496. fi
  497. # end of 'Virtual_device/README'
  498. fi
  499. if test -f 'Virtual_device/raslib/README' -a "${1}" != "-c" ; then 
  500.   echo shar: Will not clobber existing file \"'Virtual_device/raslib/README'\"
  501. else
  502. echo shar: Extracting \"'Virtual_device/raslib/README'\" \(797 characters\)
  503. sed "s/^X//" >'Virtual_device/raslib/README' <<'END_OF_FILE'
  504. Generic Byte-Deep Raster Device
  505. X
  506. This Vplot filter outputs a byte-deep binary raster image, with whatever
  507. dimensions you request. There is one 2-D image produced for each frame
  508. in the Vplot input. (Break commands will also cause the image to be written.)
  509. The "colfile" gives the (red,green,blue) color value associated with each
  510. byte value in the raster image. Only byte values that are multiples of
  511. X"colormult" will be used (the Movie program here at Stanford only wants
  512. even-valued bytes, since it uses odd-valued ones for its own purposes).
  513. X
  514. Raspen will create a file to put the raster image in FOR YOU if you
  515. don't redirect it yourself, since you probably don't want to experience
  516. what happens when you dump a huge binary raster file to your terminal.
  517. X
  518. Author - Joe Dellinger and Jeff Thorson
  519. END_OF_FILE
  520. if test 797 -ne `wc -c <'Virtual_device/raslib/README'`; then
  521.     echo shar: \"'Virtual_device/raslib/README'\" unpacked with wrong size!
  522. fi
  523. # end of 'Virtual_device/raslib/README'
  524. fi
  525. if test -f 'Virtual_device/raslib/rasvector2.c' -a "${1}" != "-c" ; then 
  526.   echo shar: Will not clobber existing file \"'Virtual_device/raslib/rasvector2.c'\"
  527. else
  528. echo shar: Extracting \"'Virtual_device/raslib/rasvector2.c'\" \(639 characters\)
  529. sed "s/^X//" >'Virtual_device/raslib/rasvector2.c' <<'END_OF_FILE'
  530. X/*
  531. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  532. X * University. Official permission to use this software is included in
  533. X * the documentation. It authorizes you to use this file for any
  534. X * non-commercial purpose, provided that this copyright notice is not
  535. X * removed and that any modifications made to this file are commented
  536. X * and dated in the style of my example below.
  537. X */
  538. X
  539. X/*
  540. X *
  541. X *  source file:   ./filters/raslib/rasvector2.c
  542. X *
  543. X * Joe Dellinger (SEP), June 11 1987
  544. X *    Inserted this sample edit history entry.
  545. X *    Please log any further modifications made to this file:
  546. X */
  547. X
  548. X#define  OR
  549. X#include "rasvector.c"
  550. END_OF_FILE
  551. if test 639 -ne `wc -c <'Virtual_device/raslib/rasvector2.c'`; then
  552.     echo shar: \"'Virtual_device/raslib/rasvector2.c'\" unpacked with wrong size!
  553. fi
  554. # end of 'Virtual_device/raslib/rasvector2.c'
  555. fi
  556. if test -f 'Virtual_device/vplib/known_bugs' -a "${1}" != "-c" ; then 
  557.   echo shar: Will not clobber existing file \"'Virtual_device/vplib/known_bugs'\"
  558. else
  559. echo shar: Extracting \"'Virtual_device/vplib/known_bugs'\" \(595 characters\)
  560. sed "s/^X//" >'Virtual_device/vplib/known_bugs' <<'END_OF_FILE'
  561. grep for "XXXXXX" in these files for "holes" in -lvplot that need to
  562. be fixed.
  563. X
  564. Vppen purposely ignores initial erases, since they are usually pretty
  565. much meaningless anyway. Whether the output has an initial erase or
  566. not is entirely dependent on whether initial erases are "forced" by
  567. the command line argument "erase".
  568. X
  569. Patterns setting commands are not compressed out as are all the other
  570. attributes.
  571. X
  572. Polygon fill patterns are needlessly changed in dimension to 600 pixels
  573. per inch.
  574. X
  575. Vppen will happily dump raw vplot to your screen if you don't redirect
  576. the output.
  577. X
  578. vptextT.c is not used.
  579. END_OF_FILE
  580. if test 595 -ne `wc -c <'Virtual_device/vplib/known_bugs'`; then
  581.     echo shar: \"'Virtual_device/vplib/known_bugs'\" unpacked with wrong size!
  582. fi
  583. # end of 'Virtual_device/vplib/known_bugs'
  584. fi
  585. if test -f 'Virtual_device/vplib/vpclose.c' -a "${1}" != "-c" ; then 
  586.   echo shar: Will not clobber existing file \"'Virtual_device/vplib/vpclose.c'\"
  587. else
  588. echo shar: Extracting \"'Virtual_device/vplib/vpclose.c'\" \(776 characters\)
  589. sed "s/^X//" >'Virtual_device/vplib/vpclose.c' <<'END_OF_FILE'
  590. X/*
  591. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  592. X * University. Official permission to use this software is included in
  593. X * the documentation. It authorizes you to use this file for any
  594. X * non-commercial purpose, provided that this copyright notice is not
  595. X * removed and that any modifications made to this file are commented
  596. X * and dated in the style of my example below.
  597. X */
  598. X
  599. X/*
  600. X *
  601. X *  source file:   ./filters/vplib/vpclose.c
  602. X *
  603. X * Joe Dellinger (SEP), Dec 19 1987
  604. X *    Inserted this sample edit history entry.
  605. X *    Please log any further modifications made to this file:
  606. X */
  607. X
  608. X#include "../include/closestat.h"
  609. X#include "vp.h"
  610. X
  611. vpclose (status)
  612. X    int             status;
  613. X{
  614. X    switch (status)
  615. X    {
  616. X    case CLOSE_DONE:
  617. X    vp_endplot ();
  618. X    break;
  619. X    }
  620. X}
  621. END_OF_FILE
  622. if test 776 -ne `wc -c <'Virtual_device/vplib/vpclose.c'`; then
  623.     echo shar: \"'Virtual_device/vplib/vpclose.c'\" unpacked with wrong size!
  624. fi
  625. # end of 'Virtual_device/vplib/vpclose.c'
  626. fi
  627. if test -f 'Vplot_Kernel/Hershey/math.hmp' -a "${1}" != "-c" ; then 
  628.   echo shar: Will not clobber existing file \"'Vplot_Kernel/Hershey/math.hmp'\"
  629. else
  630. echo shar: Extracting \"'Vplot_Kernel/Hershey/math.hmp'\" \(665 characters\)
  631. sed "s/^X//" >'Vplot_Kernel/Hershey/math.hmp' <<'END_OF_FILE'
  632. X727
  633. X728
  634. X729
  635. X730
  636. X731
  637. X732
  638. X733
  639. X734
  640. X735
  641. X737
  642. X738
  643. X739
  644. X740
  645. X750
  646. X751
  647. X752
  648. X763
  649. X764
  650. X765
  651. X766
  652. X1227
  653. X1228
  654. X1229
  655. X1230
  656. X1231
  657. X1232
  658. X1233
  659. X1234
  660. X1235
  661. X1236
  662. X1237
  663. X1238
  664. X1239
  665. X1240
  666. X1241
  667. X1242
  668. X1243
  669. X1244
  670. X1245
  671. X1246
  672. X1247
  673. X1248
  674. X1249
  675. X1250
  676. X1251
  677. X1252
  678. X1253
  679. X1254
  680. X1256
  681. X1257
  682. X1258
  683. X1259
  684. X1260
  685. X1261
  686. X1262
  687. X1263
  688. X1264
  689. X1265
  690. X1266
  691. X1267
  692. X1268
  693. X1269
  694. X1270
  695. X1279
  696. X1294
  697. X1295
  698. X1401
  699. X1402
  700. X1403
  701. X1404
  702. X1405
  703. X1406
  704. X1407
  705. X1408
  706. X1409
  707. X1410
  708. X1411
  709. X1412
  710. X2227
  711. X2228
  712. X2229
  713. X2230
  714. X2231
  715. X2232
  716. X2233
  717. X2234
  718. X2235
  719. X2236
  720. X2237
  721. X2238
  722. X2239
  723. X2240
  724. X2241
  725. X2242
  726. X2243
  727. X2244
  728. X2245
  729. X2246
  730. X2247
  731. X2248
  732. X2249
  733. X2250
  734. X2251
  735. X2252
  736. X2253
  737. X2254
  738. X2255
  739. X2256
  740. X2257
  741. X2258
  742. X2259
  743. X2260
  744. X2261
  745. X2262
  746. X2263
  747. X2264
  748. X2265
  749. X2266
  750. X2267
  751. X2268
  752. X2269
  753. X2270
  754. X2279
  755. X2294
  756. X2295
  757. X2401
  758. X2402
  759. X2403
  760. X2404
  761. X2405
  762. X2406
  763. X2407
  764. X2408
  765. X2409
  766. X2410
  767. X2411
  768. X2412
  769. END_OF_FILE
  770. if test 665 -ne `wc -c <'Vplot_Kernel/Hershey/math.hmp'`; then
  771.     echo shar: \"'Vplot_Kernel/Hershey/math.hmp'\" unpacked with wrong size!
  772. fi
  773. # end of 'Vplot_Kernel/Hershey/math.hmp'
  774. fi
  775. if test -f 'Vplot_Kernel/Hershey/misc.hmp' -a "${1}" != "-c" ; then 
  776.   echo shar: Will not clobber existing file \"'Vplot_Kernel/Hershey/misc.hmp'\"
  777. else
  778. echo shar: Extracting \"'Vplot_Kernel/Hershey/misc.hmp'\" \(704 characters\)
  779. sed "s/^X//" >'Vplot_Kernel/Hershey/misc.hmp' <<'END_OF_FILE'
  780. X796
  781. X797
  782. X798
  783. X799
  784. X800
  785. X801
  786. X802
  787. X803
  788. X804
  789. X805
  790. X806
  791. X807
  792. X808
  793. X809
  794. X810
  795. X811
  796. X812
  797. X813
  798. X814
  799. X815
  800. X816
  801. X817
  802. X818
  803. X819
  804. X820
  805. X821
  806. X822
  807. X823
  808. X824
  809. X825
  810. X826
  811. X827
  812. X828
  813. X829
  814. X830
  815. X831
  816. X832
  817. X833
  818. X834
  819. X840
  820. X841
  821. X842
  822. X843
  823. X844
  824. X845
  825. X846
  826. X847
  827. X850
  828. X851
  829. X852
  830. X853
  831. X854
  832. X855
  833. X856
  834. X857
  835. X860
  836. X861
  837. X862
  838. X863
  839. X864
  840. X865
  841. X866
  842. X867
  843. X868
  844. X869
  845. X870
  846. X871
  847. X872
  848. X873
  849. X874
  850. X899
  851. X900
  852. X901
  853. X902
  854. X903
  855. X904
  856. X905
  857. X906
  858. X907
  859. X908
  860. X909
  861. X1276
  862. X1277
  863. X1278
  864. X1281
  865. X1282
  866. X1283
  867. X1284
  868. X1285
  869. X1286
  870. X1287
  871. X1288
  872. X1289
  873. X1290
  874. X1291
  875. X1292
  876. X1293
  877. X2276
  878. X2277
  879. X2278
  880. X2281
  881. X2282
  882. X2283
  883. X2284
  884. X2285
  885. X2286
  886. X2287
  887. X2288
  888. X2289
  889. X2290
  890. X2291
  891. X2292
  892. X2293
  893. X2301
  894. X2302
  895. X2303
  896. X2304
  897. X2305
  898. X2306
  899. X2307
  900. X2308
  901. X2309
  902. X2310
  903. X2311
  904. X2312
  905. X2317
  906. X2318
  907. X2319
  908. X2320
  909. X2321
  910. X2322
  911. X2323
  912. X2324
  913. X2325
  914. X2326
  915. X2327
  916. X2328
  917. X2329
  918. X2330
  919. X2331
  920. X2332
  921. X2367
  922. X2368
  923. X2369
  924. X2370
  925. X2371
  926. X2372
  927. X2373
  928. X2374
  929. X2375
  930. X2376
  931. X2377
  932. X2378
  933. X2379
  934. X2380
  935. X2381
  936. X2382
  937. END_OF_FILE
  938. if test 704 -ne `wc -c <'Vplot_Kernel/Hershey/misc.hmp'`; then
  939.     echo shar: \"'Vplot_Kernel/Hershey/misc.hmp'\" unpacked with wrong size!
  940. fi
  941. # end of 'Vplot_Kernel/Hershey/misc.hmp'
  942. fi
  943. if test -f 'Vplot_Kernel/filters/Tests/TEST_Cyrillic' -a "${1}" != "-c" ; then 
  944.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/Tests/TEST_Cyrillic'\"
  945. else
  946. echo shar: Extracting \"'Vplot_Kernel/filters/Tests/TEST_Cyrillic'\" \(634 characters\)
  947. sed "s/^X//" >'Vplot_Kernel/filters/Tests/TEST_Cyrillic' <<'END_OF_FILE'
  948. e
  949. S s
  950. z
  951. Test of alternate fonts and ligatures.
  952. z
  953. X
  954. z
  955. You should get "Glory to Labor!" in white on a red background.
  956. z
  957. Underneath, in yellow, the Russian alphabet, in order, in both cases.
  958. z
  959. Then some well known Russian words:
  960. z
  961. X"Tchaikovsky Kolkhoz Chebyshev"
  962. z
  963. and then:
  964. z
  965. X"Khrushchev lives!"
  966. o 0 -1500
  967. F 11 2 0
  968. C 0 255 0 0
  969. c 7
  970. f 12
  971. m 100 2800
  972. T 24 0
  973. Slava Trudu!
  974. c 6
  975. f 4
  976. m 200 1800
  977. T 10 0
  978. a b v g d e zh z i /i k l m n o p r\ns t u f kh ts ch sh shch /` y /' /e yu ya
  979. m 100 800
  980. T 10 0
  981. A B V G D E ZH Z I /I K L M N O P R\nS T U F KH TS CH SH SHCH /T Y /M /E YU YA
  982. m 100 0
  983. T 10 0
  984. CHa/ikovski/i Kolkhoz CHebyshev\nKHrushchev zhivet!\n
  985. END_OF_FILE
  986. if test 634 -ne `wc -c <'Vplot_Kernel/filters/Tests/TEST_Cyrillic'`; then
  987.     echo shar: \"'Vplot_Kernel/filters/Tests/TEST_Cyrillic'\" unpacked with wrong size!
  988. fi
  989. # end of 'Vplot_Kernel/filters/Tests/TEST_Cyrillic'
  990. fi
  991. if test -f 'Vplot_Kernel/filters/Tests/TEST_coltab' -a "${1}" != "-c" ; then 
  992.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/Tests/TEST_coltab'\"
  993. else
  994. echo shar: Extracting \"'Vplot_Kernel/filters/Tests/TEST_coltab'\" \(583 characters\)
  995. sed "s/^X//" >'Vplot_Kernel/filters/Tests/TEST_coltab' <<'END_OF_FILE'
  996. e
  997. S s
  998. F 14 1 0
  999. z
  1000. Test of color tables
  1001. z
  1002. X
  1003. z
  1004. The background should be dark grey.
  1005. z
  1006. Text should be the color it claims to be.
  1007. C 0 120 120 120
  1008. f 5
  1009. J 0 -2
  1010. C 1 220 220 255
  1011. c 1
  1012. m 1000 1000
  1013. T 9 0
  1014. X220 220 255 (grayish purple)
  1015. C 2 200 200 0
  1016. c 2
  1017. m 2000 2000
  1018. T 9 0
  1019. X200 200 0 (dirty yellow)
  1020. C 3 250 150 200
  1021. c 3
  1022. m 3000 3000
  1023. T 9 0
  1024. X250 150 200 (hot pink)
  1025. C 4 200 200 200
  1026. c 4
  1027. m 5000 4000
  1028. T 9 0
  1029. X200 200 200 (Grey)
  1030. C 5 100 150 80
  1031. c 5
  1032. m 100 4000
  1033. T 9 0
  1034. X100 150 80 (dark green)
  1035. C 6 100 180 250
  1036. c 6
  1037. m 4000 1500
  1038. T 9 0
  1039. X100 180 250 (sky blue)
  1040. C 7 255 190 240
  1041. c 7
  1042. m 1000 2500
  1043. T 9 0
  1044. X255 190 240 (purplish pink)
  1045. END_OF_FILE
  1046. if test 583 -ne `wc -c <'Vplot_Kernel/filters/Tests/TEST_coltab'`; then
  1047.     echo shar: \"'Vplot_Kernel/filters/Tests/TEST_coltab'\" unpacked with wrong size!
  1048. fi
  1049. # end of 'Vplot_Kernel/filters/Tests/TEST_coltab'
  1050. fi
  1051. if test -f 'Vplot_Kernel/filters/Tests/TEST_erase' -a "${1}" != "-c" ; then 
  1052.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/Tests/TEST_erase'\"
  1053. else
  1054. echo shar: Extracting \"'Vplot_Kernel/filters/Tests/TEST_erase'\" \(681 characters\)
  1055. sed "s/^X//" >'Vplot_Kernel/filters/Tests/TEST_erase' <<'END_OF_FILE'
  1056. S s
  1057. z
  1058. Test of erasing and pausing
  1059. z
  1060. X
  1061. z
  1062. Hit return once per frame to make a "movie" of a line zapping
  1063. z
  1064. an asterisk. In the last frame, the asterisk turns blue.
  1065. z
  1066. X
  1067. f 7
  1068. m 0 0
  1069. d 1000 1000
  1070. M 1 3 10
  1071. X5000 5000
  1072. c 2
  1073. e
  1074. f 6
  1075. m 1200 1200
  1076. d 2000 2000
  1077. M 1 3 10
  1078. X5000 5000
  1079. c 3
  1080. e
  1081. f 5
  1082. m 2200 2200
  1083. d 3000 3000
  1084. M 1 3 10
  1085. X5000 5000
  1086. c 1
  1087. e
  1088. f 4
  1089. m 3200 3200
  1090. d 4000 4000
  1091. M 1 3 10
  1092. X5000 5000
  1093. c 6
  1094. e
  1095. f 3
  1096. m 4200 4200
  1097. d 5000 5000
  1098. M 1 3 10
  1099. X5000 5000
  1100. c 4
  1101. e
  1102. f 6
  1103. M 1 3 10
  1104. X5000 5000
  1105. c 2
  1106. e
  1107. f 5
  1108. M 1 3 13
  1109. X5000 5000
  1110. c 6
  1111. e
  1112. f 3
  1113. M 1 3 16
  1114. X5000 5000
  1115. c 3
  1116. e
  1117. f 2
  1118. M 1 3 20
  1119. X5000 5000
  1120. c 5
  1121. e
  1122. f 1
  1123. M 1 3 27
  1124. X5000 5000
  1125. c 1
  1126. e
  1127. f 0
  1128. M 1 3 38
  1129. X5000 5000
  1130. c 7
  1131. e
  1132. f 0
  1133. M 1 3 40
  1134. X5000 5000
  1135. c 4
  1136. e
  1137. f 0
  1138. M 1 3 50
  1139. X5000 5000
  1140. c 2
  1141. e
  1142. c 1
  1143. f 0
  1144. M 1 3 70
  1145. X5000 5000
  1146. END_OF_FILE
  1147. if test 681 -ne `wc -c <'Vplot_Kernel/filters/Tests/TEST_erase'`; then
  1148.     echo shar: \"'Vplot_Kernel/filters/Tests/TEST_erase'\" unpacked with wrong size!
  1149. fi
  1150. # end of 'Vplot_Kernel/filters/Tests/TEST_erase'
  1151. fi
  1152. if test -f 'Vplot_Kernel/filters/Tests/TEST_raster' -a "${1}" != "-c" ; then 
  1153.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/Tests/TEST_raster'\"
  1154. else
  1155. echo shar: Extracting \"'Vplot_Kernel/filters/Tests/TEST_raster'\" \(790 characters\)
  1156. sed "s/^X//" >'Vplot_Kernel/filters/Tests/TEST_raster' <<'END_OF_FILE'
  1157. e
  1158. S s
  1159. z
  1160. Test bit and byte raster for a simple pattern
  1161. z
  1162. X
  1163. v 1
  1164. m 0 1500
  1165. d 0 0
  1166. d 1500 0
  1167. r 1 7
  1168. X0 0
  1169. X1000 1000
  1170. X100 100
  1171. X     75  ------ lines 0 to 74
  1172. X30 3  -- start byte 0 in y_line 0
  1173. X0
  1174. X1
  1175. X0
  1176. X10 1  -- start byte 90 in y_line 0
  1177. X1
  1178. X     25  ------ lines 75 to 99
  1179. X50 2  -- start byte 0 in y_line 75
  1180. X0
  1181. X1
  1182. f 4
  1183. c 4
  1184. m 0 0
  1185. d 0 1000
  1186. d 1000 1000
  1187. d 1000 0
  1188. d 0 0
  1189. o -1500 -1500
  1190. m 0 1500
  1191. d 0 0
  1192. d 1500 0
  1193. R 1 0
  1194. X0 0
  1195. X1000 1000
  1196. X100 100
  1197. X     75  ------ lines 0 to 74
  1198. X30 3  -- start byte 0 in y_line 0
  1199. X0
  1200. X7
  1201. X0
  1202. X10 1  -- start byte 90 in y_line 0
  1203. X5
  1204. X     25  ------ lines 75 to 99
  1205. X50 2  -- start byte 0 in y_line 75
  1206. X0
  1207. X3
  1208. f 4
  1209. c 4
  1210. m 0 0
  1211. d 0 1000
  1212. d 1000 1000
  1213. d 1000 0
  1214. d 0 0
  1215. z
  1216. These two should be the same, except that one is color and the other isn't.
  1217. z
  1218. The "solid" part of the pattern should be along the bottom and to the right.
  1219. END_OF_FILE
  1220. if test 790 -ne `wc -c <'Vplot_Kernel/filters/Tests/TEST_raster'`; then
  1221.     echo shar: \"'Vplot_Kernel/filters/Tests/TEST_raster'\" unpacked with wrong size!
  1222. fi
  1223. # end of 'Vplot_Kernel/filters/Tests/TEST_raster'
  1224. fi
  1225. if test -f 'Vplot_Kernel/filters/Tests/texttest.f' -a "${1}" != "-c" ; then 
  1226.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/Tests/texttest.f'\"
  1227. else
  1228. echo shar: Extracting \"'Vplot_Kernel/filters/Tests/texttest.f'\" \(607 characters\)
  1229. sed "s/^X//" >'Vplot_Kernel/filters/Tests/texttest.f' <<'END_OF_FILE'
  1230. X    real xp, yp, xpath, ypath, xup, yup
  1231. X    integer i
  1232. X    character*10 filename
  1233. X    data NP/18/
  1234. c
  1235. c  set vplot output file
  1236. c
  1237. X    filename = 'out.vp    '
  1238. X    call vpfile(filename)
  1239. c
  1240. c  choose standard style for vplot
  1241. c
  1242. X    call vpstyle(0)
  1243. X    call vpscale(.7,.7)
  1244. X    call vpfat(2)
  1245. c
  1246. X    call vpmessage('This is a message!')
  1247. c
  1248. X    do i=1,NP-1
  1249. X        xp = 1.8 + .9 * (i-1)
  1250. X        yp = .4 + .5 * (i-1)
  1251. X        xpath = .2 + (7. - i) / 9.
  1252. X        ypath = .2
  1253. X        xup = -.15
  1254. X        yup = .35
  1255. X        call vpcolor(mod(i,6)+2)
  1256. X        call vptfont((i-1),2,3)
  1257. X        call vpugtext
  1258. X     1         (xp,yp,xpath,ypath,xup,yup,'> SEP Geophysics <')
  1259. X    enddo
  1260. c
  1261. c  end of session
  1262. c
  1263. X    call vpendplot()
  1264. X    end
  1265. END_OF_FILE
  1266. if test 607 -ne `wc -c <'Vplot_Kernel/filters/Tests/texttest.f'`; then
  1267.     echo shar: \"'Vplot_Kernel/filters/Tests/texttest.f'\" unpacked with wrong size!
  1268. fi
  1269. # end of 'Vplot_Kernel/filters/Tests/texttest.f'
  1270. fi
  1271. if test -f 'Vplot_Kernel/filters/genlib/genpoint.c' -a "${1}" != "-c" ; then 
  1272.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/genlib/genpoint.c'\"
  1273. else
  1274. echo shar: Extracting \"'Vplot_Kernel/filters/genlib/genpoint.c'\" \(742 characters\)
  1275. sed "s/^X//" >'Vplot_Kernel/filters/genlib/genpoint.c' <<'END_OF_FILE'
  1276. X/*
  1277. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1278. X * University. Official permission to use this software is included in
  1279. X * the documentation. It authorizes you to use this file for any
  1280. X * non-commercial purpose, provided that this copyright notice is not
  1281. X * removed and that any modifications made to this file are commented
  1282. X * and dated in the style of my example below.
  1283. X */
  1284. X
  1285. X/*
  1286. X *
  1287. X *  source file:   ./filters/genlib/genpoint.c
  1288. X *
  1289. X * Joe Dellinger (SEP), June 11 1987
  1290. X *    Inserted this sample edit history entry.
  1291. X *    Please log any further modifications made to this file:
  1292. X */
  1293. X
  1294. X#include <stdio.h>
  1295. X#include "../include/extern.h"
  1296. X
  1297. genpoint (x1, y1)
  1298. X    int             x1, y1;
  1299. X{
  1300. X    dev.vector (x1, y1, x1, y1, 0, 0);
  1301. X}
  1302. END_OF_FILE
  1303. if test 742 -ne `wc -c <'Vplot_Kernel/filters/genlib/genpoint.c'`; then
  1304.     echo shar: \"'Vplot_Kernel/filters/genlib/genpoint.c'\" unpacked with wrong size!
  1305. fi
  1306. # end of 'Vplot_Kernel/filters/genlib/genpoint.c'
  1307. fi
  1308. if test -f 'Vplot_Kernel/filters/genlib/nulldev.c' -a "${1}" != "-c" ; then 
  1309.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/genlib/nulldev.c'\"
  1310. else
  1311. echo shar: Extracting \"'Vplot_Kernel/filters/genlib/nulldev.c'\" \(687 characters\)
  1312. sed "s/^X//" >'Vplot_Kernel/filters/genlib/nulldev.c' <<'END_OF_FILE'
  1313. X/*
  1314. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1315. X * University. Official permission to use this software is included in
  1316. X * the documentation. It authorizes you to use this file for any
  1317. X * non-commercial purpose, provided that this copyright notice is not
  1318. X * removed and that any modifications made to this file are commented
  1319. X * and dated in the style of my example below.
  1320. X */
  1321. X
  1322. X/*
  1323. X *
  1324. X *  source file:   ./filters/genlib/nulldev.c
  1325. X *
  1326. X * Joe Dellinger (SEP), June 11 1987
  1327. X *    Inserted this sample edit history entry.
  1328. X *    Please log any further modifications made to this file:
  1329. X */
  1330. X
  1331. X/*
  1332. X * All purpose Do-nothing generic subroutine
  1333. X */
  1334. X
  1335. int
  1336. nulldev ()
  1337. X{
  1338. X    return 0;
  1339. X}
  1340. END_OF_FILE
  1341. if test 687 -ne `wc -c <'Vplot_Kernel/filters/genlib/nulldev.c'`; then
  1342.     echo shar: \"'Vplot_Kernel/filters/genlib/nulldev.c'\" unpacked with wrong size!
  1343. fi
  1344. # end of 'Vplot_Kernel/filters/genlib/nulldev.c'
  1345. fi
  1346. if test -f 'Vplot_Kernel/filters/include/enum.h' -a "${1}" != "-c" ; then 
  1347.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/include/enum.h'\"
  1348. else
  1349. echo shar: Extracting \"'Vplot_Kernel/filters/include/enum.h'\" \(730 characters\)
  1350. sed "s/^X//" >'Vplot_Kernel/filters/include/enum.h' <<'END_OF_FILE'
  1351. X
  1352. X/*
  1353. X * enumeration values
  1354. X */
  1355. X
  1356. X/*
  1357. X * flags
  1358. X */
  1359. X#define NEVER_SET    -1
  1360. X#ifndef NO
  1361. X#define NO          0
  1362. X#endif
  1363. X#ifndef YES
  1364. X#define YES         1
  1365. X#endif
  1366. X
  1367. X/*
  1368. X * styles
  1369. X */
  1370. X#define NO_STYLE_YET    -1
  1371. X#define STANDARD    0
  1372. X#define ROTATED        1
  1373. X#define OLD        2
  1374. X#define ABSOLUTE     3
  1375. X
  1376. X/*
  1377. X * size
  1378. X */
  1379. X#define RELATIVE     0    /* ABSOLUTE is also a scale */
  1380. X
  1381. X/*
  1382. X * erases
  1383. X */
  1384. X#define    DO_LITERALS        1
  1385. X#define FORCE_INITIAL    2
  1386. X
  1387. X/*
  1388. X * Color table entry states
  1389. X */
  1390. X#define UNSET     0        /* Must be zero */
  1391. X#define SET        1
  1392. X#define MAPPED    2
  1393. X#define MAP_SET 3        /* MAPPED & SET */
  1394. X
  1395. X/*
  1396. X * Color table array elements
  1397. X */
  1398. X#define STATUS    0
  1399. X#define MAP        1
  1400. X#define _RED        2
  1401. X#define _GREEN    3
  1402. X#define _BLUE    4
  1403. X#define _GREY    5
  1404. X
  1405. X/*
  1406. X * Number of Color table array elements
  1407. X */
  1408. X#define _NUM_PRIM    6
  1409. END_OF_FILE
  1410. if test 730 -ne `wc -c <'Vplot_Kernel/filters/include/enum.h'`; then
  1411.     echo shar: \"'Vplot_Kernel/filters/include/enum.h'\" unpacked with wrong size!
  1412. fi
  1413. # end of 'Vplot_Kernel/filters/include/enum.h'
  1414. fi
  1415. if test -f 'Vplot_Kernel/filters/include/gendoc.h' -a "${1}" != "-c" ; then 
  1416.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/include/gendoc.h'\"
  1417. else
  1418. echo shar: Extracting \"'Vplot_Kernel/filters/include/gendoc.h'\" \(830 characters\)
  1419. sed "s/^X//" >'Vplot_Kernel/filters/include/gendoc.h' <<'END_OF_FILE'
  1420. X"--------------- universal VPLOT filter options -------------------------------",
  1421. X" in=[stdin](file)   | endpause=[y,n](d)| interact=[null](output_file)",
  1422. X" pause=[0](secs)    | shade=[y,n]      | style=[standard,rotated]",
  1423. X" fat=[0]            | wantras=[y,n](d) | erase=[y,n,once,literal]",
  1424. X" fatmult=[1.0]      | overlay=[n,y]    | size=[rel,abs](d)",
  1425. X" scale=[1.0]        | frame=[n,y]      | rotate=0 (degrees)",
  1426. X" xscale=[1.0]       | mono=[n,y](d)    | dither=1(0=no 1=rn 2=od 3=fs 4=ht)(d)",
  1427. X" yscale=[1.0]       | window=[y,n]     | xcenter,ycenter= (inch)",
  1428. X" hshift=[0.0](inch) | echo=[n,y] (d)   | xwmin,ywmin= (inch)",
  1429. X" vshift=[0.0](inch) | break=[n,y]      | xwmax,ywmax= (inch)",
  1430. X" txscale=[1.0]      | invras=[y,n]     | dashscale=[1.0]",
  1431. X" txfont=[0](0-16)(d)| mkscale=[1.0]    | pixc=[1.0](d)  greyc=[1.0](d)",
  1432. END_OF_FILE
  1433. if test 830 -ne `wc -c <'Vplot_Kernel/filters/include/gendoc.h'`; then
  1434.     echo shar: \"'Vplot_Kernel/filters/include/gendoc.h'\" unpacked with wrong size!
  1435. fi
  1436. # end of 'Vplot_Kernel/filters/include/gendoc.h'
  1437. fi
  1438. if test -f 'Vplot_Kernel/filters/known_bugs' -a "${1}" != "-c" ; then 
  1439.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/known_bugs'\"
  1440. else
  1441. echo shar: Extracting \"'Vplot_Kernel/filters/known_bugs'\" \(710 characters\)
  1442. sed "s/^X//" >'Vplot_Kernel/filters/known_bugs' <<'END_OF_FILE'
  1443. Some of the nested macros for reading rasters in dovplot.c cause
  1444. problems with some older C compilers. Our solution to this problem
  1445. was to upgrade to 4.3 on our Vaxen. Then the problem went away.
  1446. If you are stuck with 4.2, you can easily create temporary intermediate
  1447. variables to simplify the offending expressions. I would do this,
  1448. except I can't remember where the problems are anymore. It's only
  1449. a couple of places, though.
  1450. X
  1451. The Sun lint complains about "pointer alignment problems" at some
  1452. points, although I can't see anything wrong.
  1453. X
  1454. The Convex lint complains about my usage of sigvec and sprintf, although
  1455. again I can't find anything wrong.
  1456. X
  1457. SEPlib demands that at least one input file be standard in.
  1458. END_OF_FILE
  1459. if test 710 -ne `wc -c <'Vplot_Kernel/filters/known_bugs'`; then
  1460.     echo shar: \"'Vplot_Kernel/filters/known_bugs'\" unpacked with wrong size!
  1461. fi
  1462. # end of 'Vplot_Kernel/filters/known_bugs'
  1463. fi
  1464. if test -f 'Vplot_Kernel/filters/loclib/Makefile' -a "${1}" != "-c" ; then 
  1465.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/loclib/Makefile'\"
  1466. else
  1467. echo shar: Extracting \"'Vplot_Kernel/filters/loclib/Makefile'\" \(705 characters\)
  1468. sed "s/^X//" >'Vplot_Kernel/filters/loclib/Makefile' <<'END_OF_FILE'
  1469. X#
  1470. X# All of these except Puthead are in lsep, but these are what are needed
  1471. X# to make non-sep-libbed versions of the program fly if you don't have
  1472. X# lsep, like on erebus.
  1473. X#
  1474. X
  1475. SFILES= Puthead.c doc.c err.c sepwhere.c
  1476. FILES= geth.c getch_.c getpar.c getpar_decode.c\
  1477. X        getpar_scan.c getpar_string_store.c puth.c alloc.c\
  1478. X        fsize.c file.c err.c bufpar.c
  1479. X
  1480. all: loclib.a tseplib.a
  1481. X
  1482. tseplib.a: $(SFILES)
  1483. X    rm -f *.o
  1484. X    cc -c $(CFLAGS) $?
  1485. X    ar cr tseplib.a *.o
  1486. X    ranlib tseplib.a
  1487. X    rm -f *.o
  1488. X
  1489. loclib.a:  $(FILES)
  1490. X    rm -f *.o
  1491. X    cc -c $(CFLAGS) $?
  1492. X    ar cr loclib.a *.o
  1493. X    ranlib loclib.a
  1494. X    rm -f *.o
  1495. X
  1496. getpar_scan.c: getpar_scan.l
  1497. X    lex getpar_scan.l
  1498. X    mv lex.yy.c getpar_scan.c
  1499. X
  1500. clean:
  1501. X    rm -f *.o getpar_scan.c tseplib.a loclib.a
  1502. END_OF_FILE
  1503. if test 705 -ne `wc -c <'Vplot_Kernel/filters/loclib/Makefile'`; then
  1504.     echo shar: \"'Vplot_Kernel/filters/loclib/Makefile'\" unpacked with wrong size!
  1505. fi
  1506. # end of 'Vplot_Kernel/filters/loclib/Makefile'
  1507. fi
  1508. if test -f 'Vplot_Kernel/filters/loclib/doc.c' -a "${1}" != "-c" ; then 
  1509.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/loclib/doc.c'\"
  1510. else
  1511. echo shar: Extracting \"'Vplot_Kernel/filters/loclib/doc.c'\" \(616 characters\)
  1512. sed "s/^X//" >'Vplot_Kernel/filters/loclib/doc.c' <<'END_OF_FILE'
  1513. X/*
  1514. X *
  1515. X *  source file:   ./filters/loclib/doc.c
  1516. X *
  1517. X * Joe Dellinger (SEP), June 11 1987
  1518. X *    Inserted this sample edit history entry.
  1519. X *    Please log any further modifications made to this file:
  1520. X */
  1521. X
  1522. X/*
  1523. X * Special version to make SEP selfdoc the same way glenn does.
  1524. X */
  1525. X#include <stdio.h>
  1526. X#include <strings.h>
  1527. X#include "../include/extern.h"
  1528. X
  1529. doc ()
  1530. X{
  1531. int             ii;
  1532. extern int      xargc, redin ();
  1533. extern char   **xargv;
  1534. X
  1535. X    if ((xargc == 1 || (xargc == 2 && !strncmp ("wstype=", xargv[1], 7)))
  1536. X    && !redin ())
  1537. X    {
  1538. X    for (ii = 0; ii < doclength; ii++)
  1539. X        printf ("%s\n", documentation[ii]);
  1540. X    exit (0);
  1541. X    }
  1542. X}
  1543. END_OF_FILE
  1544. if test 616 -ne `wc -c <'Vplot_Kernel/filters/loclib/doc.c'`; then
  1545.     echo shar: \"'Vplot_Kernel/filters/loclib/doc.c'\" unpacked with wrong size!
  1546. fi
  1547. # end of 'Vplot_Kernel/filters/loclib/doc.c'
  1548. fi
  1549. if test -f 'Vplot_Kernel/filters/loclib/getch_.c' -a "${1}" != "-c" ; then 
  1550.   echo shar: Will not clobber existing file \"'Vplot_Kernel/filters/loclib/getch_.c'\"
  1551. else
  1552. echo shar: Extracting \"'Vplot_Kernel/filters/loclib/getch_.c'\" \(811 characters\)
  1553. sed "s/^X//" >'Vplot_Kernel/filters/loclib/getch_.c' <<'END_OF_FILE'
  1554. X/*
  1555. X *
  1556. X *  source file:   ./filters/loclib/getch_.c
  1557. X *
  1558. X * Joe Dellinger (SEP), June 11 1987
  1559. X *    Inserted this sample edit history entry.
  1560. X *    Please log any further modifications made to this file:
  1561. X */
  1562. X
  1563. X#include "fastpar.h"
  1564. X#define GETCH_QUEUE_SIZE  127
  1565. X
  1566. hash_item *getch_queue[GETCH_QUEUE_SIZE];
  1567. int getch_queue_size = GETCH_QUEUE_SIZE;
  1568. X
  1569. int
  1570. getch_(tag,type,val)
  1571. char *tag, *type;
  1572. MIXED val;
  1573. X{
  1574. X register int iargc;
  1575. X static int first_invoke = 1;
  1576. X extern int xargc; extern char **xargv;
  1577. X
  1578. X if(first_invoke) {
  1579. X    for(iargc=1; iargc<xargc; iargc++) 
  1580. X    getpar_string_store(getch_queue,getch_queue_size,xargv[iargc]);
  1581. X    first_invoke = 0;
  1582. X    }
  1583. X
  1584. X return (getpar_decode(getch_queue,getch_queue_size,tag,type,val));
  1585. X}
  1586. X
  1587. getch_add_string_(string)
  1588. char *string;
  1589. X{
  1590. X    getpar_string_store(getch_queue,getch_queue_size,string);
  1591. X}
  1592. END_OF_FILE
  1593. if test 811 -ne `wc -c <'Vplot_Kernel/filters/loclib/getch_.c'`; then
  1594.     echo shar: \"'Vplot_Kernel/filters/loclib/getch_.c'\" unpacked with wrong size!
  1595. fi
  1596. # end of 'Vplot_Kernel/filters/loclib/getch_.c'
  1597. fi
  1598. if test -f 'Vplot_Kernel/lvplot/geth.c' -a "${1}" != "-c" ; then 
  1599.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/geth.c'\"
  1600. else
  1601. echo shar: Extracting \"'Vplot_Kernel/lvplot/geth.c'\" \(862 characters\)
  1602. sed "s/^X//" >'Vplot_Kernel/lvplot/geth.c' <<'END_OF_FILE'
  1603. X/*
  1604. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1605. X * University. Official permission to use this software is included in
  1606. X * the documentation. It authorizes you to use this file for any
  1607. X * non-commercial purpose, provided that this copyright notice is not
  1608. X * removed and that any modifications made to this file are commented
  1609. X * and dated in the style of my example below.
  1610. X */
  1611. X
  1612. X/*
  1613. X *
  1614. X *  source file:   ./lvplot/geth.c
  1615. X *
  1616. X * Joe Dellinger (SEP), June 11 1987
  1617. X *    Inserted this sample edit history entry.
  1618. X *    Please log any further modifications made to this file:
  1619. X */
  1620. X
  1621. X#ifndef FORTRAN
  1622. X#include <stdio.h>
  1623. X
  1624. int
  1625. geth (iop)
  1626. X    register FILE  *iop;
  1627. X{
  1628. union
  1629. X{
  1630. X    unsigned short  w;
  1631. X    short           s;
  1632. X}               r;
  1633. X
  1634. X    r.w = getc (iop);
  1635. X    r.w += (getc (iop) << 8);
  1636. X    if (feof (iop))
  1637. X    return (EOF);
  1638. X    return ((int) r.s);
  1639. X}
  1640. X#endif
  1641. END_OF_FILE
  1642. if test 862 -ne `wc -c <'Vplot_Kernel/lvplot/geth.c'`; then
  1643.     echo shar: \"'Vplot_Kernel/lvplot/geth.c'\" unpacked with wrong size!
  1644. fi
  1645. # end of 'Vplot_Kernel/lvplot/geth.c'
  1646. fi
  1647. if test -f 'Vplot_Kernel/lvplot/known_bugs' -a "${1}" != "-c" ; then 
  1648.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/known_bugs'\"
  1649. else
  1650. echo shar: Extracting \"'Vplot_Kernel/lvplot/known_bugs'\" \(794 characters\)
  1651. sed "s/^X//" >'Vplot_Kernel/lvplot/known_bugs' <<'END_OF_FILE'
  1652. The FORTRAN routines are probably not as well tested as they should be.
  1653. There may easily still be bugs lurking in some of the lesser-used
  1654. routines. Several VPLOT commands as yet have no corresponding libvplot
  1655. routines.
  1656. X
  1657. Beware of running "indent" on vp_raster.c.
  1658. Vp_raster doesn't always compact things as well as it could.
  1659. X
  1660. I should have switched vp_fat and vp_text to take sizes and lengths in
  1661. floating point inches when I had the chance. It didn't occur to me then
  1662. and now it's too late -- if I tried to change the units from the screwy
  1663. quantized ones set back in 1979 by persons unknown everyone would come
  1664. beating down my door. Vp_gtext gives an escape from quantized text
  1665. sizes, but it would be very difficult indeed to try to do anything about the
  1666. quantized vp_fat command at this date.
  1667. END_OF_FILE
  1668. if test 794 -ne `wc -c <'Vplot_Kernel/lvplot/known_bugs'`; then
  1669.     echo shar: \"'Vplot_Kernel/lvplot/known_bugs'\" unpacked with wrong size!
  1670. fi
  1671. # end of 'Vplot_Kernel/lvplot/known_bugs'
  1672. fi
  1673. if test -f 'Vplot_Kernel/lvplot/vp_break.c' -a "${1}" != "-c" ; then 
  1674.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_break.c'\"
  1675. else
  1676. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_break.c'\" \(780 characters\)
  1677. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_break.c' <<'END_OF_FILE'
  1678. X/*
  1679. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1680. X * University. Official permission to use this software is included in
  1681. X * the documentation. It authorizes you to use this file for any
  1682. X * non-commercial purpose, provided that this copyright notice is not
  1683. X * removed and that any modifications made to this file are commented
  1684. X * and dated in the style of my example below.
  1685. X */
  1686. X
  1687. X/*
  1688. X *
  1689. X *  source file:   ./lvplot/vp_break.c
  1690. X *
  1691. X * Joe Dellinger (SEP), June 11 1987
  1692. X *    Inserted this sample edit history entry.
  1693. X *    Please log any further modifications made to this file:
  1694. X */
  1695. X
  1696. X#include <stdio.h>
  1697. X#include <vplot.h>
  1698. X#include "vp_pc.h"
  1699. X
  1700. X#ifdef FORTRAN
  1701. X
  1702. X#define BREAK vpbreak_
  1703. X
  1704. X#else
  1705. X
  1706. X#define BREAK vp_break
  1707. X
  1708. X#endif
  1709. X
  1710. BREAK ()
  1711. X{
  1712. X    putc (VP_BREAK, vp_pc._pltout);
  1713. X}
  1714. END_OF_FILE
  1715. if test 780 -ne `wc -c <'Vplot_Kernel/lvplot/vp_break.c'`; then
  1716.     echo shar: \"'Vplot_Kernel/lvplot/vp_break.c'\" unpacked with wrong size!
  1717. fi
  1718. # end of 'Vplot_Kernel/lvplot/vp_break.c'
  1719. fi
  1720. if test -f 'Vplot_Kernel/lvplot/vp_egroup.c' -a "${1}" != "-c" ; then 
  1721.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_egroup.c'\"
  1722. else
  1723. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_egroup.c'\" \(731 characters\)
  1724. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_egroup.c' <<'END_OF_FILE'
  1725. X/*
  1726. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1727. X * University. Official permission to use this software is included in
  1728. X * the documentation. It authorizes you to use this file for any
  1729. X * non-commercial purpose, provided that this copyright notice is not
  1730. X * removed and that any modifications made to this file are commented
  1731. X * and dated in the style of my example below.
  1732. X */
  1733. X
  1734. X/*
  1735. X *
  1736. X *  source file:   ./lvplot/vp_egroup.c
  1737. X *
  1738. X * Joe Dellinger (SEP), Feb 27 1988
  1739. X *    Inserted this sample edit history entry.
  1740. X *    Please log any further modifications made to this file:
  1741. X */
  1742. X
  1743. X#include <vplot.h>
  1744. X#include "vp_pc.h"
  1745. X
  1746. X#ifdef FORTRAN
  1747. vpegroup_ ()
  1748. X#else
  1749. vp_egroup ()
  1750. X#endif
  1751. X{
  1752. X    putc (VP_END_GROUP, vp_pc._pltout);
  1753. X}
  1754. END_OF_FILE
  1755. if test 731 -ne `wc -c <'Vplot_Kernel/lvplot/vp_egroup.c'`; then
  1756.     echo shar: \"'Vplot_Kernel/lvplot/vp_egroup.c'\" unpacked with wrong size!
  1757. fi
  1758. # end of 'Vplot_Kernel/lvplot/vp_egroup.c'
  1759. fi
  1760. if test -f 'Vplot_Kernel/lvplot/vp_endplt.c' -a "${1}" != "-c" ; then 
  1761.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_endplt.c'\"
  1762. else
  1763. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_endplt.c'\" \(878 characters\)
  1764. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_endplt.c' <<'END_OF_FILE'
  1765. X/*
  1766. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1767. X * University. Official permission to use this software is included in
  1768. X * the documentation. It authorizes you to use this file for any
  1769. X * non-commercial purpose, provided that this copyright notice is not
  1770. X * removed and that any modifications made to this file are commented
  1771. X * and dated in the style of my example below.
  1772. X */
  1773. X
  1774. X/*
  1775. X *
  1776. X *  source file:   ./lvplot/vp_endplt.c
  1777. X *
  1778. X * Joe Dellinger (SEP), June 11 1987
  1779. X *    Inserted this sample edit history entry.
  1780. X *    Please log any further modifications made to this file:
  1781. X */
  1782. X
  1783. X#include <stdio.h>
  1784. X#include <vplot.h>
  1785. X#include "vp_pc.h"
  1786. X
  1787. X#ifdef FORTRAN
  1788. X
  1789. X#define ENDPLT vpendplot_
  1790. X
  1791. X#else
  1792. X
  1793. X#define ENDPLT vp_endplot
  1794. X
  1795. X#endif
  1796. X
  1797. ENDPLT ()
  1798. X{
  1799. X    if (fclose (vp_pc._pltout) == EOF)
  1800. X    {
  1801. X    fprintf (stderr, "libvplot.endplt: cannot close plotfile\n");
  1802. X    exit (-1);
  1803. X    }
  1804. X}
  1805. END_OF_FILE
  1806. if test 878 -ne `wc -c <'Vplot_Kernel/lvplot/vp_endplt.c'`; then
  1807.     echo shar: \"'Vplot_Kernel/lvplot/vp_endplt.c'\" unpacked with wrong size!
  1808. fi
  1809. # end of 'Vplot_Kernel/lvplot/vp_endplt.c'
  1810. fi
  1811. if test -f 'Vplot_Kernel/lvplot/vp_erase.c' -a "${1}" != "-c" ; then 
  1812.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_erase.c'\"
  1813. else
  1814. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_erase.c'\" \(780 characters\)
  1815. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_erase.c' <<'END_OF_FILE'
  1816. X/*
  1817. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1818. X * University. Official permission to use this software is included in
  1819. X * the documentation. It authorizes you to use this file for any
  1820. X * non-commercial purpose, provided that this copyright notice is not
  1821. X * removed and that any modifications made to this file are commented
  1822. X * and dated in the style of my example below.
  1823. X */
  1824. X
  1825. X/*
  1826. X *
  1827. X *  source file:   ./lvplot/vp_erase.c
  1828. X *
  1829. X * Joe Dellinger (SEP), June 11 1987
  1830. X *    Inserted this sample edit history entry.
  1831. X *    Please log any further modifications made to this file:
  1832. X */
  1833. X
  1834. X#include <stdio.h>
  1835. X#include <vplot.h>
  1836. X#include "vp_pc.h"
  1837. X
  1838. X#ifdef FORTRAN
  1839. X
  1840. X#define ERASE vperase_
  1841. X
  1842. X#else
  1843. X
  1844. X#define ERASE vp_erase
  1845. X
  1846. X#endif
  1847. X
  1848. ERASE ()
  1849. X{
  1850. X    putc (VP_ERASE, vp_pc._pltout);
  1851. X}
  1852. END_OF_FILE
  1853. if test 780 -ne `wc -c <'Vplot_Kernel/lvplot/vp_erase.c'`; then
  1854.     echo shar: \"'Vplot_Kernel/lvplot/vp_erase.c'\" unpacked with wrong size!
  1855. fi
  1856. # end of 'Vplot_Kernel/lvplot/vp_erase.c'
  1857. fi
  1858. if test -f 'Vplot_Kernel/lvplot/vp_penup.c' -a "${1}" != "-c" ; then 
  1859.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_penup.c'\"
  1860. else
  1861. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_penup.c'\" \(749 characters\)
  1862. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_penup.c' <<'END_OF_FILE'
  1863. X/*
  1864. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1865. X * University. Official permission to use this software is included in
  1866. X * the documentation. It authorizes you to use this file for any
  1867. X * non-commercial purpose, provided that this copyright notice is not
  1868. X * removed and that any modifications made to this file are commented
  1869. X * and dated in the style of my example below.
  1870. X */
  1871. X
  1872. X/*
  1873. X *
  1874. X *  source file:   ./lvplot/vp_penup.c
  1875. X *
  1876. X * Joe Dellinger (SEP), June 11 1987
  1877. X *    Inserted this sample edit history entry.
  1878. X *    Please log any further modifications made to this file:
  1879. X */
  1880. X
  1881. X#include <vplot.h>
  1882. X#include "vp_pc.h"
  1883. X
  1884. X#ifdef FORTRAN
  1885. X
  1886. X#define PENUP vppenup_
  1887. X
  1888. X#else
  1889. X
  1890. X#define PENUP vp_penup
  1891. X
  1892. X#endif
  1893. X
  1894. PENUP ()
  1895. X{
  1896. X    vp_pc._pendown = 0;
  1897. X}
  1898. END_OF_FILE
  1899. if test 749 -ne `wc -c <'Vplot_Kernel/lvplot/vp_penup.c'`; then
  1900.     echo shar: \"'Vplot_Kernel/lvplot/vp_penup.c'\" unpacked with wrong size!
  1901. fi
  1902. # end of 'Vplot_Kernel/lvplot/vp_penup.c'
  1903. fi
  1904. if test -f 'Vplot_Kernel/lvplot/vp_purge.c' -a "${1}" != "-c" ; then 
  1905.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_purge.c'\"
  1906. else
  1907. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_purge.c'\" \(833 characters\)
  1908. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_purge.c' <<'END_OF_FILE'
  1909. X/*
  1910. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1911. X * University. Official permission to use this software is included in
  1912. X * the documentation. It authorizes you to use this file for any
  1913. X * non-commercial purpose, provided that this copyright notice is not
  1914. X * removed and that any modifications made to this file are commented
  1915. X * and dated in the style of my example below.
  1916. X */
  1917. X
  1918. X/*
  1919. X *
  1920. X *  source file:   ./lvplot/vp_purge.c
  1921. X *
  1922. X * Joe Dellinger (SEP), June 11 1987
  1923. X *    Inserted this sample edit history entry.
  1924. X *    Please log any further modifications made to this file:
  1925. X */
  1926. X
  1927. X#include <vplot.h>
  1928. X#include "vp_pc.h"
  1929. X
  1930. X#ifdef FORTRAN
  1931. vppurge_ ()
  1932. X#else
  1933. vp_purge ()
  1934. X#endif
  1935. X{
  1936. X    putc (VP_PURGE, vp_pc._pltout);
  1937. X    if (EOF == fflush (vp_pc._pltout))
  1938. X    {
  1939. X    fprintf (stderr, "\nvp_purge: unable to purge plot\n");
  1940. X    }
  1941. X}
  1942. END_OF_FILE
  1943. if test 833 -ne `wc -c <'Vplot_Kernel/lvplot/vp_purge.c'`; then
  1944.     echo shar: \"'Vplot_Kernel/lvplot/vp_purge.c'\" unpacked with wrong size!
  1945. fi
  1946. # end of 'Vplot_Kernel/lvplot/vp_purge.c'
  1947. fi
  1948. if test -f 'Vplot_Kernel/lvplot/vp_uarea.c' -a "${1}" != "-c" ; then 
  1949.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_uarea.c'\"
  1950. else
  1951. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_uarea.c'\" \(627 characters\)
  1952. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_uarea.c' <<'END_OF_FILE'
  1953. X/*
  1954. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1955. X * University. Official permission to use this software is included in
  1956. X * the documentation. It authorizes you to use this file for any
  1957. X * non-commercial purpose, provided that this copyright notice is not
  1958. X * removed and that any modifications made to this file are commented
  1959. X * and dated in the style of my example below.
  1960. X */
  1961. X
  1962. X/*
  1963. X *
  1964. X *  source file:   ./lvplot/vp_uarea.c
  1965. X *
  1966. X * Joe Dellinger (SEP), June 11 1987
  1967. X *    Inserted this sample edit history entry.
  1968. X *    Please log any further modifications made to this file:
  1969. X */
  1970. X
  1971. X#define UUU
  1972. X#include "vp_area.c"
  1973. END_OF_FILE
  1974. if test 627 -ne `wc -c <'Vplot_Kernel/lvplot/vp_uarea.c'`; then
  1975.     echo shar: \"'Vplot_Kernel/lvplot/vp_uarea.c'\" unpacked with wrong size!
  1976. fi
  1977. # end of 'Vplot_Kernel/lvplot/vp_uarea.c'
  1978. fi
  1979. if test -f 'Vplot_Kernel/lvplot/vp_uarrow.c' -a "${1}" != "-c" ; then 
  1980.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_uarrow.c'\"
  1981. else
  1982. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_uarrow.c'\" \(629 characters\)
  1983. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_uarrow.c' <<'END_OF_FILE'
  1984. X/*
  1985. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  1986. X * University. Official permission to use this software is included in
  1987. X * the documentation. It authorizes you to use this file for any
  1988. X * non-commercial purpose, provided that this copyright notice is not
  1989. X * removed and that any modifications made to this file are commented
  1990. X * and dated in the style of my example below.
  1991. X */
  1992. X
  1993. X/*
  1994. X *
  1995. X *  source file:   ./lvplot/vp_uarrow.c
  1996. X *
  1997. X * Joe Dellinger (SEP), June 11 1987
  1998. X *    Inserted this sample edit history entry.
  1999. X *    Please log any further modifications made to this file:
  2000. X */
  2001. X
  2002. X#define UUU
  2003. X#include "vp_arrow.c"
  2004. END_OF_FILE
  2005. if test 629 -ne `wc -c <'Vplot_Kernel/lvplot/vp_uarrow.c'`; then
  2006.     echo shar: \"'Vplot_Kernel/lvplot/vp_uarrow.c'\" unpacked with wrong size!
  2007. fi
  2008. # end of 'Vplot_Kernel/lvplot/vp_uarrow.c'
  2009. fi
  2010. if test -f 'Vplot_Kernel/lvplot/vp_udraw.c' -a "${1}" != "-c" ; then 
  2011.   echo shar: Will not clobber existing file \"'Vplot_Kernel/lvplot/vp_udraw.c'\"
  2012. else
  2013. echo shar: Extracting \"'Vplot_Kernel/lvplot/vp_udraw.c'\" \(627 characters\)
  2014. sed "s/^X//" >'Vplot_Kernel/lvplot/vp_udraw.c' <<'END_OF_FILE'
  2015. X/*
  2016. X * Copyright 1987 the Board of Trustees of the Leland Stanford Junior
  2017. X * University. Official permission to use this software is included in
  2018. X * the documentation. It authorizes you to use this file for any
  2019. X * non-commercial purpose, provided that this copyright notice is not
  2020. X * removed and that any modifications made to this file are commented
  2021. X * and dated in the style of my example below.
  2022. X */
  2023. X
  2024. X/*
  2025. X *
  2026. X *  source file:   ./lvplot/vp_udraw.c
  2027. X *
  2028. X * Joe Dellinger (SEP), June 11 1987
  2029. X *    Inserted this sample edit history entry.
  2030. X *    Please log any further modifications made to this file:
  2031. X */
  2032. X
  2033. X#define UUU
  2034. X#include "vp_draw.c"
  2035. END_OF_FILE
  2036. if test 627 -ne `wc -c <'Vplot_Kernel/lvplot/vp_udraw.c'`; then
  2037.     echo shar: \"'Vplot_Kernel/lvplot/vp_udraw.c'\" unpacked with wrong size!
  2038. fi
  2039. # end of 'Vplot_Kernel/lvplot/vp_udraw.c'
  2040. fi
  2041. echo shar: End of archive 3 \(of 24\).
  2042. cp /dev/null ark3isdone
  2043. MISSING=""
  2044. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ; do
  2045.     if test ! -f ark${I}isdone ; then
  2046.     MISSING="${MISSING} ${I}"
  2047.     fi
  2048. done
  2049. if test "${MISSING}" = "" ; then
  2050.     echo You have unpacked all 24 archives.
  2051.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2052. else
  2053.     echo You still need to unpack the following archives:
  2054.     echo "        " ${MISSING}
  2055. fi
  2056. ##  End of shell archive.
  2057. exit 0
  2058. -- 
  2059. Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
  2060.