| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent afe486f commit 8655ef9
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,11 @@ | |||
| 1 | + 2013-12-22 Erik Olofsen <olofsen@users.sf.net> | ||
| 2 | + | ||
| 3 | + * configure.vms src/command.c src/hidden3d.c src/stdfn.c src/stdfn.h | ||
| 4 | + src/syscfg.h src/term.c src/term.h term/tek.trm: | ||
| 5 | + | ||
| 6 | + Update VMS build support. Tested using HP C V7.1-015 OpenVMS Alpha V8.3 | ||
| 7 | + on an AlphaServer DS10. | ||
| 8 | + | ||
| 1 | 9 | 2013-12-21 Ethan A Merritt <merritt@u.washington.edu> | |
| 2 | 10 | ||
| 3 | 11 | * configure.in: automake 1.14 wants an option subdir-objects | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -149,7 +149,8 @@ $HAVEMAKETOOL: | |||
| 149 | 149 | $ ! | |
| 150 | 150 | $ ! Check if the system has DECWindows. | |
| 151 | 151 | $ ! | |
| 152 | - $ DECW = F$TRNLNM("DECW$INCLUDE") .NES. "" | ||
| 152 | + $ ! DECW = F$TRNLNM("DECW$INCLUDE") .NES. "" | ||
| 153 | + $ DECW = 0 | ||
| 153 | 154 | $ ! | |
| 154 | 155 | $ ! Get the architecture. | |
| 155 | 156 | $ ! | |
@@ -237,6 +238,7 @@ $ X_DISPLAY_MISSING = 0 | |||
| 237 | 238 | $ time_t = 0 | |
| 238 | 239 | $ HAVE_ATEXIT = DECC | |
| 239 | 240 | $ HAVE_BCOPY = DECC | |
| 241 | + $ HAVE__BOOL = DECC | ||
| 240 | 242 | $ HAVE_BZERO = DECC | |
| 241 | 243 | $ HAVE_DOPRNT = 0 | |
| 242 | 244 | $ HAVE_ERF = DPML | |
@@ -266,6 +268,7 @@ $ HAVE_STRERROR = DECC | |||
| 266 | 268 | $ HAVE_STRICMP = 0 | |
| 267 | 269 | $ HAVE_STRNCASECMP = __CRTL_VER .GE. 70000000 | |
| 268 | 270 | $ HAVE_STRNICMP = 0 | |
| 271 | + $ HAVE_STRNLEN = DECC | ||
| 269 | 272 | $ HAVE_STRRCHR = DECC | |
| 270 | 273 | $ HAVE_STRSTR = DECC | |
| 271 | 274 | $ HAVE_SYSINFO = 0 | |
@@ -295,6 +298,7 @@ $ HAVE_SYS_TYPES_H = DECC | |||
| 295 | 298 | $ HAVE_SYS_UTSNAME_H = __CRTL_VER .GE. 70000000 | |
| 296 | 299 | $ HAVE_TERMIOS_H = 0 | |
| 297 | 300 | $ HAVE_TIME_H = DECC | |
| 301 | + $ HAVE_TIME_T_IN_TIME_H = DECC | ||
| 298 | 302 | $ HAVE_UNISTD_H = DECC | |
| 299 | 303 | $ HAVE_VALUES_H = 0 | |
| 300 | 304 | $ HAVE_LIBM = DECC | |
@@ -374,7 +378,8 @@ $ OTHERTERM = "[-.term]impcodes.h [-.term]object.h gplt_x11.c" | |||
| 374 | 378 | $ ! | |
| 375 | 379 | $ ! Define CFLAGS. | |
| 376 | 380 | $ ! | |
| 377 | - $ CFLAGS = "/DEFINE=(NO_GIH,HAVE_CONFIG_H,''RTL')/INCLUDE=[-]" | ||
| 381 | + $ CFLAGS = "/FLOAT=IEEE/IEEE_MODE=UNDERFLOW_TO_ZERO/DEFINE=(HAVE_CONFIG_H,''RTL')/INCLUDE=[-]" | ||
| 382 | + $ ! CFLAGS = "/DEFINE=(HAVE_CONFIG_H,''RTL')/INCLUDE=[-]" | ||
| 378 | 383 | $ IF (DECC) THEN CFLAGS = CFLAGS + "/PREFIX=ALL" | |
| 379 | 384 | $ ! | |
| 380 | 385 | $ ! Write the make file. | |
@@ -434,7 +439,7 @@ $ IF (RTL .EQS. "VAXCRTL") THEN - | |||
| 434 | 439 | WRITE MAKE "CRTL_SHARE = ,SYS$DISK:[]VAXC.OPT/OPT" | |
| 435 | 440 | $ IF (RTL .NES. "VAXCRTL") THEN WRITE MAKE "CRTL_SHARE =" | |
| 436 | 441 | $ WRITE MAKE "CFLAGS = ", CFLAGS | |
| 437 | - $ WRITE MAKE "TERMFLAGS = /INCLUDE=([-],[-.TERM])" | ||
| 442 | + $ WRITE MAKE "TERMFLAGS = /INCLUDE=([-],[-.TERM],[-.TERM.POSTSCRIPT],[-.SRC])" | ||
| 438 | 443 | $ WRITE MAKE "" | |
| 439 | 444 | $ WRITE MAKE "OBJS = \" | |
| 440 | 445 | $ N = 0 | |
@@ -480,7 +485,7 @@ gnuplot.$(X) : $(OBJS) | |||
| 480 | 485 | ||
| 481 | 486 | gnuplot_x11.$(X) : gplt_x11.$(O) stdfn.$(O) | |
| 482 | 487 | link /executable=gnuplot_x11.$(X) \ | |
| 483 | - gplt_x11.$(O),stdfn.$(O),x11.opt/option$(EXTRALIB)$(CRTL_SHARE) | ||
| 488 | + gplt_x11.$(O),stdfn.$(O),version.$(O),x11.opt/option$(EXTRALIB)$(CRTL_SHARE) | ||
| 484 | 489 | ||
| 485 | 490 | gplt_x11.$(O) : gplt_x11.c | |
| 486 | 491 | $(CC) $(CFLAGS) $(X11FLAGS) $< | |
@@ -565,7 +570,7 @@ $ IF (RTL .EQS. "VAXCRTL") THEN - | |||
| 565 | 570 | WRITE MAKE "$ CRTL_SHARE = "",SYS$DISK:[]VAXC.OPT/OPT""" | |
| 566 | 571 | $ IF (RTL .NES. "VAXCRTL") THEN WRITE MAKE "$ CRTL_SHARE = """"" | |
| 567 | 572 | $ WRITE MAKE "$ CFLAGS = ""''CFLAGS'""" | |
| 568 | - $ WRITE MAKE "$ TERMFLAGS = ""/INCLUDE=([-],[-.TERM])""" | ||
| 573 | + $ WRITE MAKE "$ TERMFLAGS = ""/INCLUDE=([-],[-.TERM],[-.TERM.POSTSCRIPT],[-.SRC])""" | ||
| 569 | 574 | $ IF (VAXC .AND. DECW) THEN WRITE MAKE "$ define/nolog x11 decw$include" | |
| 570 | 575 | $ IF (VAXC .AND. DECW) THEN WRITE MAKE "$ define/nolog sys sys$library" | |
| 571 | 576 | $ WRITE MAKE "$ set verify" | |
@@ -602,8 +607,9 @@ $ WRITE MAKE "$ run [-.src]bf_test.exe" | |||
| 602 | 607 | $ WRITE MAKE "$ cd [-.src]" | |
| 603 | 608 | $ IF (DECW) THEN WRITE MAKE "$ cc 'CFLAGS' gplt_x11.c" | |
| 604 | 609 | $ IF (DECW) THEN WRITE MAKE "$ cc 'CFLAGS' stdfn.c" | |
| 610 | + $ IF (DECW) THEN WRITE MAKE "$ cc 'CFLAGS' version.c" | ||
| 605 | 611 | $ IF (DECW) THEN WRITE MAKE "$ link /executable=gnuplot_x11.exe -" | |
| 606 | - $ IF (DECW) THEN WRITE MAKE " gplt_x11.obj,stdfn.obj -" | ||
| 612 | + $ IF (DECW) THEN WRITE MAKE " gplt_x11.obj,stdfn.obj,version.obj -" | ||
| 607 | 613 | $ IF (DECW) THEN WRITE MAKE " 'EXTRALIB' 'CTRL_SHARE',x11.opt/option" | |
| 608 | 614 | $ COPY SYS$INPUT: MAKE | |
| 609 | 615 | $ DECK | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: command.c,v 1.271 2013/12/15 01:46:10 sfeam Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: command.c,v 1.272 2013/12/17 00:49:52 sfeam Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - command.c */ | |
@@ -2498,13 +2498,15 @@ help_command() | |||
| 2498 | 2498 | } | |
| 2499 | 2499 | } | |
| 2500 | 2500 | #else /* !_Windows */ | |
| 2501 | + #ifndef VMS | ||
| 2501 | 2502 | void | |
| 2502 | 2503 | help_command() | |
| 2503 | 2504 | { | |
| 2504 | 2505 | while (!(END_OF_COMMAND)) | |
| 2505 | 2506 | c_token++; | |
| 2506 | 2507 | fputs("This gnuplot was not built with inline help\n", stderr); | |
| 2507 | 2508 | } | |
| 2509 | + #endif /* VMS */ | ||
| 2508 | 2510 | #endif /* _Windows */ | |
| 2509 | 2511 | #endif /* NO_GIH */ | |
| 2510 | 2512 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: hidden3d.c,v 1.95 2013/09/25 22:21:27 sfeam Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: hidden3d.c,v 1.96 2013/09/26 22:45:33 sfeam Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - hidden3d.c */ | |
@@ -722,7 +722,7 @@ intersect_line_plane(p_vertex v1, p_vertex v2, t_plane p) | |||
| 722 | 722 | return 0; | |
| 723 | 723 | else { | |
| 724 | 724 | double denominator = p[0]*(v1->x - v2->x) + p[1]*(v1->y - v2->y) + p[2]*(v1->z - v2->z); | |
| 725 | - return numerator/denominator; | ||
| 725 | + return (denominator==0 ? (numerator>0?VERYLARGE:-VERYLARGE) : numerator/denominator); | ||
| 726 | 726 | } | |
| 727 | 727 | } | |
| 728 | 728 | ||
@@ -737,7 +737,7 @@ intersect_line_line(p_vertex v1, p_vertex v2, p_vertex w1, p_vertex w2) | |||
| 737 | 737 | return 0; | |
| 738 | 738 | else { | |
| 739 | 739 | double denominator = (w2->y - w1->y)*(v2->x - v1->x) - (w2->x - w1->x)*(v2->y - v1->y); | |
| 740 | - return numerator/denominator; | ||
| 740 | + return (denominator==0 ? (numerator>0?VERYLARGE:-VERYLARGE) : numerator/denominator); | ||
| 741 | 741 | } | |
| 742 | 742 | } | |
| 743 | 743 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: stdfn.c,v 1.26 2013/05/22 19:19:38 sfeam Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: stdfn.c,v 1.27 2013/10/25 04:45:22 sfeam Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - stdfn.c */ | |
@@ -412,7 +412,7 @@ static void debug_exit_handler(void) | |||
| 412 | 412 | { | |
| 413 | 413 | if (exit_handlers) { | |
| 414 | 414 | fprintf(stderr, "Gnuplot not exited using gp_exit(). Exit handlers may" | |
| 415 | - "not work correctly!\n"); | ||
| 415 | + " not work correctly!\n"); | ||
| 416 | 416 | gp_exit_cleanup(); | |
| 417 | 417 | } | |
| 418 | 418 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * $Id: stdfn.h,v 1.42 2013/09/26 21:24:21 sfeam Exp $ | ||
| 2 | + * $Id: stdfn.h,v 1.43 2013/10/25 04:45:22 sfeam Exp $ | ||
| 3 | 3 | */ | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - stdfn.h */ | |
@@ -542,6 +542,7 @@ void rewinddir __PROTO((DIR *)); | |||
| 542 | 542 | * may or may not end with a "directory separation" character. | |
| 543 | 543 | * Path must not be NULL, but can be empty | |
| 544 | 544 | */ | |
| 545 | + #ifndef VMS | ||
| 545 | 546 | #define PATH_CONCAT(path,file) \ | |
| 546 | 547 | { char *p = path; \ | |
| 547 | 548 | p += strlen(path); \ | |
@@ -551,6 +552,9 @@ void rewinddir __PROTO((DIR *)); | |||
| 551 | 552 | } \ | |
| 552 | 553 | strcat (path, file); \ | |
| 553 | 554 | } | |
| 555 | + #else | ||
| 556 | + #define PATH_CONCAT(path,file) strcat(path,file) | ||
| 557 | + #endif | ||
| 554 | 558 | ||
| 555 | 559 | #ifndef inrange | |
| 556 | 560 | # define inrange(z,min,max) \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * $Id: syscfg.h,v 1.50 2013/06/27 20:03:41 sfeam Exp $ | ||
| 2 | + * $Id: syscfg.h,v 1.51 2013/10/25 03:17:34 sfeam Exp $ | ||
| 3 | 3 | */ | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - syscfg.h */ | |
@@ -83,7 +83,7 @@ | |||
| 83 | 83 | # ifndef VMS | |
| 84 | 84 | # define VMS | |
| 85 | 85 | # endif | |
| 86 | - # define HOME "sys$login:" | ||
| 86 | + # define HOME "sys$login" | ||
| 87 | 87 | # define PLOTRC "gnuplot.ini" | |
| 88 | 88 | # ifdef NO_GIH | |
| 89 | 89 | /* for show version long */ | |
@@ -162,7 +162,11 @@ | |||
| 162 | 162 | #endif | |
| 163 | 163 | ||
| 164 | 164 | #ifndef HELPFILE | |
| 165 | + #ifndef VMS | ||
| 165 | 166 | # define HELPFILE "docs/gnuplot.gih" | |
| 167 | + #else | ||
| 168 | + # define HELPFILE "sys$login:gnuplot.gih" | ||
| 169 | + #endif | ||
| 166 | 170 | #endif | |
| 167 | 171 | ||
| 168 | 172 | #ifndef HOME | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: term.c,v 1.268 2013/10/23 19:28:37 sfeam Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: term.c,v 1.269 2013/10/25 03:10:28 sfeam Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - term.c */ | |
@@ -2243,8 +2243,10 @@ vms_init() | |||
| 2243 | 2243 | /* Save terminal characteristics in old_char_buf and | |
| 2244 | 2244 | initialise cur_char_buf to current settings. */ | |
| 2245 | 2245 | int i; | |
| 2246 | + #ifdef X11 | ||
| 2246 | 2247 | if (getenv("DECW$DISPLAY")) | |
| 2247 | 2248 | return ("x11"); | |
| 2249 | + #endif | ||
| 2248 | 2250 | atexit(vms_reset); | |
| 2249 | 2251 | sys$assign(&sysoutput_desc, &chan, 0, 0); | |
| 2250 | 2252 | sys$qiow(0, chan, IO$_SENSEMODE, 0, 0, 0, old_char_buf, 12, 0, 0, 0, 0); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * $Id: term.h,v 1.61 2013/09/20 20:39:20 sfeam Exp $ | ||
| 2 | + * $Id: term.h,v 1.62 2013/10/25 03:10:28 sfeam Exp $ | ||
| 3 | 3 | */ | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - term.h */ | |
@@ -203,7 +203,9 @@ | |||
| 203 | 203 | /* # include "gpic.trm" */ | |
| 204 | 204 | ||
| 205 | 205 | /* REGIS graphics language */ | |
| 206 | - /* # include "regis.trm" */ | ||
| 206 | + #ifdef VMS | ||
| 207 | + # include "regis.trm" | ||
| 208 | + #endif | ||
| 207 | 209 | ||
| 208 | 210 | /* Tektronix 4106, 4107, 4109 and 420x terminals */ | |
| 209 | 211 | # include "t410x.trm" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* Hello, Emacs, this is -*-C-*- | |
| 2 | - * $Id: tek.trm,v 1.21 2013/12/12 20:49:44 sfeam Exp $ | ||
| 2 | + * $Id: tek.trm,v 1.22 2013/12/12 21:00:00 sfeam Exp $ | ||
| 3 | 3 | * | |
| 4 | 4 | */ | |
| 5 | 5 | ||
@@ -652,7 +652,7 @@ SIXEL_init() | |||
| 652 | 652 | ypixels *= ysize; | |
| 653 | 653 | } | |
| 654 | 654 | ||
| 655 | - b_makebitmap(xpixels, ypixels, SIXEL_NCOL); | ||
| 655 | + b_makebitmap(xpixels, ypixels, 5); | ||
| 656 | 656 | ||
| 657 | 657 | if (SIXEL_mode != 0) | |
| 658 | 658 | b_setlinetype(0); /* solid lines */ | |
@@ -671,7 +671,7 @@ SIXEL_reset() | |||
| 671 | 671 | TERM_PUBLIC void | |
| 672 | 672 | SIXEL_text() | |
| 673 | 673 | { | |
| 674 | - int i, j, k, l, ic, n, pr; | ||
| 674 | + int i, j, k, l, ic, n, pr, no; | ||
| 675 | 675 | char c, pc; | |
| 676 | 676 | ||
| 677 | 677 | /* initialization to Sixel mode and pixel aspect ratio, | |
@@ -688,6 +688,7 @@ SIXEL_text() | |||
| 688 | 688 | ||
| 689 | 689 | for (j=b_ysize-6; j>=0; j-=6) { | |
| 690 | 690 | for (k=1; k<=SIXEL_NCOL; k++) { | |
| 691 | + no = 0; /* for finite line records (VMS) */ | ||
| 691 | 692 | pr = 0; | |
| 692 | 693 | pc = '\0'; | |
| 693 | 694 | n = 0; | |
@@ -705,18 +706,26 @@ SIXEL_text() | |||
| 705 | 706 | if (n>0 && pr==0) { | |
| 706 | 707 | pr++; | |
| 707 | 708 | if (n<b_xsize-1 || pc!='?' || k==1) { /* do not output empty lines */ | |
| 708 | - fprintf(gpoutfile,"#%d",k-1); | ||
| 709 | + no += fprintf(gpoutfile,"#%d",k-1); | ||
| 709 | 710 | pr++; | |
| 710 | 711 | } | |
| 711 | 712 | } | |
| 712 | 713 | if (pr==2) { | |
| 713 | 714 | if (i==b_xsize-1 && c==pc) n++; | |
| 714 | 715 | if (n>3) { | |
| 715 | - fprintf(gpoutfile,"!%d%c",n,pc); | ||
| 716 | + no += fprintf(gpoutfile,"!%d%c",n,pc); | ||
| 716 | 717 | } else { | |
| 717 | 718 | for (l=1; l<=n; l++) fputc(pc,gpoutfile); | |
| 719 | + no += n; | ||
| 720 | + } | ||
| 721 | + if (i==b_xsize-1 && c!=pc) { | ||
| 722 | + fputc(c,gpoutfile); | ||
| 723 | + no++; | ||
| 724 | + } | ||
| 725 | + if (no>70 && i<b_xsize-1) { | ||
| 726 | + fprintf(gpoutfile,"\n"); | ||
| 727 | + no = 0; | ||
| 718 | 728 | } | |
| 719 | - if (i==b_xsize-1 && c!=pc) fputc(c,gpoutfile); | ||
| 720 | 729 | } | |
| 721 | 730 | n = 1; | |
| 722 | 731 | } | |
@@ -732,8 +741,11 @@ SIXEL_text() | |||
| 732 | 741 | ||
| 733 | 742 | /* get out of Sixel mode */ | |
| 734 | 743 | ||
| 744 | + #ifndef VMS | ||
| 735 | 745 | fputs("\033\\\n",gpoutfile); | |
| 736 | - | ||
| 746 | + #else | ||
| 747 | + fputs("\033\\\n\n",gpoutfile); | ||
| 748 | + #endif | ||
| 737 | 749 | (void) fflush(gpoutfile); /* finish the graphics */ | |
| 738 | 750 | } | |
| 739 | 751 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments