Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10 | Rev 3718 | ||
---|---|---|---|
Line 174... | Line 174... | ||
174 | snprintf(tbuf,sizeof(tbuf),"%s",pp); |
174 | snprintf(tbuf,sizeof(tbuf),"%s",pp); |
175 | i=strlen(tbuf)-1; |
175 | i=strlen(tbuf)-1; |
176 | while(i>0 && isspace(tbuf[i])) i--; |
176 | while(i>0 && isspace(tbuf[i])) i--; |
177 | if(tbuf[i]==';') tbuf[i]=0; |
177 | if(tbuf[i]==';') tbuf[i]=0; |
178 | gnuplot_patch(tbuf,0);pp=tbuf; |
178 | gnuplot_patch(tbuf,0);pp=tbuf; |
179 |
|
179 | ovlstrcpy(setbuf,"set "); j=strlen("set "); |
180 | for(i=0; *(pp+i)!=0 && j<MAX_LINELEN; i++) { |
180 | for(i=0; *(pp+i)!=0 && j<MAX_LINELEN; i++) { |
181 | if(*(pp+i)=='\n') {setbuf[j++]=' '; continue;} |
181 | if(*(pp+i)=='\n') {setbuf[j++]=' '; continue;} |
182 | if(*(pp+i)!=';') {setbuf[j++]=*(pp+i); continue;} |
182 | if(*(pp+i)!=';') {setbuf[j++]=*(pp+i); continue;} |
183 |
|
183 | ovlstrcpy(setbuf+j,"\nset "); j+=strlen("\nset "); |
184 | } |
184 | } |
185 | setbuf[j]=0; |
185 | setbuf[j]=0; |
186 | setenv("insplot_set",setbuf,1); |
186 | setenv("insplot_set",setbuf,1); |
187 | } |
187 | } |
188 | else setenv("insplot_set","",1); |
188 | else setenv("insplot_set","",1); |
Line 236... | Line 236... | ||
236 | } |
236 | } |
237 | 237 | ||
238 | if(*(p2-1)=='.' && p2<numend) p2++; |
238 | if(*(p2-1)=='.' && p2<numend) p2++; |
239 | 239 | ||
240 | if(p2<numend) { |
240 | if(p2<numend) { |
241 |
|
241 | ovlstrcpy(p2,numend);numend=p2; |
242 | } |
242 | } |
243 | pp=numend-1; |
243 | pp=numend-1; |
244 | } |
244 | } |
245 | } |
245 | } |
246 | 246 |