summaryrefslogtreecommitdiff
path: root/graphics/psfig/unsupported/dospecial.patch
blob: 690fbfaa193673be954b2744d66c206d0e2b35a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
*** dospecial.c	Tue Jan 15 16:17:59 1991
--- dospecial.c.new	Sun Oct 20 13:14:10 1991
***************
*** 620,628 ****
          } else if (strncmp(p+3, " plotfile ", 10) == 0) {
             char *sfp ;
             p += 13;
!            for (sfp = p; *sfp && *sfp != ' '; sfp++) ;
             *sfp = '\0';
!            figcopyfile (p, 0);
          } else
             nlcmdout(&p[3]);
          return;
--- 620,642 ----
          } else if (strncmp(p+3, " plotfile ", 10) == 0) {
             char *sfp ;
             p += 13;
! 	   /*
! 	    *  Fixed to allow popen input for plotfile
! 	    *  TJD 10/20/91
! 	    */
! 	   while (*p == ' ') p++;
! 	   if (*p == '"') {
! 	     p++;
! 	     for (sfp = p; *sfp && *sfp != '"'; sfp++) ;
!            } else {
! 	     for (sfp = p; *sfp && *sfp != ' '; sfp++) ;
!            }
             *sfp = '\0';
! 	   if (*p == '`') 
! 	     figcopyfile(p+1, 1);
! 	   else
! 	     figcopyfile (p, 0);
! 	   /* End TJD changes */
          } else
             nlcmdout(&p[3]);
          return;